LinuxSir.cn,穿越时空的Linuxsir!

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

vsftpd 的 nopriv_user 指定为 ftp 以后却还是以 root 运行(解决)

[复制链接]
发表于 2007-4-7 13:33:11 | 显示全部楼层 |阅读模式
配置 vsftpd 时碰到的问题。

系统上已经有用户 ftp 了,但是不管 nopriv_user 指定为 nobody 还是 ftp 都是以 root 身份运行。

按照 apache 的行为的话是可以指定程序以哪个用户的身份来执行的,vsftpd 的手册上也是这么解释的,但结果始终不对。
发表于 2007-4-7 15:50:53 | 显示全部楼层
ftp 就是 nopriv_user 指定的。myusers是登录的。
root      7961  0.0  0.0   3540   968 ?        Ss   Apr04   0:03 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root     16677  0.0  0.0   3664  1084 ?        Ss   08:44   0:00  \_ /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
ftp      16678  0.0  0.0   3676   920 ?        S    08:44   0:00  |   \_ /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
ftp      17224  0.0  0.0   3664  1136 ?        Ss   08:47   0:00  \_ /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
myusers  17226  0.0  0.0   3764  1040 ?        S    08:47   0:00      \_ /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-8 12:49:37 | 显示全部楼层
哦,是这样啊。

原来 vsftpd 也是多进程处理客户端请求啊,子进程以 nopriv_user 指定的用户身份执行处理匿名登录的用户,而对登录的用户就以用户自己的身份执行。

谢谢了!你给的是 ps 的输出吧,看起来有点怪啊。
回复 支持 反对

使用道具 举报

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

本版积分规则

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