| Next: problem in Sendmail 8.13.6 |
| Author |
Message |
Angel Tsankov External

Since: May 04, 2006 Posts: 66
|
Posted: Thu May 04, 2006 11:47 am Post subject: redirectin input for passwd? Archived from groups: comp>os>linux>misc (more info?) |
|
|
How can I set/change the password for some user noninteractively, e.g. by reading it from a file in plain text? |
|
| Back to top |
|
 |
Michael Heiming External

Since: Apr 04, 2004 Posts: 3526
|
Posted: Thu May 04, 2006 11:48 am Post subject: Re: redirectin input for passwd? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
In comp.os.linux.misc Angel Tsankov :
> How can I set/change the password for some user
> noninteractively, e.g. by reading it from a file in plain text?
man chpasswd
Good luck
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry RemoveThis @urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 86: Runt packets |
|
| Back to top |
|
 |
Bicho[DBZ] External

Since: May 04, 2006 Posts: 1
|
Posted: Thu May 04, 2006 12:16 pm Post subject: Re: redirectin input for passwd? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
well, also you can do:
echo "password" | passwd --stdin someuser
should work, also you can do some scripting to do more than one.
Enjoy
Bicho[DBZ] |
|
| Back to top |
|
 |
Angel Tsankov External

Since: May 04, 2006 Posts: 66
|
Posted: Thu May 04, 2006 12:49 pm Post subject: Re: redirectin input for passwd? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
>> How can I set/change the password for some user
>> noninteractively, e.g. by reading it from a file in plain text?
>
> man chpasswd
I could not figure out how to change the password of a user that is not the currently logged in one with chpasswd. |
|
| Back to top |
|
 |
Michael Heiming External

Since: Apr 04, 2004 Posts: 3526
|
Posted: Thu May 04, 2006 12:49 pm Post subject: Re: redirectin input for passwd? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
In comp.os.linux.misc Angel Tsankov :
>>> How can I set/change the password for some user
>>> noninteractively, e.g. by reading it from a file in plain text?
>>
>> man chpasswd
> I could not figure out how to change the password of a user
> that is not the currently logged in one with chpasswd.
It shouldn't matter if the user is logged in or not. Anyway,
please provide *data*. What you did, exact commands and what
error message (preferable via cut&paste) you get.
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry.DeleteThis@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 294: PCMCIA slave driver |
|
| Back to top |
|
 |
Angel Tsankov External

Since: May 04, 2006 Posts: 66
|
Posted: Thu May 04, 2006 10:22 pm Post subject: Re: redirectin input for passwd? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
> well, also you can do:
>
> echo "password" | passwd --stdin someuser
>
> should work, also you can do some scripting to do more than one.
I get "invalid option -- -" |
|
| Back to top |
|
 |
|