The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
passwd command search shahnazurs SUN Solaris 5 06-19-2007 04:59 AM
how to get passwd command again if it is deleted by usin rm command venkata.ganesh Linux 4 06-11-2007 01:18 PM
Passwd in the line command sandba Shell Programming and Scripting 1 08-22-2006 08:33 AM
How do I parse passwords into passwd command. gilberteu Shell Programming and Scripting 0 03-28-2006 08:26 AM
Why passwd isnt working in shell scripts? Deepa Shell Programming and Scripting 1 01-31-2003 06:46 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-09-2004
Registered User
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 151
Stumble this Post!
Question passwd command not working

Hello All,
I am working on Sco unix version 5.0.5.
The passwd command has somehow got corrupted and is only displaying the contents of the /etc/passwd file instead of changing the password.
I wanted to know if there is any other command through which you can change the password of a user from the command line.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-09-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Stumble this Post!
What is the output of the following command?

type passwd

I'd say either you are executing a different (perhaps bogus/malicious) passwd command (somewhere else in your PATH), or you've set an alias up of some kind.

Cheers
ZB
Reply With Quote
  #3 (permalink)  
Old 12-09-2004
Registered User
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 151
Stumble this Post!
I tried checking it.
There is no alias set and also type passwd gives the correct path
/bin/passwd.

Is there any other utility to change the password of a user.
Reply With Quote
  #4 (permalink)  
Old 12-09-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,444
Stumble this Post!
What does the command "ls -l /bin/passwd /bin/ls" show? I seem to remember that sco had just a bunch of symlinks in /bin. If that's right, someone may have simply replaced the passwd symlink.
Reply With Quote
  #5 (permalink)  
Old 12-09-2004
Registered User
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 151
Stumble this Post!
Ya u were right.

It gives the output -->

lrwxrwxrwx 1 root root 30 Oct 18 19:01 /bin/ls -> /opt/K/SCO/Unix
/5.0.5Eb/bin/ls
lrwxrwxrwx 1 root root 34 Oct 18 19:01 /bin/passwd -> /opt/K/SCO/
Unix/5.0.5Eb/bin/passwd

Now how do i those restore those symlinks???
Or is there any other way out??
Reply With Quote
  #6 (permalink)  
Old 12-09-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,444
Stumble this Post!
It looks like those symlinks are right. Does the command "/bin/passwd" work? If not I would cd to
/opt/K/SCO/Unix/5.0.5Eb/bin/ and look around. Like what does "ls -l *passwd*" report? If your passwd command has been corrupted, I would guess that you've been hacked. You might need to re-install the os to be sure you're ok. But if you have a second sco box, maybe you could try copying the executable.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0