Computing.Net > Forums > Unix > Password change from command line

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Password change from command line

Reply to Message Icon

Name: Yogesh
Date: March 22, 2001 at 19:14:17 Pacific
Comment:

Hello All

I have requirement to change the password of unix users from commandline. Since passwd command does not support commandline. Anyone please help me out.
Thanks a lot in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: ciwonk
Date: March 26, 2001 at 22:21:18 Pacific
Reply:

what happened to:
passwd userid

root has the power to do this for other users. If it's not working check the permissions. The setuid & setgid bits should be set on the passwd command to allow users to change their own passwords.

Ciwonk >:}


0

Response Number 2
Name: evilghost
Date: September 17, 2001 at 09:06:13 Pacific
Reply:

I found that using the 'usermod -p ' command I was able to pass an MD5 encrypted string as the password. I had similar problems using the 'passwd' command and sending input from something other than stdin. Note that the password cannot be plain-text and must be pre-encrypted.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Spare users buy Unix, need help



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Password change from command line

Sending an attachment from the command line www.computing.net/answers/unix/sending-an-attachment-from-the-command-line/586.html

Unix Mail from command line www.computing.net/answers/unix/unix-mail-from-command-line/4302.html

Command Line V's GUI www.computing.net/answers/unix/command-line-vs-gui/622.html