Unable to change password for a user.


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to change password for a user.
# 1  
Old 04-20-2010
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 using NIS, the passwd field is set to "files"
# 2  
Old 04-20-2010
The OS tells username doesn't exists. It obviously cannot change a password if that account is not already created. What makes you feel the account exists ?
# 3  
Old 04-20-2010
I know the account exists because I can see the account information within the passwd file; I also used the account several days ago without any problems. I can also "su" to that account name without any problems. The OS is also showing the owner / group information for the account without any problems.
# 4  
Old 04-20-2010
That's not enough for a password to be set/changed. Your account is probably missing from the /etc/shadow file. You probably never logged in under that account.
# 5  
Old 04-20-2010
Yes, the user account is within the shadow file, and has a password set. As I stated before, I have logged in and used this account several times before.
# 6  
Old 04-20-2010
Then you'll need to provide more evidence about what's going on. Possibly a locked out account. Please copy/paste the precise command and error message you got when trying to change the password and the output of:
Code:
id
grep username /etc/passwd
grep username /etc/shadow

# 7  
Old 04-20-2010
grep oracle /etc/passwd
oracle:x:122:120Smilieracle:/u01/app/oracle:/bin/ksh
grep oracle /etc/shadow
oracle:uHa6fqtxFULe6:14687::::::

as root, su to oracle

su - oracle
id
uid=122(oracle) gid=120(dba)

as root, try to change password
passwd oracle
passwd: User unknown: oracle
Permission denied
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Red Hat

Unable to change user role using SELinux

Initial SELinux context for user hitendra $ id -Z unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 I changed the role # semanage login -a -s user_u hitendra # Then I logged in again # su - hitendra $ id -Z unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 $ But I don't... (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies

3. HP-UX

Unable to change password

I need to change password of a non-root user on HPUX. Due to some local policy, it is not allowing me to do so. I need to keep same (previous) password, as that is application user. Can I bypass policy for this time, for this user somehow ? I am root on this machine. # uname -a HP-UX thprnv02... (3 Replies)
Discussion started by: solaris_1977
3 Replies

4. UNIX for Dummies Questions & Answers

Unable to change domain user passwords

Hi, I'm new to this site, so my apologies if this is posted to the wrong board. I'm the student administrator of a small computer science lab (20 Win 7 PCs) at a university. The logins to the PCs are handled by samba (v. 3.5.8) on a CentOS server (kernel v. 2.6.9-100.ELsmp). Recently I ... (1 Reply)
Discussion started by: kerona
1 Replies

5. UNIX for Advanced & Expert Users

unable to change the root password?

I tried to change the root password. but it shows the following error. passwd: Authentication token manipulation error passwd: password unchanged If I login as a normal user that time I'm able to change my (user) password. If I login as a ROOT then I'm not able to change the password root... (6 Replies)
Discussion started by: ungalnanban
6 Replies

6. 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

7. HP-UX

Unable to change root password

Hi, Some how my root password expired for my hp_ux 10.20 machine and when i tried to change the password it displays file system full error how to resolve this issue At first it accepts newpassword and while saving it some where the problem is..... I am logging as root ........ ... (4 Replies)
Discussion started by: jagan_kalluri
4 Replies

8. Solaris

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

9. UNIX for Advanced & Expert Users

unable to change user password from nis client

I trying to change the user1 passwd from NIS client i.e #passwd -r nis user1 Enter user1's password; Can I change the password without having to enter user password? Mnay Thanks (1 Reply)
Discussion started by: sam786
1 Replies

10. SCO

unable to change password

I have forgotten password of the system.I am having SCO Unixware 2.1.2.I am trying to change the password of the system by booting it with boot floopy.I edited the shadow file and made the password field blank.But I am not able to login.When I try to change the password of root or any id using... (1 Reply)
Discussion started by: girish_shukla
1 Replies
Login or Register to Ask a Question