Limiting an account to FTP only

Chuck Swiger cswiger at mac.com
Tue Jul 1 14:28:22 PDT 2003


Nick Wilson wrote:
> I am wanting to limit an account to FTP only, for uploading web pages to a
> server.  I have ftpchroot'ed the account to limit access to the directories
> I want to - is there any way of disabling all other access
> (SSH/telnet/rlogin/SMTP auth etc).  I thought about removing the shell type
> from the user account but believe ftpd needs a shell to be specified to
> validate the logon.

You can use /usr/bin/false or /sbin/nologin as the shell for this FTP user. 
(Add whichever you use to /etc/shells...)

-- 
-Chuck




More information about the freebsd-questions mailing list