Setting Passwd of User from command line....
hi
i want to change user passwd from a single line(i.e no need to enter a passwd 2 times as with passwd command). So plese help me for this... |
Do you really want your password on the CLI in clear-text and in your history?
Code:
echo "Sup3R$3kre7" | passwd --stdin nirmit man passwd |
I don't know what the purpose is for your request, but I guess that it has to do with changing a lot user passwords at once. In such a case (depending on the amount of users) you might just as well create a shell script to tinker with the passwd and shadow files directly. Dangerous, but possible.
|
Quote:
|
Quote:
no after resetting the password i will erase all hisory and also from .bash_history and THANK YOU.it really works in RHEL 3.0 as i have it in my server. |
All times are GMT -5. The time now is 10:50 AM. |