06-17-2014
If you have to do this, which is sounds like is the case, then I suggest you maintain the list of password as hashed/encrypted passwords. That's not hard since you are presumably generating them in advance manually. Once you have that you can change them with "usermod". The "-p" flag will let you pass in a hashed password.
Exposing hashed password strings in the process table isn't ideal, but they aren't usable as is. If someone found them out they would still have to crack the password before they could be used.
Check "man usermod" for the gory details.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have more than 50 server unix's password need to change, usually I assign one password for all hosts, for easy remember, but I need to change password every two months..it's very tried to change password every 2 months, is there any unix script that can change password easily?
ie ' script... (4 Replies)
Discussion started by: zp523444
4 Replies
2. Shell Programming and Scripting
My shop has just ordained that all UNIX passwords expire after 45 days. We do NOT have a "single logon" facility, so I will need to logon to each of the servers (15+) I interact with and change my password by hand. I thought I could invoke passwd inside a ksh script as a Here document and... (12 Replies)
Discussion started by: kornshellmaven
12 Replies
3. Shell Programming and Scripting
hi,
Somebody have or known where i can find a perl small perl program to change the password.
The point: First it verify is the user exist, checking the old typed password and replace it with new. The passwords must be encoded.
Thanks, very much! (0 Replies)
Discussion started by: kad
0 Replies
4. Shell Programming and Scripting
Hi Friends.
I am new to scripting now i want to change the root password using the script with standard password.
which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
Discussion started by: kurva
2 Replies
5. UNIX for Dummies Questions & Answers
Hi guys,
I got these 3 servers: a, b and c which I ssh from a to b/c.
a:$ ssh userid@b
Password:
a:$ ssh userid@c
userid@c's password:
Notice that the password prompt is different (highlighted in bold) on both servers even though their SUN Solaris version the same, OpenSSH version... (0 Replies)
Discussion started by: DrivesMeCrazy
0 Replies
6. Shell Programming and Scripting
Hello Gurus
I have little challenge which I do not know how to address it. I have unix account on many servers (let's say over 25). These accounts expire every 60 days. Is there scripts that I can run from my "local computer" and pass a new password to it where it would change it for me on all... (7 Replies)
Discussion started by: nimo
7 Replies
7. HP-UX
Hi,
we have around 50 users and every month we need to change the password manually once its expire.
do we have any script to change the password automatically.
OS -HP-UX
Thanks in advance.. (6 Replies)
Discussion started by: periyasamycse
6 Replies
8. Shell Programming and Scripting
Hey Gurus,
I have this requirement to change the password for other servers remotely from one server. So, I installed public keys on all servers and wrote the following script to do the job. Something appears to be wrong with my loop, as it only changes one server and ignores the rest. I'm... (24 Replies)
Discussion started by: Hiroshi
24 Replies
9. Shell Programming and Scripting
Hi Folks,
I am trying to change the password for the user "sysservice"
Where my requirement is login to each server and exit from that and ssh to the next server.. I have enabled the password less auth for the user sysservice.
for i in `cat /home/sysservice/servers.txt`
do
ssh... (1 Reply)
Discussion started by: gsiva
1 Replies
10. Forum Support Area for Unregistered Users & Account Problems
I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login.
Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies
vipw(1M) vipw(1M)
NAME
vipw - edit the password file
SYNOPSIS
DESCRIPTION
edits the password file while setting the appropriate locks, and does any necessary processing after the password file is unlocked. If the
password file is already being edited, you will be told to try again later. The editor is used unless the environment variable indicates
an alternate editor.
performs a number of consistency checks on the password entry for and does not allow a password file with an incorrectly formatted root
entry to be installed. To help reduce the possibility of leaving the system in an unbootable state, root's entry is not considered prop-
erly formatted if it has a user ID that is not zero, or if it has a shell other than or
Please refer to passwd(4) and the manual for further details of password file format.
WARNINGS
An file that is not removed when a system crashes prevents further editing of the file using after the system is rebooted. is the standard
lock used by all commands which knowingly modify
Successful execution of is not sufficient for proper system operation. To help maintain consistency with other system databases, editing
of the password file with is generally discouraged. Please use or to edit
AUTHOR
was developed by the University of California, Berkeley.
FILES
SEE ALSO
chfn(1), chsh(1), passwd(1), sam(1M), useradd(1M), usermod(1M), userdel(1M), passwd(4).
vipw(1M)