[mythtv-users] Permissions on uploaded movie posters via mythweb

Michael T. Dean mtdean at thirdcontact.com
Thu Feb 7 16:41:16 UTC 2008


On 02/07/2008 06:54 AM, Ashley Bostock wrote:
> I'm having problems with the file permissions set on movie posters 
> uploaded via mythweb.
>
> I've set the folder for my posters to be owned by www-data (apache 
> user) with group as mythtv (sticky bit on).
> If I use the option that runs the IMDB script which automatically 
> grabs the data and poster, then the image has the correct permissions 
> (i.e. both mythweb and mythfrontend can read the file)...
> -rw-r--r-- 1 www-data mythtv
>
> For some movies a poster isn't found so I use the upload image feature 
> in mythweb. However the permission are then set incorrectly (i.e. 
> mythfrontend can't read the file)...
> -rw------- 1 www-data www-data
>
> Does the IMDB script download the file straight to the posters folder, 
> where as the uploader sticks it in a temp folder and then moves it 
> afterwards, thus causing the different permissions?
>
> How do I get around this problem?

Sounds like you need to change the umask for the user running your web 
server user.

Mike


More information about the mythtv-users mailing list