Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Jul 2003 17:28:18 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Nick Wilson <nick@the-wilsons.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Limiting an account to FTP only
Message-ID:  <3F01FCF2.8010003@mac.com>
In-Reply-To: <006501c34014$e98f6bc0$d86d0251@studygw>
References:  <006501c34014$e98f6bc0$d86d0251@studygw>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F01FCF2.8010003>