Hello, We own a CentOS Server which hosts a few domains using Cpanel, however each host or domain has its own user and its own folder under /home, we want a separate user(newuser1) to have read and write privileges in all home's subdirectories so we can do some tasks remotely using WinSCP, that user is already in the sudoers group and the root login is disabled in SSH for security, but I haven't been able to assign the correct privileges and rights to newuser1 using chmod -R owneruser:newuser1 /home/owneruserdir, everytime we login with newuser1 using WinSCP to /home and try to change directory to /home/owneruserdir we receive a permission denied message, so I don't know where else to look. Any pointers will be apreciated. Thanks. -- "Everything that irritates us about others can lead us to an understanding of ourselves"
Victor Padro wrote:> Hello, > > We own a CentOS Server which hosts a few domains using Cpanel, however > each host or domain has its own user and its own folder under /home, > we want a separate user(newuser1) to have read and write privileges in > all home's subdirectories so we can do some tasks remotely using > WinSCP, that user is already in the sudoers group and the root login > is disabled in SSH for security, but I haven't been able to assign the > correct privileges and rights to newuser1 using chmod -R > owneruser:newuser1 /home/owneruserdir, everytime we login with > newuser1 using WinSCP to /home and try to change directory to > /home/owneruserdir we receive a permission denied message, so I don't > know where else to look.you did give execute permissions to the group members on the dirs? if unsure show us ls -l /home | grep owneruserdir
On 10/05/11 1:01 PM, Victor Padro wrote:> chmod -R owneruser:newuser1 /home/owneruserdirchMOD changes the access modes, not the owner:group. rather, you likely should have done... chgrp -R newuser1 /home/owneruserdir chmod -R g+rwx /home/owneruserdir AND you likely want to set the group sticky bit so new files inherit the group find /home/owneruserdir -type d | xargs chmod g+s also, you'll want to globally set umask 0002 so files get created group write by default. -- john r pierce N 37, W 122 santa cruz ca mid-left coast
Possibly Parallel Threads
- Dovecot, Shared Mailboxes (via symlink), and ACLs
- WinSCP: unimplemented function netapi32.dll
- WinSCP 5.7.5 will support the RFC 4419 revision to Diffie-Hellman group exchange
- [Bug 2441] New: compat listing for WinSCP
- getting wine to run on OpenSuse 11.4-in order to use WinSCP