Results 1 to 4 of 4
Hi
passwd command is not working. When passwd command is issued after logging from root user it says :
Code:
-bash: passwd: command not found
and after changing directory to ...
- 10-27-2010 #1Just Joined!
- Join Date
- Oct 2010
- Posts
- 1
passwd command is not working
Hi
passwd command is not working. When passwd command is issued after logging from root user it says :
and after changing directory to /etc , passwd command results:Code:-bash: passwd: command not found
.............................Code:./passwd: line 1: root:x:0:0:root:/root:/bin/bash: No such file or directory ./passwd: line 2: bin:x:1:1:bin:/bin:/sbin/nologin: No such file or directory ./passwd: line 3: daemon:x:2:2:daemon:/sbin:/sbin/nologin: No such file or directory ./passwd: line 4: adm:x:3:4:adm:/var/adm:/sbin/nologin: No such file or directory ./passwd: line 5: lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin: No such file or directory ./passwd: line 6: sync:x:5:0:sync:/sbin:/bin/sync: No such file or directory ./passwd: line 7: shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown: No such file or directory ./passwd: line 8: halt:x:7:0:halt:/sbin:/sbin/halt: No such file or directory ./passwd: line 9: mail:x:8:12:mail:/var/spool/mail:/sbin/nologin: No such file or directory ./passwd: line 10: news:x:9:13:news:/etc/news:: No such file or directory ./passwd: line 11: uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin: No such file or directory ./passwd: line 12: operator:x:11:0:operator:/root:/sbin/nologin: No such file or directory ./passwd: line 13: games:x:12:100:games:/usr/games:/sbin/nologin: No such file or directory ./passwd: line 14: gopher:x:13:30:gopher:/var/gopher:/sbin/nologin: No such file or directory ./passwd: line 15: ftp:x:14:50:FTP: command not found
.............................
.............................
Prompt help is highly appreciated
Regards
- 10-27-2010 #2Just Joined!
- Join Date
- Oct 2010
- Posts
- 1
Passwd command is not working
Hi
Passwd command works for root user.
local user wont be having right to change other user password details. And wont be having access to edit /etc/passwd file.
Thanks
Murali
- 10-27-2010 #3
When you ran from the etc directory it tried to execute the passwd file rather than the command
Either way the command should work on regular user
Please post output of echo $PATH
- 10-30-2010 #4Just Joined!
- Join Date
- Jul 2010
- Posts
- 11
-=[ slimg00dy@slimg00dy:/media/500GB/UrbanTerror ]=- $ which passwd
/usr/bin/passwd
So type in /usr/bin/passwd in your terminal and see if it works, if it does, then passwd isn't in your $PATH variable.


Reply With Quote