Quantcast
Channel: bad ownership or modes for chroot directory "/var/www" - Super User
Browsing latest articles
Browse All 3 View Live

Answer by Samir Ahmadli for bad ownership or modes for chroot directory...

Here's the commands you need: usermod -d /var/www/ sftponly usermod -s /sbin/nologin sftponly usermod -s /bin/false sftponly After this best way to give permissions for any user to any folder is ACL:...

View Article



Answer by lgflorentino for bad ownership or modes for chroot directory...

Sounds like your permissions are too permissive for SFTP. You will need to create a folder for the user and let him access it with 0700 permissions or even more restrictive than that. See this...

View Article

bad ownership or modes for chroot directory "/var/www"

I am getting following error in auth.log when trying to connect to site using SFTP. fatal: bad ownership or modes for chroot directory "/var/www" ls -ld of this directory shows this: drwxrwxr-x 4 root...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images