Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2013 22:19:53 -0400
From:      "Sam Fourman Jr." <sfourman@gmail.com>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        FreeBSD Ports ML <freebsd-ports@freebsd.org>
Subject:   Re: setting the password of a automatically created account
Message-ID:  <CAOFF%2BZ2x9W4n1KKT0M6UaRME1xHxrVOU1g6MKZMGt9B=S5brTg@mail.gmail.com>
In-Reply-To: <CAGBxaXnyVyAMcGnbGTHatcgZe8Lc-H4=OenEF0HvPEO4ajgmYA@mail.gmail.com>
References:  <CAGBxaXnyVyAMcGnbGTHatcgZe8Lc-H4=OenEF0HvPEO4ajgmYA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 5, 2013 at 9:52 PM, Aryeh Friedman <aryeh.friedman@gmail.com>wrote:

> I have a port that needs to create a a user of a given name and a given
> default password... I found in the porters guide how to make the account
> but not set the password
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
>

 this isn't the official way I'm sure, but a dirty hack could be:
echo password123 | pw usermod mynewuser -h 0 2>&1

-- 

Sam Fourman Jr.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOFF%2BZ2x9W4n1KKT0M6UaRME1xHxrVOU1g6MKZMGt9B=S5brTg>