LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Unexpected Behavior (passwd command) (http://www.linuxquestions.org/questions/linux-general-1/unexpected-behavior-passwd-command-118000/)

Penguin666 11-19-2003 07:13 PM

Unexpected Behavior (passwd command)
 
Mandrake 9.2

I have added a user called "tss"
I want to change the password for the user "tss"

As root, I type the command as follows:

[root@PENGUIN666 etc]# passwd tss
Changing password for user tss.


Thats as far as it goes... the cursor is just left blinking...
I can actually type and hit enter. The only way to get out is to kill it with CTRL-Z:

[root@PENGUIN666 etc]# passwd tss
Changing password for user tss.

d
d
d
d
d
d
d
d
d
dd
d
d

[2]+ Stopped passwd tss
[root@PENGUIN666 etc]#


Any ideas or thoughts?

Penguin666

trickykid 11-19-2003 07:57 PM

What happens if you login as tss and then issue the command passwd? Does it do the same thing?

Penguin666 11-19-2003 09:38 PM

Interesting...
I did not know the password to the user "tss" so i could not logon as tss.
So via the GUI, i used the Mandrake Linux Users Management Tool. To my surprise the users account was "LOCKED".

I unlocked the user, then (as root) ran the passwd command... worked as it should.

Thanks for the kick in the ass ;)

lnxconvrt 11-19-2003 11:34 PM

FYI
 
Quote:

I did not know the password to the user "tss" so i could not logon as tss.
If you have the root password you can be anyone. Just su to root first then su to whatever user you want with no need to enter their password.

Doing "su username" su's to that user, "su - username" su's to that user and picks up their normal environment.

Glad your problem is solved.


All times are GMT -5. The time now is 05:22 AM.