I’m running Red Hat Enterprise Linux and assume you have nano installed; if not vi works or any other editor. Also using PuTTY to access my server from windows.
To jail folks up we’ve taken this approach which I think is pretty straight forward.
1. Open a terminal, type:
2. Make two changes:
- Set the user’s home directory to whatever the home directory is for the website they work on:
- Set their login shell to /sbin/nologin
Save it by Ctrl+x, then hit the “y” key, then enter/return to confirm.
To finalize the deal, you must add their username to /etc/vsftpd/chroot_list.