LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1001|回复: 9

vsftpd怎么设置shell

[复制链接]
发表于 2006-12-9 10:15:50 | 显示全部楼层 |阅读模式
vsftpd想要设置特定用户上传,因此在系统中设置一个系统用户,但是发现shell一定要设置成bash,以前在proftpd里设置可以设为false,但现在用bash,那不是本机也可以登录,这个在vsftpd怎么设置成false呢?
发表于 2006-12-9 12:06:35 | 显示全部楼层
同问, -----
好像换为false, 就不让用了

可以换个验证策略.
回复 支持 反对

使用道具 举报

发表于 2006-12-9 14:00:02 | 显示全部楼层
你的机器上有/etc/shells这个文件么
把你要的shell加到这个里面
一行一个
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-13 23:34:07 | 显示全部楼层
但是感觉这样还是不好,/etc/shells这个文件是规定能登录的shells,如果加入/bin/false ,那是不是用户可以用/bin/false在本地登录系统,就是不知道这个false能干什么,vsftpd是不是本来就是这样实现实名登录的,而且通过cmds_allowed 来限制权限,不太清楚,false是一个什么样的shell?
回复 支持 反对

使用道具 举报

发表于 2006-12-14 00:18:43 | 显示全部楼层
/bin/false or /bin/true are not connecting to any shells. they simply prevent you from login to the real shell so that you can't run any system commands. they just return true or false. For a virtual user, I'd think you should use /bin/true instead of /bin/false so you can still access ftp.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-16 00:24:18 | 显示全部楼层
But why I can't find the shell of "/bin/true"?
How can I add it to my system?
回复 支持 反对

使用道具 举报

发表于 2006-12-16 01:21:18 | 显示全部楼层
check_shell
Note! This option only has an effect for non-PAM builds of vsftpd. If disabled, vsftpd will not check /etc/shells for a valid user shell for local logins.

Default: YES
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-16 12:55:10 | 显示全部楼层
Sorry ,I can't understand what you have said,
can you show me more details?
And tell me why,thank you !
回复 支持 反对

使用道具 举报

发表于 2006-12-16 14:32:58 | 显示全部楼层
修改vsftpd配置文件中check_shell选项为:
check_shell no
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-24 10:33:39 | 显示全部楼层
我知道改这个选项,但是这个选项是干什么用的,pam验证有什么用,我想这对于安全性有很大影响吧。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表