Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
umask not working, change permissions at write
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
chrisduck
Apprentice
Apprentice


Joined: 30 Jun 2004
Posts: 283
Location: California

PostPosted: Wed Feb 13, 2008 4:16 am    Post subject: umask not working, change permissions at write Reply with quote

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
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Sun Feb 17, 2008 1:00 am    Post subject: Reply with quote

What program is being used to save the files? It might be resetting the umask to a stricter one
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Sun Feb 17, 2008 2:01 am    Post subject: Reply with quote

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 :wink: )



Cheers,
jcat
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum