passwd(1openssl) OpenSSL passwd(1openssl)NAME
passwd - compute password hashes
SYNOPSIS
openssl passwd [-crypt] [-1] [-apr1] [-salt string] [-in file] [-stdin] [-noverify] [-quiet] [-table] {password}
DESCRIPTION
The passwd command computes the hash of a password typed at run-time or the hash of each password in a list. The password list is taken
from the named file for option -in file, from stdin for option -stdin, or from the command line, or from the terminal otherwise. The Unix
standard algorithm crypt and the MD5-based BSD password algorithm 1 and its Apache variant apr1 are available.
OPTIONS -crypt
Use the crypt algorithm (default).
-1 Use the MD5 based BSD password algorithm 1.
-apr1
Use the apr1 algorithm (Apache variant of the BSD algorithm).
-salt string
Use the specified salt. When reading a password from the terminal, this implies -noverify.
-in file
Read passwords from file.
-stdin
Read passwords from stdin.
-noverify
Don't verify when reading a password from the terminal.
-quiet
Don't output warnings when passwords given at the command line are truncated.
-table
In the output list, prepend the cleartext password and a TAB character to each password hash.
EXAMPLES
openssl passwd -crypt -salt xx password prints xxj31ZMTZzkVA.
openssl passwd -1 -salt xxxxxxxx password prints $1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a..
openssl passwd -apr1 -salt xxxxxxxx password prints $apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0.
OpenSSL-0.9.8 Oct 11 2005 passwd(1openssl)
Check Out this Related Man Page
PASSWD(1) OpenSSL PASSWD(1)NAME
passwd - compute password hashes
SYNOPSIS
openssl passwd [-crypt] [-1] [-apr1] [-salt string] [-in file] [-stdin] [-noverify] [-quiet] [-table] {password}
DESCRIPTION
The passwd command computes the hash of a password typed at run-time or the hash of each password in a list. The password list is taken
from the named file for option -in file, from stdin for option -stdin, or from the command line, or from the terminal otherwise. The Unix
standard algorithm crypt and the MD5-based BSD password algorithm 1 and its Apache variant apr1 are available.
OPTIONS -crypt
Use the crypt algorithm (default).
-1 Use the MD5 based BSD password algorithm 1.
-apr1
Use the apr1 algorithm (Apache variant of the BSD algorithm).
-salt string
Use the specified salt. When reading a password from the terminal, this implies -noverify.
-in file
Read passwords from file.
-stdin
Read passwords from stdin.
-noverify
Don't verify when reading a password from the terminal.
-quiet
Don't output warnings when passwords given at the command line are truncated.
-table
In the output list, prepend the cleartext password and a TAB character to each password hash.
EXAMPLES
openssl passwd -crypt -salt xx password prints xxj31ZMTZzkVA.
openssl passwd -1 -salt xxxxxxxx password prints $1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a..
openssl passwd -apr1 -salt xxxxxxxx password prints $apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0.
1.0.1e 2013-02-11 PASSWD(1)
Hi,
Besides of the command "passwd" on Solaris and HP-UX and IRIX that allow users to change their passwords on the system. Is there anyother way a user can change his/her own password. Do any of these systems have a GUI interface to allow the user doing so?
Thanks (3 Replies)
I have SunOs 5.8. I need to change password using a unix shell script. I have tried to pipe the passwords to the passwd command but does not work. Pls provide a script to change passwds of a list of users using a shell script.
( I have also tried crypt() but did not work)
The flow of the... (2 Replies)
Hi,
I'm trying to create a shell to change some user password with random string.
I've tried to use stdin redirection to supply the new password by a response file:
passwd theuser < respfile
but I continue to be prompted for supplying pwd via console keyboard.
Can you help me to... (2 Replies)
hi,
I have a baby.txt file with two type of message:
xxxxxxxx is missing
xxxxxxxxxxx is not missing
xxxx is missing
xxxxxxxx is not missing
xxxxxxxx is not missing
For the above, I need to read file and get all "xxxx is missing" and write into baby_missing.txt. If no message "xxxxx is... (12 Replies)
Hi
i want to search and replace different field on each files.
file 1
FIELD2=xxxxxxxxx
FIELD4=xxxxxxxx
FIELD3=xxxxxxx
FIELD1=20000
file 2
FIELD1=
FIELD2=
file 3
FIELD2=xxxxxxxxx (3 Replies)
Hey all,
How to reset the password to a given user id ??
I used passwd commands, but now for that user there are 2 passwords. i.e the old and new passwords.
as : passwd mqcfaostt
oldpassword : pass1
new password : pass2
Confirm new password : pass2
Now, su - mqcdaostt is working for... (4 Replies)
All,
I have a Solaris 9 system and I would like to create a script that would reset the password of a local user to something specific on a daily basis.
Someone suggested the following:
passwd --stdin username < passwd_file
However, this doesn't work on Solaris.
Does anyone know of... (3 Replies)
First off, sorry if this is in the wrong forum.
I have made a script that will always set the password back to a specified value when I log in as root, this is because for testing purposes I regularly change it as I'm logged in..but this isn't the point.
The thing that's bothering me is that... (3 Replies)
I would like to enforce the users to use 15 character passwords. I have edited the /etc/default/passwd and given PASSLENGTH=15. What i noticed is that when user changes the password next time, it will enforce the a 15 character password but during the next logon, it verifies only first 8... (5 Replies)
Hi All,
I have a requirment..
I need to pass a registry password to a command.. Actually when the command executed in the script, it will return some warnings first, then after it'll ask password like below,
$ cleartool rmtag -vob -all <vob_name>
Warnings: ------------------
Registry... (3 Replies)
hi, has anyone here tried to recycle old passwords by copying something out of the passwd file and paste them back into the same passwd file ?
can it work this way ?
some of our applications passwords are expiring but they cannot be change due to application concerns, so therefore we must... (7 Replies)
Hi,
Can we set password for linux in non-interactive mode.
I didn't find suitable option for this in man page.
If we wnter "passwd" command, it will tell "Enter password" and "Re-enter password". i wanted to run this step in a script, and i don't want to use "expect" so i am looking for a single... (8 Replies)
hi, all
I just started on new box where I have to diff passwd working perfectly on the very same account/user. I see that shadow was added recently (I'm not a root in there), I see 'x' in passwd. Not sure how it should work, should I change old passwd for one defined in shadow? Or it's fine to... (20 Replies)
I have been trying to enable password complexity variables on Solaris 10 by editing the /etc/default/passwd file but none of my changes are taking effect (I'm still able to set passwords that violate the rules I am trying to implement).
I've tried an O/S reboot after the changes but that had no... (6 Replies)