LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-19-2003, 07:13 PM   #1
Penguin666
LQ Newbie
 
Registered: Nov 2003
Location: Montreal Canada
Distribution: Mandrake 9.2
Posts: 17

Rep: Reputation: 0
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
 
Old 11-19-2003, 07:57 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
What happens if you login as tss and then issue the command passwd? Does it do the same thing?
 
Old 11-19-2003, 09:38 PM   #3
Penguin666
LQ Newbie
 
Registered: Nov 2003
Location: Montreal Canada
Distribution: Mandrake 9.2
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 11-19-2003, 11:34 PM   #4
lnxconvrt
Member
 
Registered: Mar 2002
Location: Houston
Distribution: FC3, Manrake 10.x, various others at times
Posts: 113

Rep: Reputation: 18
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.
 
  


Reply



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
The passwd command is usually set suid root. this is because, Simon Adebisi Linux - Software 1 06-28-2005 08:10 AM
passwd command not working donovana Linux - General 3 03-09-2005 01:45 PM
Unexpected behaviour with the find command dazdaz Linux - General 3 12-15-2004 08:50 PM
ls command behavior day4night Linux - Newbie 7 01-25-2004 12:57 AM
cp command problem..... unexpected result hamster Linux - General 2 04-10-2003 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:18 PM.

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