LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-04-2003, 10:39 AM   #1
Phaethar
Member
 
Registered: Oct 2003
Location: MN
Distribution: CentOS, Fedora
Posts: 182

Rep: Reputation: 30
Question 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.
 
Old 12-06-2003, 03:50 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Why not mirror the files to a user writeable directory with the mount --bind command and change the permissions there...
 
Old 12-08-2003, 07:50 AM   #3
Phaethar
Member
 
Registered: Oct 2003
Location: MN
Distribution: CentOS, Fedora
Posts: 182

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to sort regular users and system users from /etc/passwd joeyBig Red Hat 9 05-29-2008 12:59 AM
How to give permissions for users....... manikantha Linux - General 1 03-17-2005 04:27 AM
users, groups, and permissions mcd Linux - Newbie 3 05-26-2004 09:06 PM
m9.2 all users have root permissions !? stormNC Mandriva 3 05-03-2004 08:57 PM
my users permissions bacon22 Linux - General 2 01-20-2004 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration