[olug] password change one liner shell script
Mike Peterson
mpeterson at mail.charlesfurniture.com
Mon Sep 8 19:21:46 UTC 2003
I have used that type of script when I have many users to setup at one time.
It saves time and the fingers.
----- Original Message -----
From: "Derek & Lisa" <lug at robotz.com>
To: <olug at olug.org>
Sent: Monday, September 08, 2003 1:41 PM
Subject: Re: [olug] password change one liner shell script
> exactly what i was looking for Nick, thank you
>
>
>
> On Friday 05 September 2003 11:37 am, you wrote:
> > echo $passwordvariable | passwd --stdin username
> >
> > ^ That ought to do it. It does on my RH9 system anyway :)
> >
> > Nick Walter
> >
> > On Fri, 2003-09-05 at 11:40, Derek & Lisa wrote:
> > > I want to set a user password all in one line, not by interactive
prompt.
> > > (bash shell script)
> > >
> > > passwd username | sleep 1s && echo $passwordvariable | echo
> > > $passwordvariable
> > >
> > > Something like that, but that actually works and enters the password
> > > twice.
> > >
> > > any ideas?
> > >
> > > ty
> > > _______________________________________________
> > > OLUG mailing list
> > > OLUG at olug.org
> > > http://lists.olug.org/mailman/listinfo/olug
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>
More information about the OLUG
mailing list