Date: Wed, 25 Feb 2004 10:00:05 +0000 From: Ceri Davies <ceri@submonkey.net> To: kientzle@acm.org Cc: Lanny Baron <lnb@FreeBSDsystems.COM> Subject: Re: What to do about nologin(8)? Message-ID: <20040225100005.GV45593@submonkey.net> In-Reply-To: <403BEFFB.3010702@kientzle.com> References: <6.0.1.1.1.20040223171828.03de8b30@imap.sfu.ca> <20040224223659.GB69570@VARK.homeunix.com> <6.0.1.1.1.20040224225502.03dcfb10@imap.sfu.ca> <403BE4BC.9070009@kientzle.com> <403BE803.40606@FreeBSDsystems.COM> <403BEFFB.3010702@kientzle.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Tue, Feb 24, 2004 at 04:44:43PM -0800, Tim Kientzle wrote:
> Lanny Baron wrote:
> >Hi,
> >What I have done in the past for preventing logins via telnet/ssh is to
> >make a script called ftponly and put it in /usr/local/bin and in
> >/etc/shells put a line as /usr/local/bin/ftponly
> >
> >The little script for /usr/local/bin/ftponly is:
> >
> >#!/bin/sh -p
> >echo 'This account is currently available only for FTP access.'
> >exit 1
> >
> >Of course when you run adduser or pw useradd, you will choose
> >/usr/local/bin/ftponly as their shell.
>
> I'm trying to better understand how people are
> really using these facilities, so I have a couple
> of questions for you:
>
> 1) Why did you put it in /etc/shells?
What am I missing here? ftpd(8) says:
4. The user must have a standard shell returned by
getusershell(3).
Ceri
--
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAPHIlocfcwTS3JF8RAl8SAJ92MwvIuD/x4oQq7P76jbQezAtFDQCcCXcT
fVDQCHkvWJfWAuiKkRxePAw=
=coCD
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040225100005.GV45593>
