View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-09-2005, 01:16 PM   #1
LQ Newbie
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
passwd command not working

When logged in as root and type: passwd don.
I Get a response: Changing password for user don.
But then nothing, no prompt or anything, I can just type until I CTRL-C out ?

I may have previously mucked it up as I inadvertently ran chpasswd -u don(thinking it was the command change password).

Any idea how to get back or what im doning wrong?

Old 03-09-2005, 01:19 PM   #2
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
what happens if you run 'cat /etc/passwd'?

Does the user account work?

can you su to the account? 'su - don'

Sounds like you might have screwed up /etc/passwd somehow.
Old 03-09-2005, 01:30 PM   #3
LQ Newbie
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0
If i run 'cat /etc/passwd'

I can see the file, with all users and for don the entry is:

I can su don ok. And I can use all my user accounts, but cannot seem to run passwd for any of them. Just get "Changing password for user don" and then nothing?
Old 03-09-2005, 01:45 PM   #4
LQ Newbie
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Closed all my ssh sessions and logged back in. It now works! Must have been my session screw up.

Thanks anyway



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Can't connect to DB when passing passwd on command line dimsh Linux - Software 2 11-08-2005 02:38 AM
The passwd command is usually set suid root. this is because, Simon Adebisi Linux - Software 1 06-28-2005 08:10 AM
passwd command is set in suid root. why??? Simon Adebisi Linux - Software 2 06-27-2005 10:02 PM
getent passwd and wibinfo -u not working bahadur Linux - Networking 0 06-14-2004 12:20 AM
Unexpected Behavior (passwd command) Penguin666 Linux - General 3 11-19-2003 11:34 PM

All times are GMT -5. The time now is 07:22 PM.

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