Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Sep 2000 08:43:29 +0400
From:      Igor Roboul <igor@raduga.dyndns.org>
To:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   Re: restricting login access to ftp only
Message-ID:  <20000919084329.B29692@linux.rainbow>
In-Reply-To: <39C64D3C.F2B37EC2@planetwe.com>; from drew@planetwe.com on Mon, Sep 18, 2000 at 12:13:32PM -0500
References:  <39C64D3C.F2B37EC2@planetwe.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 18, 2000 at 12:13:32PM -0500, Drew Sanford wrote:
> I would like to be able to restrict access of some users to ftp only for
> a certain system, thus allowing them to ftp information to and from the
> server, but not gain shell access. Each user needs to be able to access
> information for them, placed into their home directory. I thought at
> first that using a shell of /sbin/nologin would work, but that denies
> ftp access as well. Can anyone point me towards some documentation on
> how to do this? Thanks.
Add /sbin/nologin to /etc/shells (or add /bin/false to /etc/shells, and 
set user shell to /bin/false) Then you'll can use /sbin/nologin
for users without login access at all.

-- 
Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", 
Sochi, Russia
http://www.brainbench.com/transcript.jsp?pid=304744


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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