Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file creation and default rights

Status
Not open for further replies.

njadmin

Technical User
Sep 5, 2006
101
US
I'm having an issue with a program that runs as it's own user that I need to create files in a directory that a different program can access. When the first program creates the file the default rights are rw-r----- the user is nobody and the group is service. I need the rights to be rw-r--r-- so the other program can access the files. I've tried searching for something similar but I'm only finding stuff for NFS and Samba creation masks. Since this isn't using those services it doesn't help.

If you need more info let me know

TIA

Jason
 
Is the first program setup as a service, or does it run from cron, or some other way? what does umask -S show if you log in as the user ?

Tony ... aka chgwhat

When in doubt,,, Power out...
 
It's a service. When I login to that account it shows u=rwx,g=rwx,o=rx
I also changed the folder owner and group to match everything else this service uses.
I did a test touch file in the folder and the rights are fine.
 
Is the umask set by the service script usually /etc/rc.d/init.d/service , if it is not you will have to find the config files for the program and see if it can be set there. If that does not work do you have the program source ?

Tony ... aka chgwhat

When in doubt,,, Power out...
 
It is run from the /etc/rc.d/init.d folder but I don't see anything for a umask. Is there a simple way to add it in there? (sorry I don't normal mess with start scripts)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top