View previous topic :: View next topic |
Author |
Message |
chrisduck Apprentice


Joined: 30 Jun 2004 Posts: 283 Location: California
|
Posted: Wed Feb 13, 2008 4:16 am Post subject: umask not working, change permissions at write |
|
|
Whenever a user logs into my server and saves a file, the file is saved with -rw-r--r--. Multiple users need write-access to the file. I need -rw-rw-r--.
I've changed the umask to 002 in /home/user/.bashrc, /etc/proftpd/proftpd.conf and also /etc/profile. I've also rebooted the machine to restart all services.
Still, users are writing files with -rw-r--r--. What's going on here? |
|
Back to top |
|
 |
Wormo Retired Dev

Joined: 29 Nov 2004 Posts: 526 Location: SB County California
|
Posted: Sun Feb 17, 2008 1:00 am Post subject: |
|
|
What program is being used to save the files? It might be resetting the umask to a stricter one |
|
Back to top |
|
 |
jcat Veteran


Joined: 26 May 2006 Posts: 1337
|
Posted: Sun Feb 17, 2008 2:01 am Post subject: |
|
|
I assume from your post you're talking about people uploading files through proftpd?
I would have thought that ignores the bash umask anyway, but to double check it's taken effect just log in as a normal user on a CLI and Code: | touch test-file && ls -al test-file |
Then you'll know for sure.
If the result is as expected then it has to be a proftpd setting (unless I completely mis-understood your first post )
Cheers,
jcat |
|
Back to top |
|
 |
|