What to do about nologin(8)?

Ceri Davies ceri at submonkey.net
Wed Feb 25 02:00:38 PST 2004


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

-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040225/ad2b5cdb/attachment.bin


More information about the freebsd-current mailing list