Environment: All users are Read-Only on vsFTPd

[root@localhost ~]# vim /etc/vsftpd/vsftpd.conf
-----------------------------------------------------------
......
# Uncomment this to enable any form of FTP write command.
write_enable=NO
......
-----------------------------------------------------------


We have create an account "CloudUser", and CloudUser must Read-Write on vsFTPd of user home directory.

Step 1) We can add a record on vsftpd config below,
[root@localhost ~]# vim /etc/vsftpd/vsftpd.conf
-----------------------------------------------------------
......
user_config_dir=/etc/vsftpd/vsftpd_user_config
......
-----------------------------------------------------------


[root@localhost ~]# mkdir -p /etc/vsftpd/vsftpd_user_config


Step 2) Create another config for "CloudUser"
[root@localhost ~]# vim /etc/vsftpd/vsftpd_user_config/CloudUser
-----------------------------------------------------------
write_enable=YES
-----------------------------------------------------------

Step 3) Restart service
[root@localhost ~]# systemctl restart vsftpd

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()