close

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

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 dreamtails 的頭像
    dreamtails

    雜七雜八的小筆記!

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