How to set up SFTP with ChrootDirectory on Linux.

If you want the default directory that users start in to be writable then you must create their home directory under the chroot. Else you can get errors type of:

Nov ** 12:35:00 sftp-server sshd[10267]: Accepted password for user
from localhost port 39150 ssh2
Nov ** 12:35:00 sftp-server sshd[10269]: fatal: bad ownership or modes
for chroot directory "/home/user01" 

After sshd has chrooted to the ChrootDirectory, it will chdir to the home directory as normal. So, for a passwd line like:

“How to set up SFTP with ChrootDirectory on Linux.”Continue reading

Yum: prevent a updating the packages

When you are running the new servers, the one thing you do not want to do – is upgrade the kernel. Because that is the only Linux update operation that requires a reboot once it is done — and in a production environment you often can’t have downtime.

“Yum: prevent a updating the packages”Continue reading

Scroll to top