ubuntu中用于远程登录的shell是什么

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
rhinolt
帖子: 83
注册时间: 2017-01-03 19:08
系统: RHEL7

ubuntu中用于远程登录的shell是什么

#1

帖子 rhinolt » 2017-11-11 23:13

用proftpd搭了个服务,在设置登录用户的时候发现没有centos的/sbin/nologin shell
那该用哪种shell呢?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu中用于远程登录的shell是什么

#2

帖子 poloshiao » 2017-11-12 7:48

/sbin/nologin shell
https://www.howson.me/proftpd-allow-log ... sh-access/
ProFTPD - Allow login without shell / SSH Access
(tested on Ubuntu 14.04 LTS)
rhinolt
帖子: 83
注册时间: 2017-01-03 19:08
系统: RHEL7

Re: ubuntu中用于远程登录的shell是什么

#3

帖子 rhinolt » 2017-11-12 9:08

poloshiao 写了:
/sbin/nologin shell
https://www.howson.me/proftpd-allow-log ... sh-access/
ProFTPD - Allow login without shell / SSH Access
(tested on Ubuntu 14.04 LTS)
也就是说其实用/bin/false就可以了?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu中用于远程登录的shell是什么

#4

帖子 poloshiao » 2017-11-12 10:43

依照上述方法 試試看
行不行 再來與大家分享
头像
astolia
论坛版主
帖子: 6396
注册时间: 2008-09-18 13:11

Re: ubuntu中用于远程登录的shell是什么

#5

帖子 astolia » 2017-11-12 11:02

/usr/sbin/nologin 或 /bin/false 都行
adduser添加系统账号时,默认的shell就是/bin/false
rhinolt
帖子: 83
注册时间: 2017-01-03 19:08
系统: RHEL7

Re: ubuntu中用于远程登录的shell是什么

#6

帖子 rhinolt » 2017-11-12 14:32

poloshiao 写了:依照上述方法 試試看
行不行 再來與大家分享
状态: 尝试连接“ECONNREFUSED - 连接被服务器拒绝”失败。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu中用于远程登录的shell是什么

#7

帖子 poloshiao » 2017-11-12 14:38

状态: 尝试连接“ECONNREFUSED - 连接被服务器拒绝”失败。
請把終端機指令及回應文字 (包含 username@hostname) 全部複製貼上來
避免摘要 以免遺漏重要訊息
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: ubuntu中用于远程登录的shell是什么

#8

帖子 TeliuTe » 2017-11-12 17:36

我是设置虚拟用户group和passwd文件来远程登录,nologin提示出错但不影响,参考: http://teliute.org/linux/TeDianao/lesso ... son31.html
看CSDN里说自己建一个 /etc/nologin,还没试
rhinolt
帖子: 83
注册时间: 2017-01-03 19:08
系统: RHEL7

Re: ubuntu中用于远程登录的shell是什么

#9

帖子 rhinolt » 2017-11-12 18:26

poloshiao 写了:
状态: 尝试连接“ECONNREFUSED - 连接被服务器拒绝”失败。
請把終端機指令及回應文字 (包含 username@hostname) 全部複製貼上來
避免摘要 以免遺漏重要訊息
是防火墙没设置好,现在确认您之前贴的方法可以解决
回复