作者Blueshine (水蓝)
看板FreeBSD
标题Re: 请问两个有关proftpd的问题
时间Sat Sep 4 00:08:33 2004
※ 引述《[email protected] (easyman)》之铭言:
: 2. 当我使用vipw限制xxxx user无法login(例如/sbin/nologin,
: 也在/etc/下touch 一个nologin档),可是proftpd也无法让这些user登入。
: 而在/var/log/auth.log档中,记录error的原因:
: USER xxxx (Login failed): Invalid shell: '/sbin/nologin'
: 当我将xxxx user的login shell 改为/usr/local/bin/bash,就可以用proftpd登入?
不知道你要的是不是这个
### It is wise when making an 'ftp' user that you either block its
### ability to login either via /etc/login.access or my giving it
### an invalid shell.
### Uncomment this if the 'ftp' user you made has an invalid shell
RequireValidShell off
这样user就可以ftp进去,但是ssh进不去
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.64.19.9