unable to reset user password


 
Thread Tools Search this Thread
Operating Systems Solaris unable to reset user password
# 1  
Old 09-06-2008
unable to reset user password

hi,
i am unable to reset one of my server user password.
whenever i make a "passwd username" i get the following
error
========================================

New Password:
Re-enter new Password:
Permission denied

========================================

please advise.thanks alot.Smilie
# 2  
Old 09-06-2008
To change the Passward of a user (Here, Username), You should login as
root or the user itself (Here, Username)....

Cheers....
# 3  
Old 09-06-2008
am in root ...still unable to reset...
# 4  
Old 09-06-2008
Is this user's password stored remotely (NIS, NIS+, ldap) ?
# 5  
Old 09-06-2008
Is the user a/c listed in the passwd and shadow file? If yes, try removing the encrypted passwd in the shadow file.
Make sure that /etc/passwd is mode 444 (-r--r--r--) with an owner of root and group of other.

Makre sure that /etc/shadow is mode 400 (-r--------) with an owner of root and group of other.

passwd -r files <username>
Smilie
# 6  
Old 09-06-2008
Just as a little note. I've had a similar problem on an old Sun box before. The problem was a passwd lock file in /etc. I used truss to watch passwd and it kicked back at this lock file. It had been created by another admin changing a password and his session bailed out leaving the lock file in place. Once I cleared it it fixed the problem.

So you might open another window to the server and log in as root. In the first window, type in passwd. Then shift to the second window and do a ps -ef | grep passwd. Next type in truss -p <pid of passwd>. In the first window type in the new password twice. The second window should show you where the problem is happening.

It might be a lock file or some other problem but truss is a helpful tool.

Carl
# 7  
Old 09-08-2008
great info..thanks alot guys...btw,the passwords are on NIS
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Password sent via reset password email is 'weak' and won't allow me to change my password

I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login. Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies

2. UNIX for Beginners Questions & Answers

Giving password reset access to non-root user, in LDAP

Hi, We have two LDAP servers. Whenever we get a ticket to reset the password, we login to LDAP primary server and reset the password. For below example, I logged into primary LDAP server and resetting password to john to Welcome123# We are giving this work to tier-1 team, so that they can reset... (1 Reply)
Discussion started by: ron323232
1 Replies

3. Red Hat

User password reset

Hello - I want to reset user password in multiple server via root ID. I have passwordless authentication for root between all the servers. I an use loop to reset the password. I am using below command in loop echo mypassword | passwd username --stdin However, if anyone sees history - he... (5 Replies)
Discussion started by: saurabh84g
5 Replies

4. UNIX for Dummies Questions & Answers

Unable to change password using root user

Hi, I tired changing password for mqm user in linux server with root user. But still I couldn't able to login mqm user with changed password. Can anyone please help on this. # passwd mqm Thanks, Anusha (4 Replies)
Discussion started by: Anusha M
4 Replies

5. Solaris

how to Remote Reset Password for User ?

Hello, everyone i have a little scenario and would like help , SCENARIO OS : SunOS 5.10 Shell: KSH UserName 1 connects to Server1 .He should run a little command or somthing to server2 that Resets the password of user2. i have tried this : ssh user@server2 '/usr/local/bin/sudo passwd... (2 Replies)
Discussion started by: shatztal
2 Replies

6. Shell Programming and Scripting

how to Remote Reset Password for User ?

Hello, everyone i have a little scenario and would like help , SCENARIO OS : SunOS 5.10 Shell: KSH UserName 1 connects to Server1 .He should run a little command or somthing to server2 that Resets the password of user2. i have tried this : ssh user@server2 '/usr/local/bin/sudo passwd... (0 Replies)
Discussion started by: shatztal
0 Replies

7. Solaris

Unable to change password for a user.

I am getting the following error message "passwd: User unknown: username" Permission denied error message when trying to change the password for that given user account. The user account is within the /etc/passwd file and I can also su to the account without any problems. This is sever is not... (11 Replies)
Discussion started by: eckmanb
11 Replies

8. UNIX for Dummies Questions & Answers

Unable To Change a User's Password

I am trying to change a user's Password, but I get the error "Password Cannot be changed; see account Administrator". Yet I am logged in as root. I also cannot access the Accounts Manager facility when SCO when using System Administration screen Error "Unable to get initial list of users" (2 Replies)
Discussion started by: Waitstejo
2 Replies

9. Solaris

LDAP user password reset script

Hey all, I'm looking for a script to auto-generate a password for users that forget their password. Currently, we are using a perl script (with cgi-bin) where users update their password, but would like to add to this and make it so that the users can also request a password reset and a... (1 Reply)
Discussion started by: em23
1 Replies

10. Shell Programming and Scripting

Is it possible to write a script to reset user's password?

Is there anyway that I can reset user's password using a script/ssh command? ie. emulate passwd command with a default password of abc123 or even null value? > ssh server1 pwdadm user1 < /dev/null or > ssh server1 passwd user1 < /dev/null neither worked for me.. but you know what I... (1 Reply)
Discussion started by: pdtak
1 Replies
Login or Register to Ask a Question