多个ftp登陆用户权限不同

来源:互联网 发布:vf数据库视频教程网易 编辑:程序博客网 时间:2024/04/29 03:59

比如现在存在两个可以访问ftp的用户user1user2

 

SMH:# cd /etc/vsftpd/

vsftpd.config  使用默认配置即可。

 

 

SMH:#cd /etc/vsftpd/userconf

SMH:/etc/vsftpd/userconf # ls

user1  user2

 

假如要让user1只有上传和浏览权限,user2权限不变

只要在user1中加入下面红色字表示的三行,user2中的不变:

 

SMH:/etc/vsftpd/userconf # cat user1

local_root=/nas/l1/ftp

write_enable=YES

cmds_allowed=PASV,PORT,TYPE,LIST,STOR,MKD,CWD,PWD,ABOR.REST,QUIT,FEAT

pasv_enable=YES

local_umask=002

 

SMH:/etc/vsftpd/userconf # cat user2

local_root=/nas/l1/ftp

write_enable=YES

原创粉丝点击