Re: \'useradd -p\' problems.

From: Gordon Messmer (yinyang@eburg.com)
Date: 08/28/01


Date: Tue, 28 Aug 2001 13:01:25 -0700 (PDT)
From: Gordon Messmer <yinyang@eburg.com>
To: "joetesta@hushmail.com" <joetesta@hushmail.com>
Subject: Re: \'useradd -p\' problems.
Message-ID: <Pine.LNX.4.33.0108281259400.7806-100000@localhost>

On Tue, 28 Aug 2001, joetesta@hushmail.com wrote:

> On my Trustix 1.2 box, I noticed that creating a user with 'useradd' and
> the '-p' option (which gives the new user a default password) does not hash
> the password in /etc/shadow:

Of course not... Read the man page for useradd:

       -p passwd
              The encrypted password, as returned by crypt(3) or
              an MD5 password generator. The default is to dis­
              able the account.

That option is intended for use in scripts where the hash has already been
generated.

-- 
If I had a dollar for every brain that you don't have,
	I'd have one dollar. - Squidward to SpongeBob



Relevant Pages

  • useradd -p problems.
    ... I noticed that creating a user with 'useradd' and ... Trustix Secure Linux release 1.2 ... I can't think of a practical environment where ...
    (Vuln-Dev)
  • Re: useradd -p problems.
    ... > On my Trustix 1.2 box, I noticed that creating a user with 'useradd' and ... the query, he's wondering why it's not going directly into shadow, ...
    (Vuln-Dev)
  • Re: useradd -p problems.
    ... > On my Trustix 1.2 box, I noticed that creating a user with 'useradd' and ... did you happen to 'man useradd' before posting this? ... Thats because its not a bug. ...
    (Vuln-Dev)