Unexpected failure. Password file/table unchanged


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unexpected failure. Password file/table unchanged
# 1  
Old 09-24-2008
Unexpected failure. Password file/table unchanged

Hi,

I'm trying to change individual passwords in one of our solaris box but I'm getting error Unexpected failure. Password file/table unchanged when I use passwd. I can only change passwords using root. Please help me on how I can change the passwords without using root. We need to provide individual user account for each member of our group and they need to change their passwords. Thanks in advance


$ passwd
passwd: Changing password for lamine
Enter existing login password:
Unexpected failure. Password file/table unchanged.
$
# 2  
Old 09-24-2008
# 3  
Old 09-24-2008
Run the pwck command and fix anything it finds. I'll bet you have a blank line.
# 4  
Old 09-24-2008
Network Unexpected failure. Password file/table unchanged

Hi Zaxxon,

I tried it yesterday but it didn't solve it, also the passwd in nsswitch.conf is not compat.

egrep "^passwd" /etc/nsswitch.conf
passwd: files

Hi Perderabo,

I already fixed the errors in pwck and same result when I change password.

$ passwd
passwd: Changing password for lamine
Enter existing login password:
Unexpected failure. Password file/table unchanged.


Thanks guys for helping me! I still don't know what will I do about this Smilie
# 5  
Old 09-24-2008
Check the permission on /usr/bin/passwd. And check /etc/pam.conf. I am now thinking a pam problem.
# 6  
Old 09-24-2008
Unexpected failure. Password file/table unchanged

Hi Perderabo,

Permission of passwd seems ok. Please see details below. For the pam.conf, what do I need to check? Thanks!


-r-xr-xr-x 1 root other 23500 Jul 19 2007 passwd


pam.conf passwd line:

passwd auth required pam_passwd_auth.so.1
# 7  
Old 09-24-2008
Quote:
Originally Posted by ayhanne
Permission of passwd seems ok. Please see details below.
-r-xr-xr-x 1 root other 23500 Jul 19 2007 passwd
Smilie

Well I see a problem or two. That is guaranteed to fail unless you're root. You indicate that you have multiple Solaris boxes. Compare that to the boxes that work. For Solaris 8 it's:
$ ls -l /usr/bin/passwd
-r-sr-sr-x 1 root sys 24400 Dec 22 2006 /usr/bin/passwd
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed working on command line but file unchanged when execute with Shell script

I have a simple task to replace unix line feed end of line characters with carriage returns. When I run the following “change file in place” sed instruction from the command line all the Line feeds are successfully replaced with Carriage returns. sed -i 's/$/\r/' lf_file.txt But that same... (1 Reply)
Discussion started by: hawkman2k
1 Replies

2. Shell Programming and Scripting

Trying to pass a password: bash: syntax error near unexpected token `('

howdy, so I'm make a plugin work for Nagios, and the commandline is: /usr/lib/nagios/plugins/check_mssql -H MySQLServerName -u MySqlAccountName -p MyPassword(#XXXXX -d MyDatabaseName it is barfing with: bash: syntax error near unexpected token `(' Thoughts? Do I have to wrap something... (2 Replies)
Discussion started by: rgouette
2 Replies

3. Shell Programming and Scripting

Password Expiry while accessing Oracle table

Hi All, I am not able to access an oracle table even if the table is present. After initial analysis, found that there is a password warning for the specified oracle user. Can you please help me in ignoring the password expiry and access the oracle table ? However, the log file does not store the... (4 Replies)
Discussion started by: tapan8984
4 Replies

4. Shell Programming and Scripting

awk: process a part of string, leaving others unchanged

Hello, I have a bunch of strings of the following format: 11.22.33.44.in-addr.arpa x.y.z. What I want to do is format each string in this way: 44.33.22.11 x.y.z i.e. the string conists of two columns, where delimiter is space. I need to output modified first column (delimiter inside... (7 Replies)
Discussion started by: zerorange
7 Replies

5. Shell Programming and Scripting

Expect Script - Hide password from process table

i have an expect script that runs like this: /usr/bin/expect -f /home/skysmart/commandstoexecute.sh host2.net b$4aff Skysmart when i run this command, and i do a ps -ef and egrep for expect, i see the exact line in the process table and it shows my password for the world to see. how can i... (2 Replies)
Discussion started by: SkySmart
2 Replies

6. UNIX for Dummies Questions & Answers

boot up failure unix sco after power failure

hi power went out. next day unix sco wont boot up error code 303. any help appreciated as we are clueless. (11 Replies)
Discussion started by: fredthayer
11 Replies

7. Shell Programming and Scripting

Convert all files in current folder from UTF8 to ANSI, name unchanged.

Asking for a Linux command line to convert all files in current folder from UTF8 to ANSI, name unchanged. Best Regards Pei (3 Replies)
Discussion started by: jiapei100
3 Replies

8. Shell Programming and Scripting

pass arguments unchanged

Hi, I have to use ksh on HP-UX for some scripting. I usually use "set -e -u" in scripts to stop if errors occur or a typo is in a variable name. Now I try to use "$@" to pass the arguments unchanged to another function, which works without problems - unless I try to call the script without... (7 Replies)
Discussion started by: michas
7 Replies

9. UNIX and Linux Applications

How to encrypt oracle password table ?

Hi Oracle & Unix expert, Could you tell me how to encrypt oracle table ? Thanks. (1 Reply)
Discussion started by: olaris
1 Replies

10. UNIX for Dummies Questions & Answers

file unchanged error

Hi, I am trying to compress a file using the following command: compress user_list But i am getting the following error. user_list: -- file unchanged Please note that file is not empty (1 Reply)
Discussion started by: funnie
1 Replies
Login or Register to Ask a Question