TECHIES WORLD

For Techs.... Techniques.... Technologies....

BashLinux

How to create read-only user in VSFTP

All the ftp users will have read and write privileges by default.

This tutorial explains the steps to create a read-only user in VSFTP.

Step1: Login to the server via ssh as root.

Step2: Create the user config folder is not existing.

#mkdir /etc/vsftpd_user_conf

Step3: Open vsftp main config file.

#vi /etc/vsftpd.conf

Step4: Include the user config folder in vsftpd main configuration file. Add the following line.

user_config_dir=/etc/vsftpd_user_conf

Step5: Create the user config file with the name of the user itself inside the folder "/etc/vsftpd_user_conf" and update the following lines.

cmds_denied=TOR,DELE,RNFR,RNTO,MKD,RMD,APPE,SITE,STOR,STOU

Step6: Restart vsftp service.

#systemctl restart vsftpd

That's all…

Leave a Reply