Date: Sat, 9 Mar 2002 19:27:52 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Steve Tremblett <sjt@cisco.com> Cc: Steven Lake <raiden@shell.core.com>, freebsd-questions@freebsd.org Subject: Re: Selectively forbidding login Message-ID: <20020309172752.GI15318@hades.hell.gr> In-Reply-To: <20020308181812.A8403@sjt-u10.cisco.com> References: <Pine.GSO.4.44L0.0203081657180.5259-100000@shell.core.com> <20020308181812.A8403@sjt-u10.cisco.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-03-08 18:18, Steve Tremblett wrote: > I believe a user will be allowed FTP login if their shell is in > /etc/shells. I'm not %100 sure on what nologin does (not on a FreeBSD > box right now), but I'm guessing that if it is a shell that is made up > of something like "int main() { return 0; }" it should be safe to put > in /etc/shells. It's very easy to find out: hades:~$ file /sbin/nologin /sbin/nologin: Bourne shell script text executable hades:~$ grep -v '^#' /sbin/nologin echo 'This account is currently not available.' exit 1 But even if it wasn't a shell script, you can read the source at /usr/src/sbin/nologin. The wonders of Open Source :))) Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ 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?20020309172752.GI15318>