Re: 請問兩個有關proftpd的問題 - BBS

Table of Contents

※ 引述《[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進不去

--

All Comments