Re: useradd/adduser
From: Peter Pentchev (roam@orbitel.bg)
Date: 05/02/01
- Next message: Peter Pentchev: "Re: useradd/adduser"
- Previous message: Fernando Schapachnik: "Re: useradd/adduser"
- In reply to: Lee Smallbone: "Re: useradd/adduser"
- Next in thread: Peter Pentchev: "Re: useradd/adduser"
- Reply: Peter Pentchev: "Re: useradd/adduser"
- Reply: Garrett Wollman: "Re: useradd/adduser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 2 May 2001 18:02:57 +0300 From: Peter Pentchev <roam@orbitel.bg> To: Lee Smallbone <lee@kechara.net>
On Wed, May 02, 2001 at 03:59:50PM +0100, Lee Smallbone wrote:
> I see what you mean about the synopsis...!
>
> From what I can see it isn't possible to supply the password to pw?
> I'm using md5 passwords, and can easily have the script in question encode
> the password prior to calling pw, so is it possible to use (in the verse of
> pw), something along the lines of:
>
> pw useradd -n test -c "Test User" -d /home2/test -m -s sh $md5encpass
>
> ?
You can't supply an *encrypted* pass; but then, you can't do this with
adduser, either. You *can* supply a cleartext password to pw(8), just
as Sheldon said, using the -h option:
echo unf | pw useradd testuser -h 0
..just tell it to read the password from fd 0 (stdin).
G'luck,
Peter
-- I am the meaning of this sentence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
- Next message: Peter Pentchev: "Re: useradd/adduser"
- Previous message: Fernando Schapachnik: "Re: useradd/adduser"
- In reply to: Lee Smallbone: "Re: useradd/adduser"
- Next in thread: Peter Pentchev: "Re: useradd/adduser"
- Reply: Peter Pentchev: "Re: useradd/adduser"
- Reply: Garrett Wollman: "Re: useradd/adduser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|