View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 15 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Nov 12, 2009 3:23 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
I have an R6 MBE and an R5.5 FE (I can't boot into the R6 installer on this machine). Everything was working fine until a few days ago. Now, my NFS mount on my R5.5 FE mount under my username, not mythtv's user.

What am I missing?

/etc/fstab:
Code:
192.168.1.4:/myth/video /mnt/myth nfs defaults,auto 0 0


I need something akin to a uid=100,gid=102 or something, but I can't get the syntax correct.

EDIT: I see now that mythtv on R6 has a uid/gid of 1000:1000 and my user on my old R5.5 FE has the same uid/gid so I definitely need some mount options to fix this.

Thanks!

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 12, 2009 3:37 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
I just quickly flipped thru than man pages of nfs and mount and did not see anything. You can try this:
Code:
192.168.1.4:/myth/video /mnt/myth nfs defaults,noauto,users 0 0


and then add this to /home/mythtv/.fluxbox/apps:
Code:
[startup] {sudo mount /mnt/myth}
and you can check the owner of the mount with:
Code:
mount

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 12, 2009 3:44 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Nice idea. I tried it and the mount is still owned by my other user, not mythtv.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 12, 2009 3:56 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
graysky wrote:
Nice idea. I tried it and the mount is still owned by my other user, not mythtv.


Check the anonid option on exports. :?: http://linux.die.net/man/5/exports

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 13, 2009 3:27 pm 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
graysky wrote:
Nice idea. I tried it and the mount is still owned by my other user, not mythtv.


With nfs, the numerical id of the owner is kept. In other words, the uids must be the same.
If mythtv has uid 1000 on one machine and uid 100 on the other, you will have to change one of them.

Mike

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 13, 2009 3:36 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
If I change it on my R5.5 FE, will that mess up anything that depends on mythtv being 100:102

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 13, 2009 11:48 pm 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
graysky wrote:
If I change it on my R5.5 FE, will that mess up anything that depends on mythtv being 100:102


You could just change the gid of the files to be nfs shared to that of the mythtv user on the other box, then do a chmod -R g+r /myth (or whatever the path is). If you were intending on write access too, change it to g+rw.

Mike

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 14, 2009 4:40 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
You're saying modify the gid on the MBE to match that of the mythtv user on the FE? Then the mythtv user on the MBE couldn't r/w them... can I simply change the uid/gid of the mythtv user on the FE to match that of the uid/gid on the MBE?

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 15, 2009 4:20 pm 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
graysky wrote:
can I simply change the uid/gid of the mythtv user on the FE to match that of the uid/gid on the MBE?


Yes, you absolutely can. It would be the easiest way to fix it, but I thought you were working off a live CD or something you couldn't easily change. Anyway, here is what you should do:
1. On the FE, switch to a VT (e.g. ctrl+alt+F2) and log in as root
2. Edit /etc/passwd and change the uid of the FE user to that of the BE user
3. ls -ld ~mythtv. You should find it now just lists a number as the owner. If it does...
4. chown -R ~mythtv mythtv (if you skip this, you won't be able to read your own files)
5. Log out and back in to the gui

Good luck, but you shouldn't have any dramas. Forgetting to chown the home directory is the major cause of problems. If there are any other files owned by mythtv on the FE, you may want to change these too.

Mike

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 29, 2009 11:40 am 
Offline
Joined: Fri Nov 04, 2005 7:11 am
Posts: 61
I agree that simply changing the UIDs/GIDs to match is often the best way to fix this. I have posted an alternate solution that I use in hints/tips:

http://knoppmyth.net/phpBB2/viewtopic.php?p=125500#125500

_________________
BE: R8.4, HVR2250, MCE media center remote, GigaByte GA-EP43-UD3L, 2gb ram

FE: Linhes 8.4, Mythbuntu, Linux Mint DE


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 04, 2009 3:16 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Finally got around to doing this...

Fixed up the /etc/passwd and /etc/group for user mythtv and for my user to reflect the same uid/gid as on the MBE for each one. Had to chown -R mythtv:mythtv a bunch of dirs under /myth as well as /home/mythtv as well. Oh, and some stuff in /var/log but everything seems to be working now.

Code:
# chown -R mythtv:mythtv /home/mythtv
# cd /myth
# chown -R mythtv:mythtv archive/ democracy/ gallery/ games/ image_cache/ ipodfeed/ motion/ music/ phone/ pretty/ rrd/ stream/ streamtv/ tmp/ tv/ video/
# chown root:root lost+found/
# cd /var/log
# chown mythtv:mythtv x11vnc.log
# chown -R mythtv:mythtv ./mythtv/


Is there an easy way I can tell if files/dirs are assigned to the old uid/gid of 100/102 some how? I can't help but feel that I'm missing something somewhere...

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 04, 2009 7:44 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
graysky wrote:
Is there an easy way I can tell if files/dirs are assigned to the old uid/gid of 100/102 some how? I can't help but feel that I'm missing something somewhere...

Using the "find" command. E.g.
Code:
find / -gid 102 -ls
find / -uid 100 -ls

You can also use the -nouser or -nogroup tests to locate files which have a UID/GID that doesn't correspond to any known entry in either /etc/passwd or /etc/group respectively.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 05, 2009 5:47 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Thanks tjc, that found a bunch of stuff! How can I tie that find command to a chown -R mythtv:mythtv <what it found>? That way I can fix it in one operation.

Code:
# find / -uid 100 -ls
449006    4 -rw-rw----   1 100      102            76 Nov  4  2006 /etc/mythtv/mysql.txt
449172    4 -rwx------   1 100      102          1016 Feb 17  2007 /etc/rip.cfg
374542    4 drwxr-xr-x   2 100      102          4096 Jul 15  2008 /mnt/myth
find: /proc/3320/task/3320/fd/4: No such file or directory
find: /proc/3320/task/3320/fdinfo/4: No such file or directory
find: /proc/3320/fd/4: No such file or directory
find: /proc/3320/fdinfo/4: No such file or directory
131688    4 -rw-r--r--   1 100      102           620 Jul 15  2008 /tmp/mythconverg--20080715115546.sql.gz
131685    4 drwx------   2 100      102          4096 Jul 20  2008 /tmp/ssh-aPIesF3228
131686    0 srw-------   1 100      102             0 Jul 20  2008 /tmp/ssh-aPIesF3228/agent.3228
131694    4 drwx------   2 100      102          4096 Dec  4 16:10 /tmp/orbit-mythtv
131687    0 srwxr-xr-x   1 100      102             0 Jul 20  2008 /tmp/orbit-mythtv/linc-cd2-0-647f8ae2b678a
131692    0 srwxr-xr-x   1 100      102             0 Jul 20  2008 /tmp/orbit-mythtv/linc-cc4-0-376297ebd8c33
131704    0 srwxr-xr-x   1 100      102             0 Dec  8  2008 /tmp/orbit-mythtv/linc-cbe-0-610e326d75a9f
131709    0 srwxr-xr-x   1 100      102             0 Dec  8  2008 /tmp/orbit-mythtv/linc-cb8-0-465723fea0e6b
131713    0 srwxr-xr-x   1 100      102             0 Mar  8  2009 /tmp/orbit-mythtv/linc-c9e-0-1720f92f33998
131717    0 srwxr-xr-x   1 100      102             0 Mar  8  2009 /tmp/orbit-mythtv/linc-c96-0-6b7b481872c9c
131716    0 srwxr-xr-x   1 100      102             0 Aug 16 15:04 /tmp/orbit-mythtv/linc-c8e-0-6acf1f8120aaf
131720    0 srwxr-xr-x   1 100      102             0 Aug 16 15:04 /tmp/orbit-mythtv/linc-c88-0-ba43ee451b58
131722    0 srwxr-xr-x   1 100      102             0 Sep 12 13:53 /tmp/orbit-mythtv/linc-c78-0-15fd9f2ad2cd6
131725    0 srwxr-xr-x   1 100      102             0 Sep 12 13:53 /tmp/orbit-mythtv/linc-c72-0-1cabf9469994
131726    0 srwxr-xr-x   1 100      102             0 Nov  1 08:04 /tmp/orbit-mythtv/linc-c7b-0-67f6168689439
131731    0 srwxr-xr-x   1 100      102             0 Nov  1 08:04 /tmp/orbit-mythtv/linc-cd2-0-247e77428e70c
131732    0 srwxr-xr-x   1 100      102             0 Nov  1 08:20 /tmp/orbit-mythtv/linc-ca1-0-24a869c97b984
131733    0 srwxr-xr-x   1 100      102             0 Nov  1 08:20 /tmp/orbit-mythtv/linc-c9b-0-21d3b550a88ca
131734    0 srwxr-xr-x   1 100      102             0 Dec  1 17:45 /tmp/orbit-mythtv/linc-ca4-0-d866dddb3b36
131737    0 srwxr-xr-x   1 100      102             0 Dec  1 17:45 /tmp/orbit-mythtv/linc-c9e-0-6d776950e085d
263366    4 -rw-r--r--   1 100      102          3567 Feb 14  2008 /tmp/init
269254    4 -rw-r--r--   1 100      102           447 Jul 15  2008 /tmp/apps
263375    4 -rw-r--r--   1 100      102            54 Jul 15  2008 /tmp/config
131691    4 drwx------   2 100      102          4096 Dec  8  2008 /tmp/ssh-XlZIRS3217
131693    0 srw-------   1 100      102             0 Dec  8  2008 /tmp/ssh-XlZIRS3217/agent.3217
131707    4 drwx------   2 100      102          4096 Dec  4 16:10 /tmp/gconfd-mythtv
131721    0 prw-r--r--   1 100      102             0 Nov 12 15:38 /tmp/mythtv_media
131708    4 drwx------   2 100      102          4096 Mar  8  2009 /tmp/ssh-SStfJV3183
131712    0 srw-------   1 100      102             0 Mar  8  2009 /tmp/ssh-SStfJV3183/agent.3183
131706    4 drwx------   2 100      102          4096 Aug 16 15:04 /tmp/ssh-sjsVMQ3169
131715    0 srw-------   1 100      102             0 Aug 16 15:04 /tmp/ssh-sjsVMQ3169/agent.3169
131718    4 drwx------   2 100      102          4096 Sep 12 13:53 /tmp/ssh-FJRVem3147
131719    0 srw-------   1 100      102             0 Sep 12 13:53 /tmp/ssh-FJRVem3147/agent.3147
131684    4 drwx------   2 100      102          4096 Nov  1 08:20 /tmp/ssh-VNBzHc3188
131724    0 srw-------   1 100      102             0 Nov  1 08:20 /tmp/ssh-VNBzHc3188/agent.3188
131729    4 drwx------   2 100      102          4096 Nov  1 08:04 /tmp/ssh-QsHduL3243
131730    0 srw-------   1 100      102             0 Nov  1 08:04 /tmp/ssh-QsHduL3243/agent.3243
131727    4 drwx------   2 100      102          4096 Dec  1 17:45 /tmp/ssh-WQQRrj3191
131728    0 srw-------   1 100      102             0 Dec  1 17:45 /tmp/ssh-WQQRrj3191/agent.3191
224709  336 -rwxr-xr-x   1 100      102        336684 Jun 29  2008 /usr/bin/mtd
224767   44 -rwxr-xr-x   1 100      102         43744 Jul  2  2008 /usr/bin/mythtv
224756  376 -rwxr-xr-x   1 100      102        380288 Jun 29  2008 /usr/bin/mytharchivehelper
224757 1260 -rwxr-xr-x   1 100      102       1284236 Jul  2  2008 /usr/bin/mythbackend
224758  100 -rwxr-xr-x   1 100      102         94524 Jun 29  2008 /usr/bin/mythbrowser
224759  648 -rwxr-xr-x   1 100      102        656276 Jul  2  2008 /usr/bin/mythcommflag
224760  344 -rwxr-xr-x   1 100      102        347908 Jul  2  2008 /usr/bin/mythfilldatabase
224761 1520 -rwxr-xr-x   1 100      102       1551332 Jul  2  2008 /usr/bin/mythfrontend
224762   28 -rwxr-xr-x   1 100      102         25336 Jul  2  2008 /usr/bin/mythjobqueue
224763  280 -rwxr-xr-x   1 100      102        278584 Jul  2  2008 /usr/bin/mythlcdserver
224764   80 -rwxr-xr-x   1 100      102         77204 Jul  2  2008 /usr/bin/mythreplex
224765  112 -rwxr-xr-x   1 100      102        107676 Jul  2  2008 /usr/bin/mythshutdown
224766  384 -rwxr-xr-x   1 100      102        385528 Jul  2  2008 /usr/bin/mythtranscode
224768  148 -rwxr-xr-x   1 100      102        143488 Jul  2  2008 /usr/bin/mythtv-setup
224769   20 -rwxr-xr-x   1 100      102         18928 Jul  2  2008 /usr/bin/mythtvosd
224770  136 -rwxr-xr-x   1 100      102        135076 Jul  2  2008 /usr/bin/mythwelcome
263849    4 -rw-r--r--   1 100      102          2872 Jul  2  2008 /usr/include/mythtv/audiooutput.h
263851    4 -rw-r--r--   1 100      102           790 Jul  2  2008 /usr/include/mythtv/dialogbox.h
263853   12 -rw-r--r--   1 100      102          9554 Jul  2  2008 /usr/include/mythtv/dvdnav/dvd_reader.h
263854   12 -rw-r--r--   1 100      102          8473 Jul  2  2008 /usr/include/mythtv/dvdnav/dvd_types.h
263855   24 -rw-r--r--   1 100      102         21968 Jul  2  2008 /usr/include/mythtv/dvdnav/dvdnav.h
263856    8 -rw-r--r--   1 100      102          7531 Jul  2  2008 /usr/include/mythtv/dvdnav/dvdnav_events.h
263857    8 -rw-r--r--   1 100      102          8161 Jul  2  2008 /usr/include/mythtv/dvdnav/ifo_read.h
263858   28 -rw-r--r--   1 100      102         24776 Jul  2  2008 /usr/include/mythtv/dvdnav/ifo_types.h
263859    4 -rw-r--r--   1 100      102          1426 Jul  2  2008 /usr/include/mythtv/dvdnav/nav_print.h
263860    4 -rw-r--r--   1 100      102          1527 Jul  2  2008 /usr/include/mythtv/dvdnav/nav_read.h
263861   12 -rw-r--r--   1 100      102          9029 Jul  2  2008 /usr/include/mythtv/dvdnav/nav_types.h
263862    8 -rw-r--r--   1 100      102          7369 Jul  2  2008 /usr/include/mythtv/exitcodes.h
263864    4 -rw-r--r--   1 100      102          1030 Jul  2  2008 /usr/include/mythtv/ffmpeg/adler32.h
263866   96 -rw-r--r--   1 100      102         94051 Jul  2  2008 /usr/include/mythtv/ffmpeg/avcodec.h
263867   36 -rw-r--r--   1 100      102         34094 Jul  2  2008 /usr/include/mythtv/ffmpeg/avformat.h
263868   12 -rw-r--r--   1 100      102          9473 Jul  2  2008 /usr/include/mythtv/ffmpeg/avio.h
263870    8 -rw-r--r--   1 100      102          6151 Jul  2  2008 /usr/include/mythtv/ffmpeg/avutil.h
263872   12 -rw-r--r--   1 100      102          9500 Jul  2  2008 /usr/include/mythtv/ffmpeg/common.h
263873    4 -rw-r--r--   1 100      102          1655 Jul  2  2008 /usr/include/mythtv/ffmpeg/crc.h
263875    4 -rw-r--r--   1 100      102          2280 Jul  2  2008 /usr/include/mythtv/ffmpeg/integer.h
263876    8 -rw-r--r--   1 100      102          6737 Jul  2  2008 /usr/include/mythtv/ffmpeg/internal.h
263877    4 -rw-r--r--   1 100      102          1284 Jul  2  2008 /usr/include/mythtv/ffmpeg/intfloat_readwrite.h
263878    4 -rw-r--r--   1 100      102          1457 Jul  2  2008 /usr/include/mythtv/ffmpeg/lls.h
263879    4 -rw-r--r--   1 100      102          3620 Jul  2  2008 /usr/include/mythtv/ffmpeg/log.h
263881    4 -rw-r--r--   1 100      102          1737 Jul  2  2008 /usr/include/mythtv/ffmpeg/mathematics.h
263882    4 -rw-r--r--   1 100      102          1195 Jul  2  2008 /usr/include/mythtv/ffmpeg/md5.h
263884   16 -rw-r--r--   1 100      102         15219 Jul  2  2008 /usr/include/mythtv/ffmpeg/mmx.h
263885    4 -rw-r--r--   1 100      102          3028 Jul  2  2008 /usr/include/mythtv/ffmpeg/opt.h
263887    4 -rw-r--r--   1 100      102          2967 Jul  2  2008 /usr/include/mythtv/ffmpeg/rational.h
263888    4 -rw-r--r--   1 100      102          3566 Jul  2  2008 /usr/include/mythtv/ffmpeg/rtp.h
263889    4 -rw-r--r--   1 100      102          2947 Jul  2  2008 /usr/include/mythtv/ffmpeg/rtsp.h
263890    4 -rw-r--r--   1 100      102          1669 Jul  2  2008 /usr/include/mythtv/ffmpeg/rtspcodes.h
263892    4 -rw-r--r--   1 100      102          3470 Jul  2  2008 /usr/include/mythtv/ffmpeg/softfloat.h
263894    4 -rw-r--r--   1 100      102          1789 Jul  2  2008 /usr/include/mythtv/ffmpeg/x86_cpu.h
263895    4 -rw-r--r--   1 100      102          3533 Jul  2  2008 /usr/include/mythtv/generictree.h
263896    4 -rw-r--r--   1 100      102          4095 Jul  2  2008 /usr/include/mythtv/httpcomms.h
263897    4 -rw-r--r--   1 100      102          1266 Jul  2  2008 /usr/include/mythtv/langsettings.h
263898   12 -rw-r--r--   1 100      102          8209 Jul  2  2008 /usr/include/mythtv/lcddevice.h
263943   16 -rw-r--r--   1 100      102         13207 Jul  2  2008 /usr/include/mythtv/libmythtv/programinfo.h
263944    4 -rw-r--r--   1 100      102           964 Jul  2  2008 /usr/include/mythtv/libmythtv/recordingtypes.h
263945    4 -rw-r--r--   1 100      102          3688 Jul  2  2008 /usr/include/mythtv/libmythtv/remoteutil.h
263947    4 -rw-r--r--   1 100      102          1280 Jul  2  2008 /usr/include/mythtv/libmythui/mythdialogbox.h
263948    4 -rw-r--r--   1 100      102          1839 Jul  2  2008 /usr/include/mythtv/libmythui/mythfontproperties.h
263950    4 -rw-r--r--   1 100      102          1278 Jul  2  2008 /usr/include/mythtv/libmythui/mythimage.h
263951    8 -rw-r--r--   1 100      102          5460 Jul  2  2008 /usr/include/mythtv/libmythui/mythlistbutton.h
263952    8 -rw-r--r--   1 100      102          4778 Jul  2  2008 /usr/include/mythtv/libmythui/mythmainwindow.h
263953    4 -rw-r--r--   1 100      102          1282 Jul  2  2008 /usr/include/mythtv/libmythui/mythpainter.h
263954    4 -rw-r--r--   1 100      102          1610 Jul  2  2008 /usr/include/mythtv/libmythui/mythpainter_ogl.h
263955    4 -rw-r--r--   1 100      102          1084 Jul  2  2008 /usr/include/mythtv/libmythui/mythpainter_qt.h
263956    4 -rw-r--r--   1 100      102          1054 Jul  2  2008 /usr/include/mythtv/libmythui/mythscreenstack.h
263957    4 -rw-r--r--   1 100      102          1382 Jul  2  2008 /usr/include/mythtv/libmythui/mythscreentype.h
263958    4 -rw-r--r--   1 100      102           253 Jul  2  2008 /usr/include/mythtv/libmythui/myththemebase.h
263959    4 -rw-r--r--   1 100      102          1027 Jul  2  2008 /usr/include/mythtv/libmythui/myththemedmenu.h
263960    4 -rw-r--r--   1 100      102          2170 Jul  2  2008 /usr/include/mythtv/libmythui/mythuibutton.h
263962    4 -rw-r--r--   1 100      102          1633 Jul  2  2008 /usr/include/mythtv/libmythui/mythuiimage.h
263963    4 -rw-r--r--   1 100      102          1370 Jul  2  2008 /usr/include/mythtv/libmythui/mythuistatetype.h
263964    4 -rw-r--r--   1 100      102          1618 Jul  2  2008 /usr/include/mythtv/libmythui/mythuitext.h
263965    4 -rw-r--r--   1 100      102          3944 Jul  2  2008 /usr/include/mythtv/libmythui/mythuitype.h
263966    4 -rw-r--r--   1 100      102          1755 Jul  2  2008 /usr/include/mythtv/libmythui/xmlparsebase.h
263967   24 -rw-r--r--   1 100      102         22495 Jul  2  2008 /usr/include/mythtv/managedlist.h
263969    8 -rw-r--r--   1 100      102          6495 Jul  2  2008 /usr/include/mythtv/mpeg2dec/mpeg2.h
263970    4 -rw-r--r--   1 100      102          1611 Sep  8  2007 /usr/include/mythtv/mythcdrom.h
263971   36 -rw-r--r--   1 100      102         35783 Jul  2  2008 /usr/include/mythtv/mythconfig.h
263972   16 -rw-r--r--   1 100      102         14473 Jul  2  2008 /usr/include/mythtv/mythconfig.mak
263975   16 -rw-r--r--   1 100      102         12422 Jul  2  2008 /usr/include/mythtv/mythcontext.h
263976    8 -rw-r--r--   1 100      102          4493 Jul  2  2008 /usr/include/mythtv/mythdbcon.h
263977   20 -rw-r--r--   1 100      102         17382 Jul  2  2008 /usr/include/mythtv/mythdialogs.h
263978    4 -rw-r--r--   1 100      102          1340 Jul  2  2008 /usr/include/mythtv/mythevent.h
263980    4 -rw-r--r--   1 100      102           385 Sep  8  2007 /usr/include/mythtv/mythhdd.h
263981    8 -rw-r--r--   1 100      102          5724 Jul  2  2008 /usr/include/mythtv/mythmedia.h
263982    4 -rw-r--r--   1 100      102          3718 Jul  2  2008 /usr/include/mythtv/mythmediamonitor.h
263983    4 -rw-r--r--   1 100      102          4064 Jul  2  2008 /usr/include/mythtv/mythobservable.h
263984    4 -rw-r--r--   1 100      102          2290 Jul  2  2008 /usr/include/mythtv/mythplugin.h
263986    4 -rw-r--r--   1 100      102          2719 Jul  2  2008 /usr/include/mythtv/mythsocket.h
263989   12 -rw-r--r--   1 100      102         10704 Jul  2  2008 /usr/include/mythtv/mythwidgets.h
263990    4 -rw-r--r--   1 100      102          3597 Jul  2  2008 /usr/include/mythtv/mythwizard.h
263991    4 -rw-r--r--   1 100      102          2003 Jul  2  2008 /usr/include/mythtv/oldsettings.h
263992    4 -rw-r--r--   1 100      102          2446 Jul  2  2008 /usr/include/mythtv/output.h
263993   20 -rw-r--r--   1 100      102         17950 Jul  2  2008 /usr/include/mythtv/qmdcodec.h
263994    4 -rw-r--r--   1 100      102          1188 Jul  2  2008 /usr/include/mythtv/remotefile.h
263995    8 -rw-r--r--   1 100      102          5327 Jul  2  2008 /usr/include/mythtv/samplerate.h
263996   24 -rw-r--r--   1 100      102         22908 Jul  2  2008 /usr/include/mythtv/settings.h
263998   12 -rw-r--r--   1 100      102          9966 Jul  2  2008 /usr/include/mythtv/uilistbtntype.h
263999   44 -rw-r--r--   1 100      102         43641 Jul  2  2008 /usr/include/mythtv/uitypes.h
264001    4 -rwxr-xr-x   1 100      102          1836 Jul  2  2008 /usr/include/mythtv/upnp/broadcast.h
264002    8 -rw-r--r--   1 100      102          4212 Jul  2  2008 /usr/include/mythtv/upnp/bufferedsocketdevice.h
264003    4 -rw-r--r--   1 100      102          3206 Jul  2  2008 /usr/include/mythtv/upnp/configuration.h
264004   12 -rw-r--r--   1 100      102          8213 Jul  2  2008 /usr/include/mythtv/upnp/eventing.h
264005    8 -rw-r--r--   1 100      102          7762 Jul  2  2008 /usr/include/mythtv/upnp/httprequest.h
264006    8 -rw-r--r--   1 100      102          4824 Jul  2  2008 /usr/include/mythtv/upnp/httpserver.h
264007    4 -rwxr-xr-x   1 100      102          2399 Jul  2  2008 /usr/include/mythtv/upnp/multicast.h
264008    4 -rwxr-xr-x   1 100      102          1906 Jul  2  2008 /usr/include/mythtv/upnp/mythxmlclient.h
264009    4 -rwxr-xr-x   1 100      102          2144 Jul  2  2008 /usr/include/mythtv/upnp/soapclient.h
264010    4 -rw-r--r--   1 100      102          4070 Jul  2  2008 /usr/include/mythtv/upnp/ssdp.h
264011    4 -rwxr-xr-x   1 100      102          3758 Jul  2  2008 /usr/include/mythtv/upnp/ssdpcache.h
264012    4 -rw-r--r--   1 100      102          2947 Jul  2  2008 /usr/include/mythtv/upnp/taskqueue.h
264013    8 -rw-r--r--   1 100      102          4163 Jul  2  2008 /usr/include/mythtv/upnp/threadpool.h
264014    8 -rw-r--r--   1 100      102          5589 Jul  2  2008 /usr/include/mythtv/upnp/upnp.h
264015   12 -rw-r--r--   1 100      102          9244 Jul  2  2008 /usr/include/mythtv/upnp/upnpcds.h
264016   12 -rw-r--r--   1 100      102          8421 Jul  2  2008 /usr/include/mythtv/upnp/upnpcdsobjects.h
264017    4 -rwxr-xr-x   1 100      102          3048 Jul  2  2008 /usr/include/mythtv/upnp/upnpcmgr.h
264018   12 -rw-r--r--   1 100      102          8646 Jul  2  2008 /usr/include/mythtv/upnp/upnpdevice.h
264019    4 -rw-r--r--   1 100      102          1632 Jul  2  2008 /usr/include/mythtv/upnp/upnpimpl.h
264020    4 -rwxr-xr-x   1 100      102          2132 Jul  2  2008 /usr/include/mythtv/upnp/upnptaskcache.h
264021    4 -rwxr-xr-x   1 100      102          1707 Jul  2  2008 /usr/include/mythtv/upnp/upnptaskevent.h
264022    4 -rw-r--r--   1 100      102          3170 Jul  2  2008 /usr/include/mythtv/upnp/upnptasknotify.h
264023    4 -rw-r--r--   1 100      102          2330 Jul  2  2008 /usr/include/mythtv/upnp/upnptasksearch.h
264024    4 -rwxr-xr-x   1 100      102          3196 Jul  2  2008 /usr/include/mythtv/upnp/upnputil.h
264025    4 -rw-r--r--   1 100      102          3243 Jul  2  2008 /usr/include/mythtv/util.h
264026    4 -rw-r--r--   1 100      102          1068 Jul  2  2008 /usr/include/mythtv/virtualkeyboard.h
264027    4 -rw-r--r--   1 100      102           820 Jul  2  2008 /usr/include/mythtv/visual.h
264028    4 -rw-r--r--   1 100      102           935 Jul  2  2008 /usr/include/mythtv/volumebase.h
264029    4 -rw-r--r--   1 100      102           629 Jul  2  2008 /usr/include/mythtv/volumecontrol.h
264030    4 -rw-r--r--   1 100      102          2328 Jul  2  2008 /usr/include/mythtv/xmlparse.h
267221 2880 -rwxr-xr-x   1 100      102       2944912 Sep  8  2007 /usr/lib/libmyth-0.20.2.so.0.20.2
267233 4264 -rwxr-xr-x   1 100      102       4352540 Sep  8  2007 /usr/lib/libmythavcodec-0.20.2.so.0.20.2
267244  484 -rwxr-xr-x   1 100      102        490200 Sep  8  2007 /usr/lib/libmythavformat-0.20.2.so.0.20.2
267257   24 -rwxr-xr-x   1 100      102         21552 Sep  8  2007 /usr/lib/libmythavutil-0.20.2.so.0.20.2
267266  236 -rw-r--r--   1 100      102        236070 Sep  8  2007 /usr/lib/libmythdvdnav-0.20.2.a
267271  500 -rwxr-xr-x   1 100      102        505784 Sep  8  2007 /usr/lib/libmythfreemheg-0.20.2.so.0.20.2
267283  768 -rwxr-xr-x   1 100      102        779848 Sep  8  2007 /usr/lib/libmythlivemedia-0.20.2.so.0.20.2
267296 11932 -rwxr-xr-x   1 100      102      12201956 Sep  8  2007 /usr/lib/libmythtv-0.20.2.so.0.20.2
267308  716 -rwxr-xr-x   1 100      102        726588 Sep  8  2007 /usr/lib/libmythui-0.20.2.so.0.20.2
267320  620 -rwxr-xr-x   1 100      102        628704 Sep  8  2007 /usr/lib/libmythupnp-0.20.2.so.0.20.2
329323    8 -rwxr-xr-x   1 100      102          5988 Jul  2  2008 /usr/lib/mythtv/filters/libadjust.so
329324    8 -rwxr-xr-x   1 100      102          4452 Jul  2  2008 /usr/lib/mythtv/filters/libbobdeint.so
329325    4 -rwxr-xr-x   1 100      102          3968 Jul  2  2008 /usr/lib/mythtv/filters/libconvert.so
329326    8 -rwxr-xr-x   1 100      102          6148 Jul  2  2008 /usr/lib/mythtv/filters/libcrop.so
329327    8 -rwxr-xr-x   1 100      102          7844 Jul  2  2008 /usr/lib/mythtv/filters/libdenoise3d.so
329328    4 -rwxr-xr-x   1 100      102          4032 Jul  2  2008 /usr/lib/mythtv/filters/libforce.so
329330    4 -rwxr-xr-x   1 100      102          3492 Jul  2  2008 /usr/lib/mythtv/filters/libinvert.so
329331   16 -rwxr-xr-x   1 100      102         14592 Jul  2  2008 /usr/lib/mythtv/filters/libivtc.so
329332    8 -rwxr-xr-x   1 100      102          8036 Jul  2  2008 /usr/lib/mythtv/filters/libkerneldeint.so
329333    8 -rwxr-xr-x   1 100      102          5508 Jul  2  2008 /usr/lib/mythtv/filters/liblinearblend.so
329334    8 -rwxr-xr-x   1 100      102          4164 Jul  2  2008 /usr/lib/mythtv/filters/libonefield.so
329335    8 -rwxr-xr-x   1 100      102          4676 Dec 27  2007 /usr/lib/mythtv/filters/libpostprocess.so
329336   12 -rwxr-xr-x   1 100      102         10116 Jul  2  2008 /usr/lib/mythtv/filters/libquickdnr.so
329339  528 -rwxr-xr-x   1 100      102        534236 Jun 29  2008 /usr/lib/mythtv/plugins/libmytharchive.so
329340  440 -rwxr-xr-x   1 100      102        446439 Jun 29  2008 /usr/lib/mythtv/plugins/libmythbookmarkmanager.so
329341  148 -rwxr-xr-x   1 100      102        144068 Jun 29  2008 /usr/lib/mythtv/plugins/libmythcontrols.so
329342 1972 -rwxr-xr-x   1 100      102       2012766 Jun 29  2008 /usr/lib/mythtv/plugins/libmythflix.so
329343  396 -rwxr-xr-x   1 100      102        399340 Jun 29  2008 /usr/lib/mythtv/plugins/libmythgallery.so
329344  364 -rwxr-xr-x   1 100      102        368088 Jun 29  2008 /usr/lib/mythtv/plugins/libmythgame.so
329346 1676 -rwxr-xr-x   1 100      102       1708864 Jun 29  2008 /usr/lib/mythtv/plugins/libmythmusic.so
329347 1360 -rwxr-xr-x   1 100      102       1386076 Jun 29  2008 /usr/lib/mythtv/plugins/libmythnews.so
329348  920 -rwxr-xr-x   1 100      102        935424 Jun 29  2008 /usr/lib/mythtv/plugins/libmythphone.so
329350  888 -rwxr-xr-x   1 100      102        901660 Apr 12  2008 /usr/lib/mythtv/plugins/libmythstream.so
329351 1004 -rwxr-xr-x   1 100      102       1022036 Jun 29  2008 /usr/lib/mythtv/plugins/libmythvideo.so
268339    8 -rw-r--r--   1 100      102          7708 Jul  2  2008 /usr/share/mythtv/CDS_scpd.xml
268340    8 -rw-r--r--   1 100      102          4852 Jul  2  2008 /usr/share/mythtv/CMGR_scpd.xml
268341  288 -rw-r--r--   1 100      102        289856 Jul  2  2008 /usr/share/mythtv/FreeMono.ttf
268342  508 -rw-r--r--   1 100      102        514280 Jul  2  2008 /usr/share/mythtv/FreeSans.ttf
268344    4 -rw-r--r--   1 100      102          2599 Jul  2  2008 /usr/share/mythtv/MSRR_scpd.xml
268345   16 -rw-r--r--   1 100      102         15193 Jul  2  2008 /usr/share/mythtv/MXML_scpd.xml
268351    4 -rw-r--r--   1 100      102          1715 Jul  2  2008 /usr/share/mythtv/devicemaster.xml
268352    4 -rw-r--r--   1 100      102           814 Jul  2  2008 /usr/share/mythtv/deviceslave.xml
268545    8 -rw-r--r--   1 100      102          7288 Jul  2  2008 /usr/share/mythtv/info_menu.xml
268546    8 -rw-r--r--   1 100      102          6199 Jul  2  2008 /usr/share/mythtv/info_settings.xml
268548    4 -rw-r--r--   1 100      102           795 Jul  2  2008 /usr/share/mythtv/knoppmyth.xml
268551    8 -rw-r--r--   1 100      102          7850 Jul  2  2008 /usr/share/mythtv/main_settings.xml
268552   12 -rw-r--r--   1 100      102          8438 Jul  2  2008 /usr/share/mythtv/mainmenu.xml
268553    8 -rw-r--r--   1 100      102          6094 Jul  2  2008 /usr/share/mythtv/manage_recordings.xml
268554    8 -rw-r--r--   1 100      102          6344 Jul  2  2008 /usr/share/mythtv/media_settings.xml
268561    8 -rw-r--r--   1 100      102          5529 Jul  2  2008 /usr/share/mythtv/optical_menu.xml
268562    4 -rw-r--r--   1 100      102          3877 Jul  2  2008 /usr/share/mythtv/recpriorities_settings.xml
268563    8 -rw-r--r--   1 100      102          4154 Jul  2  2008 /usr/share/mythtv/setup.xml
268566    8 -rw-r--r--   1 100      102          4458 Jul  2  2008 /usr/share/mythtv/tv_lists.xml
268567   12 -rw-r--r--   1 100      102         11641 Jul  2  2008 /usr/share/mythtv/tv_schedule.xml
268568    4 -rw-r--r--   1 100      102          4028 Jul  2  2008 /usr/share/mythtv/tv_search.xml
268569    8 -rw-r--r--   1 100      102          7115 Jul  2  2008 /usr/share/mythtv/tv_settings.xml
268570    8 -rw-r--r--   1 100      102          6974 Jul  2  2008 /usr/share/mythtv/tvmenu.xml
 65877    4 drwxr-xr-x   2 100      root         4096 Jul 15  2008 /var/run/mythtv

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 06, 2009 3:50 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Given the files shown there what you're asking probably wouldn't be a good idea. Most of those files and directories should be owned by root, especially the stuff under "/etc", "/usr/bin", "/usr/lib" and "/usr/include". For the stuff under "/tmp" I'd probably remove it and then reboot.

Oh, and while you at it strip the execute permissions off the header files in "/usr/include" and those XML files. As I've commented many times before, there's no good reason for those to have execute permissions, only some potentially rather nasty ones.

Code:
find /usr -gid 102 -print0 | xargs -0 chown root:root
find /usr -uid 100 -print0 | xargs -0 chown root:root
find / -name '*.h' -print0 | xargs -0 chmod a-x
find / -name '*.xml' -print0 | xargs -0 chmod a-x


BTW - I've publish a script to clean up ownership and permissions around here somewhere. It should be pretty easy to find if you search for "cleanup_mythtv.sh". It may be slightly out of date for R6 but an excellent starting point for an updated version.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 12, 2009 3:04 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Thanks tjc. I opened a flyspray ticket a while back for your script.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 29 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu