![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| invoking script from /etc/passwd | seeker333 | Shell Programming and Scripting | 3 | 04-25-2008 11:53 AM |
| setting passwd in script | LisaS | UNIX for Advanced & Expert Users | 2 | 03-31-2005 08:27 AM |
| passwd -l script | antalexi | Shell Programming and Scripting | 3 | 02-23-2005 01:07 PM |
| Why passwd isnt working in shell scripts? | Deepa | Shell Programming and Scripting | 1 | 01-31-2003 10:46 AM |
| How to "su" along with passwd within a shell script? | unique | UNIX for Advanced & Expert Users | 2 | 09-19-2001 08:09 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I want to use it in a script without my interaction. I want to provide new password in a script a than run passwd to change user password.
Problem of using passwd in shell script is that passwd requires user interaction to change password and script stops. My question was is there a way to use passwd without interaction or is there other way to change password using shell script |
|
||||
|
From my man page on passwd... . Yours might not accept input from a script, depending on the system.
Code:
PASSWD(1) User utilities PASSWD(1)
NAME
passwd - update a user’s authentication tokens(s)
...
--stdin
This option is used to indicate that passwd should read the new password
from standard input, which can be a pipe.
|
|
||||
|
Quote:
nathan - the "--stdin" option is not universial. |
| Sponsored Links | ||
|
|