Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2003 09:58:00 -0500 (EST)
From:      Jaime <jaime@snowmoon.com>
To:        default013 <default013@hotmail.com>
Cc:        FreeBSD-Questions <FreeBSD-Questions@FreeBSD.org>
Subject:   Re: add user with shell account
Message-ID:  <20030224095451.P74573-100000@malkav.snowmoon.com>
In-Reply-To: <BAY2-DAV12dl908QKLa0000e907@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 24 Feb 2003, default013 wrote:
> I'm working on a script that will automate making shell accounts and I guess
> I'm a bit stumped on how one enters the encrypted password into the deal.
>
> If anyone knows any resources where I might find this kind of info or has
> some suggestions for me it would be very much appreciated.

	If you don't mind learning a new language, check out Expect.  Its
an extention to TCL that allows the language to script/automate command
line programs such as the adduser command.

	Alternately, look at man 8 pw and /usr/share/skel.  These should
get you started.  Once upon a time, I took the adduser script that came
with FreeBSD and was written in perl (in C now) and hacked it to do what I
wanted.  You could take that approach, too.

							Good luck,
							Jaime

--
"To affect the quality of the day, that is the highest of arts."
 - Henry David Thoreau, _Where_I_Live_



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030224095451.P74573-100000>