[mythtv-users] Permissions on Video Library storage group directories
Mark Greenwood
fatgerman at gmail.com
Fri Oct 26 18:58:08 UTC 2012
On 26 Oct 2012, at 19:48, Stephen Robertson wrote:
> Hi All
>
> I was looking for some advice on how people configure the directories
> that they use with video storage groups.
>
> On my backend myth runs as the mythtv user but I am generally logged
> in as the stephen user.
>
> Currently the top level of my one and only video storage groups is at
> /media/disk/Videos. This is owned by "stephen" and in group "stephen"
> and is readable/writeable by everyone. So scripts run by the backend
> have no problem writing here and things mostly work. However they are
> created as mythtv:mythtv with permissions 644 and having the 777
> permissons on the top level seems wrong.
>
> One thought was to use setgid(which I have only just been reading
> about) on the folder and also create a "Videos" group with stephen and
> mythtv as members but that would still only give stephen read access
> to the files.
>
> I kind of get the feeling my lack of knowledge is making this more
> complicated than it needs to be.
Are you running mythbuntu by any chance? I still don't understand why their install logs you in as 'stephen' but runs everything as user 'mythtv'. It makes for big trouble with various things - xmltv being another example.
FWIW I changed the permissions on my Videos directory to be rw by owner and group, and changed the owner to my username. I share it over NFS and have configured the NFS share so that any files added to it get the same permissions as the directory. (I don't copy anything into that directory except over NFS). I don't think you're making it too complicated, it's just a side-effect of Linux's (IMHO) over-zealous security model and mythbuntu's bizarre setup.
Mark.
>
> Any suggestions?
>
> Thanks
> Stephen
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
More information about the mythtv-users
mailing list