I need to create user with limited access to one folder only, example /home/user1.Like in cPanel and WHM.
How can i do it ?
For this example, I am using Vsftpd, as it is the default FTP client distributed with RedHat, however these instructions should apply to most FTP server applications.
Create a FTP user group. eg: ftpaccounts
Add a new user to this group, and set the default path of that user to /home/user/.
Set a password for the newley created user.
Set ownership of /home/user to the testuser and ftpaccounts.
Give Read/Write access to testuser and all members in ftpaccounts
Edit /etc/vsftpd/vsftpd.conf file and make sure
Restart the vsftpd service.