Date: Fri, 8 Mar 2002 18:29:54 -0500 From: Joel Dinel <dinjo@touchtunes.com> To: Steven Lake <raiden@shell.core.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Selectively forbidding login Message-ID: <20020308182954.A49649@sunder.touchtunes.com> In-Reply-To: <Pine.GSO.4.44L0.0203081657180.5259-100000@shell.core.com>; from raiden@shell.core.com on Fri, Mar 08, 2002 at 05:03:47PM -0600 References: <Pine.GSO.4.44L0.0203081657180.5259-100000@shell.core.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 08, 2002 at 05:03:47PM -0600, Steven Lake wrote: > All I want it to do is prevent a user from logging into the server via > anything but FTP. I want them to have FTP access and when they login > they land in their home directory with the path showing in the FTP > program as "/", but nothing else. How would I best go about this? 1. Add the line '/sbin/nologin' to /etc/shells 2. Make '/sbin/nologin' the desired user's shell in /etc/passwd (use 'vipw' to edit the file). 3. Add the desired user's name to /etc/ftpchroot (you might need to create this file) 4. Enjoy. -- Joel Dinel System Administrator TouchTunes Digital Jukebox, Inc. GnuPG key : http://darkhost.mine.nu:81/~joel/misc/mykey.asc 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?20020308182954.A49649>