[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] how to create user with no password
- Subject: [ale] how to create user with no password
- From: kaboom at gatech.edu (Chris Ricker)
- Date: Fri Feb 27 10:59:36 2004
- In-reply-to: <1077894472.25678.11.camel@pip>
- References: <[email protected]> <[email protected]> <[email protected]> <1077894472.25678.11.camel@pip>
On Fri, 27 Feb 2004, Danny Cox wrote:
> James,
>
> On Thu, 2004-02-26 at 11:27, James P. Kinney III wrote:
> > And while your editing the /etc/passwd file, change the line that reads:
> > /bin/bash
> > to:
> > /bin/false
>
> Actually, this is dangerous. It starts a shell, which begins to parse
> /bin/false and if you can catch it between the time it starts, and when
> it exits with an interrupt, the shell will happily give you a prompt!
Actually, false on most Linuxes is a binary that login just execs. On other
Unixes its often a shell script, though
A better choice instead of false, on the Linuxes that provide it, is
nologin. That's usually available on BSDs as well....
later,
chris