12-02-2010
If it doesn't matter if it is set to a known password you could overwrite the second field of the shadow file with a known hash.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I need to know if this command
echo NEWPASSWORD | passwd --stdin USERNAME
that works fine on Red Hat Linux, is also available on other Unix/Linux machines (AIX, FreeBSD, OpenBSD, SunOS, Mandrake, Debian, Gentoo, Lindows, Slackware, Xandros, HP-UX, IRIX, SCO, MacOS, BSDi ...).
... (2 Replies)
Discussion started by: margi973
2 Replies
2. UNIX for Dummies Questions & Answers
If we have it so users accounts need a new password after 90 days is there a way to also say that after 90 days they need to use a new password and not let them use the same one twice? (2 Replies)
Discussion started by: LordJezo
2 Replies
3. Solaris
I have installed Solaris 10 x86 in VMware 5.5.I logged in as root user and trying to create new user and also reset the password for existing user, i am getting "Permission Denied Error". I checked the /etc/shadow file, looks fine permission is 400. Earlier i was able to do it but suddenly it... (2 Replies)
Discussion started by: khagendra
2 Replies
4. HP-UX
Are single quotes allowed in a UNIX password? With my understanding that UNIX interprets single quotes in pairs and has a distinct meaning to the shell that it removes special meaning of all enclosed characters. I wanted to confirm that a single quote within a password would fail for this reason. (4 Replies)
Discussion started by: roni13
4 Replies
5. AIX
Hi,
How to check whether the single user mode is password protected or not?By default, while entering in to single user mode, Os is not asking for login credentails. How can i enable it. Kindly help
Rgds,
kmvinay (2 Replies)
Discussion started by: kmvinay
2 Replies
6. Shell Programming and Scripting
Hello All,
I'm new to unix and i need the below favour from you.
I have list of 50 unix server. I need to login to all the server one by one and with the same user and password. I will declare the user name and password globally in the script.
for example :
servername- hyperV
user name... (4 Replies)
Discussion started by: Hari A
4 Replies
7. AIX
Hi experts, i got a 4-port Adapter card on VIOS and would like to configure 4SEA for 4 difference segment IP client's LPAR use, first SEA succeed to be configured on ent0 but once second SEA configured, first SEA fail to be connected. Any issues i need to be concerned in order to configure 4 SEA on... (8 Replies)
Discussion started by: polar
8 Replies
8. Shell Programming and Scripting
Hi,
I am unable to set the password remotely. I am using the script as below:
ep=`echo "$p" | /usr/lbin/makekey`
ssh -t $i "/usr/local/bin/sudo useradd -c "$user_c" -m -d /home/$user_id -s /bin/ksh $user_id; /usr/local/bin/sudo /usr/sam/lbin/usermod.sam -F -p $ep $user_id"
The... (0 Replies)
Discussion started by: Kits
0 Replies
9. Solaris
I have a Solaris-10 non global zone, on which I am not able to reset password, while counts are matching in /etc/passwd and /etc/shadow. I tried searching its solution in various forums, but nothing is working
# id -a oemagent
uid=56605(oemagent) gid=56595(tess) groups=56595(tess)
# passwd -s... (2 Replies)
Discussion started by: solaris_1977
2 Replies
10. Shell Programming and Scripting
Using useradd abc --password password (5 Replies)
Discussion started by: Jagruti Rml
5 Replies
LEARN ABOUT DEBIAN
lpasswd
lpasswd(8) System Manager's Manual lpasswd(8)
NAME
lpasswd - Change group or user password
SYNOPSIS
lpasswd [OPTION]... [name]
DESCRIPTION
Changes password of user or group name.
If the name argument is not provided, username of the invoking user is used; the name argument is ignored if lpasswd is run set-uid to a
different user.
Entering an empty password (by pressing Enter) aborts the password setting operation.
OPTIONS
-F, --plainpassword-fd=fd
Read password from file descriptor fd, terminated by end of file, '
' or '
'.
-f, --password-fd=fd
Read password hash from file descriptor fd, terminated by end of file, '
' or '
'.
-g, --group
Change password of group name. By default the password of user name is changed.
-i, --interactive
Ask all questions when connecting to the user database, even if default answers are set up in libuser configuration.
-P, --plainpassword=password
Set the password to password. Note that the password can be viewed while running lpasswd using tools such as ps(1).
-p, --password=encrypted
Set the password to the password represented by the hash encrypted. Note that the hash can be viewed while running lpasswd using
tools such as ps(1).
EXIT STATUS
The exit status is 0 on success, nonzero on error.
libuser Jan 12 2005 lpasswd(8)