LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Permissions for System users (https://www.linuxquestions.org/questions/red-hat-31/permissions-for-system-users-122668/)

Phaethar 12-04-2003 10:39 AM

Permissions for System users
 
As part of my ongoing struggle with file and directory permissions, I'm now looking to see if there is any way to control or edit the default permissions of specific system users. Specifically, I need to change the umask for the Apache user, as we have the apache program creating files that need to be writable by other users after they are created. As most of this is automated, I need to find out how to make files created by Apache writable to both the apache user and group by default. As this user is set up by default to use 'sbin/nologin' as it's login shell, I don't know where to look to modify this. Would anyone happen to know if there is some way to set the default umask for a user like this? This is in RH9.

Thanks in advance.

peter_robb 12-06-2003 03:50 PM

Why not mirror the files to a user writeable directory with the mount --bind command and change the permissions there...

Phaethar 12-08-2003 07:50 AM

We actually did find a way to get this working without having multiple copies of the files and without having to manually change the permissions each time. As the files we are creating as the Apache user and being done via Python scripts, we found a Python command built in (chmod) to set the permissions of each file as they are created. Doing this, we can give the user and, more importantly, the group full access to the files as they are created. Thanks for the help, I think we finally have everything running properly.


All times are GMT -5. The time now is 07:43 PM.