Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-07-2005, 12:41 PM   #1
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 670
Blog Entries: 7

Rep: Reputation: 31
changing a users pwd

hey Iam creating a php script to change a users password....thus I need a non interactive command to change a users password....

I tried: # passwd username
but it prompts me for the password
I want a command that does not prompt me ...something like useradd username
I know that there is a -p argument in useradd .... but I was told that I can only submit the encrypted password with that argument is that true ??
Old 11-07-2005, 12:44 PM   #2
Mad Scientist
Registered: May 2003
Posts: 167

Rep: Reputation: 30
No, you should be able to pass plain text passwords. I would user "usermod" if you are just changing the password of an already existing user.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing max users aquatambourine Linux - Newbie 4 10-02-2005 06:33 PM
reset pwd to root's current pwd? ataraktos2 Linux - General 10 04-26-2005 04:13 AM
Changing behavior of pwd with symlinks rose_bud4201 Linux - Software 2 02-17-2005 03:46 PM
Changing all the users settings squirellplaying Linux - Newbie 1 10-30-2004 06:46 AM
changing users name bmike1 Linux - Software 6 08-30-2003 03:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration