[Solved] passwd command not working


 
Thread Tools Search this Thread
Operating Systems Solaris [Solved] passwd command not working
# 1  
Old 01-01-2012
Data [Solved] passwd command not working

Hi all,

I have got a problem,
i have Solaris 8 server, where on running the passwd command, it says permission denied. I have checked /bin/passwd, /etc/passwd, /etc/shadow all have permissions as like one working server.
It is happening for root user and all other users.
i have tried replacing the /bin/passwd from some other server but it didn't work even then.
Smilie
Thanks in advance
# 2  
Old 01-01-2012
What does this output:
Code:
grep passwd /etc/nsswitch.conf

# 3  
Old 01-01-2012
the output is
Code:
# grep passwd /etc/nsswitch.conf
passwd:     files
#

This seems to be fine, i believe...

---------- Post updated at 05:26 AM ---------- Previous update was at 03:30 AM ----------

This is the only difference i can see b/w a good and a bad server

Bad server
Code:
18 drwxr-xr-x   5 root     bin         9216 Dec 29 04:51 bin/

Good server
Code:
     drwxr-xr-x   4 root     bin         9216 Sep  6 17:58 bin

Can somebody please help?
# 4  
Old 01-02-2012
What is the long format ls output for the following files:
Code:
/bin/passwd
/etc/passwd
/etc/shadow

# 5  
Old 01-02-2012
what was changed immediately before 4:51 AM on Dec 29? was a new package or patch installed? when did the problem first start? if things were okay on Friday, when was the server rebooted last? if there were no changes that you folks initiated, have you looked at the disk drive for hardware issues? if disk drive is okay, look at the login logs for people who logged in outside of their normal work hours ...

you may need to look at possibly restoring from backups ...
# 6  
Old 01-03-2012
Thanks Just ice....i have got the problem resolved.
Code:
/etc/nsswitch.conf was all fine
/etc/passwd was all fine
/etc/shadow was all fine
/usr/bin/passwd was all fine
Problem was with the permissions of
/var/adm/utmpx file, its permissions had got changed..

Provided 664 to it and it all started working fine.....I hope it will help others.
# 7  
Old 01-04-2012
Thanks for letting us know what the solution was.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

[Solved] Find command is not working

Hello Friends, I have a problem about a little script, when i run the following two lines one by one on CLI then they work well: /usr/bin/mkdir `perl -e 'use POSIX qw(strftime); print strftime "%Y-%m-%d",localtime(time() - 30*24*60*60);'` find . -type f -name "fuseesb.log.*" -mtime 30... (5 Replies)
Discussion started by: EAGL€
5 Replies

2. Red Hat

[SOLVED] How the alias is working?

Iam facing some strange issue with alias. I have an alias file in which i have created lot of aliases as given below. export BUILD_HOME=/apps/psr/build export DB_HOME=/apps/psr/database export LOGS_HOME=/apps/psr/logs export BUILD_TEST=/apps/psr/build_dev/build_test export... (0 Replies)
Discussion started by: Vikram_Tanwar12
0 Replies

3. Linux

passwd command not working in single user mode

dear all in single user mode i want to change password in RHEL server 6.0 (Santiago) i tired using passwd command it is not able to change. how to change it. thanks in advance (2 Replies)
Discussion started by: nikhil kasar
2 Replies

4. HP-UX

[solved] HP-UX /etc/passwd file

Hi. i have the accessibility to cat the /et/passwd file in this file we see the paassword field but the password is in encrypted form So, it can be possible to get the password encrypted string to convert it into human readable string via some md5 encryption code mechanism etc.. ... (6 Replies)
Discussion started by: Rajesh1091
6 Replies

5. Red Hat

Sudo to execute script without passwd[solved]

Hi Hope someone can sched some light i'm trying to execute a script via sudo but i don't want to be prompted for a password when i run the script using sudo my sudo entry does work in that the script gets executed but i'm having to give a password, my current entry is given below user1 ... (0 Replies)
Discussion started by: duckeggs01
0 Replies

6. Solaris

[SOLVED] Backspace not working!!!!!

Hi friends, Hope u r doing well. It is a very strange problem that I've never faced when I used linux or freebsd. When a type a command in Solaris 10, and if I make a mistake, the backspace doesn't work, when I press the backspace key three times forexample, this is what I get, ^H ^H ^H. The same... (2 Replies)
Discussion started by: gabam
2 Replies

7. Red Hat

how passwd cmd is working

how unix users able to change their password even if they have only read permissions and how backend process will be happening can u explain me which are files need to involved in this process (3 Replies)
Discussion started by: ponmuthu
3 Replies

8. UNIX for Dummies Questions & Answers

Passwd command not working

on Runnning passwd command on HPUX 11.23 I am getting pam_chauthtok: Shared object load failure. Pls help ... (1 Reply)
Discussion started by: ultimatix
1 Replies

9. UNIX for Dummies Questions & Answers

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... (5 Replies)
Discussion started by: rahulrathod
5 Replies

10. Shell Programming and Scripting

Why passwd isnt working in shell scripts?

I had to write a script to change my login password, and the script wasnt working fine. When I searched through the previous postings in this forum, I got the solution (using 'expect' tool). But I would like to know why passwd command isnt working in scripts? (1 Reply)
Discussion started by: Deepa
1 Replies
Login or Register to Ask a Question