Date: Sat, 23 May 1998 10:10:31 -0700 From: Mike Smith <mike@smith.net.au> To: Philippe Regnauld <regnauld@deepo.prosa.dk> Cc: Mike Smith <mike@smith.net.au>, freebsd-security@FreeBSD.ORG Subject: Re: SKey and locked account Message-ID: <199805231710.KAA01275@antipodes.cdrom.com> In-Reply-To: Your message of "Fri, 22 May 1998 10:12:15 %2B0200." <19980522101215.41390@deepo.prosa.dk>
index | next in thread | previous in thread | raw e-mail
> Mike Smith writes:
> > > I'm currently experimenting with 2.2.6, FWTK and skey.
> > >
> > > 1) First thing I noticed is that it's possible for someone to log
> > > into the system, even if the account is disabled ('*' in the
> > > passwd field), when S/Key is enabled for that user.
> > >
> > > Surprise to me.
> >
> > "*" does not disable an account - it is an invalid crypted string which
> > will fail to match any crypted plaintext password, as used by login,
> > the r* commands and ftp (when FTP is not using s/key).
>
> Ok -- just referrring to the man page:
>
> The password field is the encrypted form of the password. If the
> password field is empty, no password will be required to gain access to
> the machine. This is almost invariably a mistake. Because these files
> contain the encrypted user passwords, they should not be readable by any-
> one without appropriate privileges. Administrative accounts have a pass-
> word field containing an asterisk `*' which disallows normal logins.
>
> ... it doesn't mention the fact that they _also_ have an invalid
> shell.
No, they don't. Administrative accounts disallow normal logins.
Having an invalid shell would prevent non-normal logins.
It would (perhaps) be worthwhile adding some verbiage to the
description of the shell field to make it clearer that setting it to
refer to /sbin/nologin is the preferred technique for preventing a user
having any access to the system. The current text assumes that the
reader already possesses this knowledge.
Care to phrase something up and post a PR with it?
--
\\ Sometimes you're ahead, \\ Mike Smith
\\ sometimes you're behind. \\ mike@smith.net.au
\\ The race is long, and in the \\ msmith@freebsd.org
\\ end it's only with yourself. \\ msmith@cdrom.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe security" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805231710.KAA01275>
