[mythtv-users] Permissions problem

Michael T. Dean mtdean at thirdcontact.com
Tue Jul 25 14:18:49 UTC 2006


On 07/23/06 23:28, A Desai wrote:

>  On 7/23/06, Michael T. Dean <mtdean at thirdcontact.com> wrote:
> > On 07/23/2006 06:29 PM, A Desai wrote:
> >> On 7/22/06, Michael T. Dean <mtdean at thirdcontact.com> wrote:
> >>> On 07/21/06 16:30, A Desai wrote:
> >>>> I need some help with my MythTV recordings. Right now what
> >>>> happens is that every new recording is recorded with a
> >>>> permission of 600, where *root* is the owner and *mythtv* is
> >>>> the group.
> >>>>
> >>>> This happened after I was playing around with the security
> >>>> settings of /usr/local/media on my Windows box. This is what
> >>>> happened:
> >>>>
> >>>> I have my all my Mythtv contents under /usr/local/media
> >>>> (/usr/local/media/tv, /usr/local/media/videos,
> >>>> /usr/local/media/music....etc). I have this /usr/local/media
> >>>> shared as my M: drive on my Windows machine. The other day I
> >>>> was playing around with the "security" of this mapped drive
> >>>> on my windows box and I saw that there were two "users"
> >>>> there: Everyone and Root. However, none of the rights under
> >>>> either of those users were checked off. So I checked them
> >>>> off. However, doing this made me unable to watch any
> >>>> recordings, so I tried to uncheck it back. This time I saw
> >>>> that there were one more user added there (can't remember
> >>>> now, but something CREATED...). Also, when I tried to uncheck
> >>>> it, it asked me if I want sub-folders to inheret the
> >>>> permissions, etc. Anyway, nothing worked so I went to my
> >>>> mythtv and did a recursive chmod 755 as well as did chgrp
> >>>> mythtv /usr/local/media.
> >>>>
> >>>> But this only works for the recordings I have so far. Any new
> >>>> recording gets a permissions of 600, so it shows up as a
> >>>> recording, there is a pic in the preview pane, but when I
> >>>> click on it, it just sits there. My backend runs as root,
> >>>> frontend as mythtv. So every evening when I go home from
> >>>> work, I have to do chmod -r 755 /usr/local/media.
> >>> ls -ald /usr/local/media
> >>>
> >>> gives?
>
>  [root at localhost ~]# ls -adl /usr/local/media
>  drwxr-xr-x+ 8 root mythtv 96 Jul 5 21:27 /usr/local/media
>
>  [root at localhost ~]# ls -adl /usr/local/media/tv
>  drwxr-xr-x+ 2 root mythtv 8192 Jul 23 17:24 /usr/local/media/tv

As indicated by the "+" after the permissions, you have an ACL (Access 
Control List) set on your directories (probably put there by Windows).

http://security.linux.com/security/04/07/28/1746258.shtml?tid=23&tid=35

What happens with something like:

setfacl -b /usr/local/media/{,tv}

Mike


More information about the mythtv-users mailing list