Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Group permission inheritance and umask
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
soya
Guru
Guru


Joined: 29 Jan 2004
Posts: 423

PostPosted: Wed Feb 06, 2013 6:10 pm    Post subject: Group permission inheritance and umask Reply with quote

Hi,

i'm trying to force newly created files and directories to be owned by nginx user and to set the right permissions so nginx group users can execute and modify them if needed.

The whole thing is i've just configured vsftpd service where my virtual users act as vsftpd user, where vsftpd is a real user with no shell.

After login, each user is chrooted on a directory owned by user vsftpd and group nginx. To accomplish that i created the chroot directory:
Code:

mkdir chroot/


and then gave the default permissions:
Code:

chown -R vsftpd:nginx chroot/


and then enabled SGUID:
Code:

chmod -R g+s chroot/


Right here, when a vsftpd user creates a directory default permissions are vsftpd:nginx but default permissions for files are nginx:nginx which is not what i want.

Then, as i need nginx user's group to run and modify files if need i setted umask '0022' through vsftpd config but i think i'm going in the wrong way. Can anyone point me to the right direction?
_________________
Si el tonto te alaba lamentalo, si el listo te censura piensalo...
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