LinHES Forums http://forum.linhes.org/ |
|
permissions on /myth anyone? http://forum.linhes.org/viewtopic.php?f=6&t=20254 |
Page 1 of 1 |
Author: | graysky [ Fri Aug 21, 2009 1:50 pm ] |
Post subject: | permissions on /myth anyone? |
Would someone be so kind as to paste the output of an ls -l on your /myth for me? Code: $ ls -l /myth
Mine seem to be 777 on all dirs under /myth which I don't think is right... |
Author: | simonf [ Fri Aug 21, 2009 4:39 pm ] |
Post subject: | |
heres mine it may not be standard It is the result of much tinkering and upgrades from r5 to r6.09 Code: > ls -l /myth
total 120 drwxr-xr-x 3 mythtv mythtv 4096 Feb 28 18:31 Temp drwxrwxr-x 2 mythtv mythtv 4096 Aug 14 11:05 backup drwxrwxrwx 5 http mythtv 4096 Mar 5 12:48 downloads drwxr-xr-x 18 root root 4096 Feb 24 05:20 gallery drwxrwxrwx 6 mythtv mythtv 4096 Oct 31 2008 games drwxrwxrwx 2 mythtv mythtv 4096 Oct 31 2008 image_cache drwxr-xr-x 2 mythtv http 4096 Aug 11 13:28 ipodfeed drwx------ 2 root root 16384 Feb 23 18:21 lost+found drwxr-xr-x 5 root root 4096 Apr 11 00:01 miro drwxrwxrwx 2 mythtv mythtv 4096 Mar 5 09:40 motion drwxrwxrwx 91 mythtv mythtv 4096 Mar 5 15:08 music drwxr-xr-x 2 root root 4096 Feb 24 03:37 old drwxrwxrwx 4 mythtv mythtv 4096 Feb 23 22:11 phone drwxrwxrwx 2 mythtv mythtv 12288 Aug 21 23:01 pretty drwxr-xr-x 7 mythtv mythtv 4096 Jul 30 15:53 simon drwxrwxrwx 2 mythtv mythtv 4096 Oct 31 2008 stream drwxrwxrwx 5 mythtv mythtv 4096 Aug 4 16:29 tmp drwxrwxrwx 2 mythtv mythtv 20480 Aug 21 23:01 tv drwxrwxrwx 7 mythtv mythtv 12288 Aug 20 17:47 video |
Author: | bigbro [ Fri Aug 21, 2009 5:23 pm ] |
Post subject: | |
A little different from above. Code: ls -l /myth
total 428 drwxrwxr-x 2 mythtv mythtv 4096 Sep 21 2008 archive drwxrwxr-x 2 root root 4096 Jun 27 09:21 backup drwxr-xr-x 2 mythtv mythtv 4096 Sep 21 2008 democracy drwxrwxr-x 3 mythtv mythtv 4096 Aug 9 08:39 gallery drwxrwxr-x 6 mythtv mythtv 4096 Sep 21 2008 games drwxrwxrwx 2 www-data www-data 4096 Sep 21 2008 image_cache drwxrwxr-x 2 mythtv mythtv 4096 Jul 3 22:31 ipodfeed drwx------ 2 mythtv mythtv 16384 Sep 21 2008 lost+found drwxrwxr-x 2 mythtv mythtv 4096 Sep 21 2008 motion drwxrwxr-x 2 mythtv mythtv 4096 Sep 21 2008 music drwxrwxr-x 4 mythtv mythtv 4096 Sep 21 2008 phone drwxrwxr-x 2 mythtv mythtv 118784 Aug 21 16:17 pretty drwxr-xr-x 4 root root 4096 Sep 21 2008 rrd drwxrwxr-x 2 mythtv mythtv 4096 Sep 21 2008 stream drwxrwxrwx 5 mythtv mythtv 4096 Feb 24 15:22 tmp drwxrwxr-x 2 mythtv mythtv 36864 Aug 18 21:25 tv drwxrwxr-x 3 mythtv mythtv 45056 Aug 20 05:58 tv1 drwxrwxr-x 3 mythtv mythtv 32768 Aug 19 23:27 tv2 drwxrwxr-x 3 mythtv mythtv 122880 Aug 21 15:59 tv3 drwxrwxr-x 6 mythtv mythtv 4096 Aug 2 19:05 video Hope this helps using R5.5 here |
Author: | graysky [ Fri Aug 21, 2009 5:53 pm ] |
Post subject: | |
Thanks for the posts... guess mine are fine. |
Author: | tjc [ Fri Aug 21, 2009 8:59 pm ] |
Post subject: | |
Well kind of... One of my personal post-install setup scripts cleans up a bunch of stuff like this. Let me dig it up for you... Code: root@black2:~/setup# cat cleanup_mythtv.sh
#!/bin/bash # This script cleans up some SVN stuff that the build process leaves # in /usr/share/mythtv, along with ownership and file permsisions on the # themes and the mythstream stuff. There are bunch of files which are # left executable for no good reason, although I can think of several # potentially bad reasons for it. find /usr/share/mythtv -name .svn -print0 | xargs -0 rm -rf find /usr/share/mythtv -name CVS -print0 | xargs -0 rm -rf THEMES=/usr/share/mythtv/themes chown -R root:root $THEMES chmod -R +r $THEMES find $THEMES -type f -print0 | xargs -0 chmod a-x chown -R root:root /myth/backup/ chown -R www-data:www-data /myth/image_cache/* chown -R www-data:www-data /var/www # None of thes files should be executable. for ext in gif png jpg xml htm html php ; do find / -type f -name "*.$ext" -print0 | xargs -0 chmod a-x done # These files should be owned by root and not writable to anybody else chown root:root /usr/share/mythtv/*.xml /usr/share/mythtv/*.ttf chown -R root:root \ /usr/share/mythtv/i18n \ /usr/share/mythtv/mytharchive \ /usr/share/mythtv/mythflix \ /usr/share/mythtv/mythnews \ /usr/share/mythtv/mythvideo \ /usr/share/mythtv/mythweather \ /usr/LH \ /etc/rc1.d \ /usr/lib/hotplug/firmware \ /usr/local/share/knoppmyth/KnoppMyth.sql \ /usr/local/bin/rrd* # Report any remaining orphans... find / /myth -xdev \( -nouser -o -nogroup \) -ls The last line will probably reveal a couple dozen orphaned files with a UID/GID which doesn't have a corresponding user in /etc/passwd or group in /etc/group |
Author: | graysky [ Sat Aug 22, 2009 3:41 am ] |
Post subject: | |
Nice, tjc. That script should be included in R6 if it isn't already... I opened a FS ticket requesting it. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |