You could use /bin/false for this without creating a new …

Monday, 29th April 2024

Comment on Enable user access only to ProFTP server / Disable user login via ssh scp and sftp by Jason Leidner.

You could use /bin/false for this without creating a new shell. Not sure if debian has this, but for RHEL/CentOS it would be simple.

So it would just be the following steps:

echo “/bin/false” >> /etc/shells
usermod -s /bin/false ftp-user

Done!

Also – checkout scponly as an alternative to RSSH since the RSSH maintainer left the project some time ago.

Thanks for the post.

Share this on:

Comments are closed.