soya Guru
Joined: 29 Jan 2004 Posts: 429
|
Posted: Wed Feb 06, 2013 6:10 pm Post subject: Group permission inheritance and umask |
|
|
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:
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 laméntalo, si el listo te censura piénsalo. |
|