[Pkg-shadow-devel] Manpage Review (for Tomasz)

Nicolas François nicolas.francois at centraliens.net
Sat Jan 21 21:35:15 UTC 2006


On Sat, Jan 21, 2006 at 05:53:17PM +0100, bubulle at debian.org wrote:
> Quoting Christian Perrier (bubulle at debian.org):
> 
> > I think that this means that en empty argument passed to "-p" will
> > disable the account....
> 
> Well, not exactly...
> 
> root at mykerinos:~# userdel -r krabs
> root at mykerinos:~# useradd -p "" krabs
> root at mykerinos:~# grep krabs /etc/shadow
> krabs::13169:0:99999:7:::
> 
> 
> A disabled account should be like this:
> 
> root at mykerinos:~# grep krabs /etc/shadow
> krabs:*:13169:0:99999:7:::

IMO, "the default" means "when no -p options are specified".

For example:
# useradd krabs
# grep krabs /etc/shadow
krabs:!:13169:0:99999:7:::

In this case, the account is disabled.

-- 
Nekral



More information about the Pkg-shadow-devel mailing list