↧
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 ArticleAnswer 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 Articlebad 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