View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Aug 21, 2009 1:50 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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...

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 21, 2009 4:39 pm 
Offline
Joined: Wed Nov 09, 2005 1:21 pm
Posts: 161
Location: Manchester UK
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


_________________
Running:-
Intel 930 3GHz dual Core
Thermaltake Fanless CPU Cooler
Asus P5GS
Samsung 750G Sata HDD
8400 512m Video Card
2 * jetway DVB-t
1 * Haupage DVB-S2 Card
Samsung Sata 16x DVDRW
2048M Ram
1 * Netop Ion 330


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 21, 2009 5:23 pm 
Offline
Joined: Sat Dec 24, 2005 11:33 am
Posts: 400
Location: Kitsap Peninsula, Wa., United States
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 21, 2009 5:53 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Thanks for the posts... guess mine are fine.

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 21, 2009 8:59 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 22, 2009 3:41 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Nice, tjc. That script should be included in R6 if it isn't already... I opened a FS ticket requesting it.

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


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 35 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