Thanks, that worked great! Lucian
-- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro ----- Original Message ----- > From: "Sébastien Marie" <semarie-open...@latrappe.fr> > To: "Nux!" <n...@li.nux.ro> > Cc: misc@openbsd.org > Sent: Thursday, 9 October, 2014 18:48:54 > Subject: Re: Changing root password from stdin value > On Thu, Oct 09, 2014 at 06:22:05PM +0100, Nux! wrote: >> Hello, >> >> I'm trying to get some scripts working which would take a password from stdin >> and set it for root. >> In Linux "passwd --stdin" is used, in FreeBSD "pw mod user root -h 0". How >> would >> I do this in OpenBSD? >> >> Thanks, >> Lucian >> > > Hi, > > You could use encrypt(1) + usermod(1). > > encrypt will encrypt passwords from the command line or standard input. > usermod will accept an already-encrypted password. > > -- > Sébastien Marie