LinuxSir.cn,穿越时空的Linuxsir!

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

proftpd: 用户不能登陆

[复制链接]
发表于 2003-7-29 15:54:24 | 显示全部楼层 |阅读模式
我是用 useradd -g ftp-users -d /home/ftp -s /bin/false whedu来加用户的。
下面是proftpd调试信息。

localhost.localdomain.whedu.net - FS: using system lstat()
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - ROOT PRIVS at main.c:937
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - SETUP PRIVS at main.c:942
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - performing module session initializations
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - ROOT PRIVS at mod_auth.c:129
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - RELINQUISH PRIVS at mod_auth.c:132
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - connected - local  : 211.45.90.63:21
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - connected - remote : 211.45.93.27:2009
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - FTP session opened.
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching PRE_CMD command 'USER whedu' to mod_core
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching PRE_CMD command 'USER whedu' to mod_core
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching PRE_CMD command 'USER whedu' to mod_auth
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "endpwent" to module mod_auth_file
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "endpwent" to module mod_auth_unix
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "endgrent" to module mod_auth_file
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "endgrent" to module mod_auth_unix
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching CMD command 'USER whedu' to mod_auth
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - RELINQUISH PRIVS at mod_auth.c:1465
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching LOG_CMD command 'USER whedu' to mod_log
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "endpwent" to module mod_auth_file
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "endpwent" to module mod_auth_unix
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "endgrent" to module mod_auth_file
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "endgrent" to module mod_auth_unix
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching CMD command 'PASS (hidden)' to mod_auth
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - RELINQUISH PRIVS at mod_auth.c:1465
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "getpwnam" to module mod_auth_file
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "getpwnam" to module mod_auth_unix
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "gid_name" to module mod_auth_file
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "gid_name" to module mod_auth_unix
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "getgroups" to module mod_auth_file
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "getgroups" to module mod_auth_unix
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "setgrent" to module mod_auth_file
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching auth request "setgrent" to module mod_auth_unix
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - USER whedu (Login failed): Invalid shell: '/bin/false'
localhost.localdomain.whedu.net (211.45.93.27[211.45.93.27]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_log
 楼主| 发表于 2003-7-29 16:21:25 | 显示全部楼层
我发现, 只要将用户改成:
[root@localhost root]# usermod  -s /bin/bash whedu
就可以登陆。。。。
那我又不想这个用户帐号可以用SSH怎么办?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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