Visit Our UNIX and Linux User Community

trouble changeing password for user

Thread Tools Search this Thread
Operating Systems AIX trouble changeing password for user
# 1  
Old 12-12-2007
Question trouble changeing password for user

I am trying to change a password for a user I just created. Everytime I do I recieve this message.

3004-622 An error occurred updating the password database.
3004-709 Error changing password for "heather1" : Value is invalid.

I have made plenty of users and never had this happen before. I can create the user mkdir and chown but can't can't change the password.
Any ideas?
# 2  
Old 12-12-2007
(a) confirm that heather1 truely does exist, eg in /etc/passwd or wherever.

(b) do you have password rules enforced?
# 3  
Old 12-12-2007
Lacking further information about the system i can only guess:

1st possibility:
you have simply written the username wrong in some way. Find out by exploring the file /etc/passwd and see if you can find the name there and how it is written exactly (maybe you have made a typing error while creating the user?), use "set list" in vi to display possible non-printing characters

2nd possibility:
Maybe your root filesystem is full and that prevents /etc/passwd and /etc/security/passwd from being updated. Check by issuing "df -k /". If this is the case correct it and run the following commands to resynchronize the user database:

usrck -t ALL
pwdck -t ALL
grpck -t ALL

Afterwards the problem should be solved.

3. possibility:
The user database got corrupted because of some other problem. Th following commands should solve the problem for the user, <user-id> is the id of the user in question:

pwdck -n <user ID>
pwdck -p <user ID>


# 4  
Old 12-12-2007
Originally Posted by bakunin
... or you could try smit.

# 5  
Old 12-12-2007
Originally Posted by porter
... or you could try smit.

Ah, come on! Using simple tools to solve complex problems is not sportsmanlike, is it?

Btw. in case of possiblity 2 the way to rebuild the user database is not included in SMIT as far as i know. So probably this method is only feasible if you extend SMIT by writing a SMIT panel doing exactly that yourself. While this is indeed possible it goes far beyond the scope of the problem at hand. ;-))

# 6  
Old 12-13-2007
# 7  
Old 12-13-2007

The option 2 stated by BAKUNIN is the one that worked. I ran the pwdck -t ALL and it found the problem. I just selected yes to fix invalid password field.
Thank you for all your help

Previous Thread | Next Thread
Test Your Knowledge in Computers #804
Difficulty: Medium
Statistical signal processing is an approach which processes signals as stochastic processes, utilizing their statistical properties to perform signal processing tasks.
True or False?

9 More Discussions You Might Find Interesting

1. Linux

Trouble setting up basic user authentication on apache2 web server

Hey guys! So I decided to set up some basic user authentication on my apache2 server, and I am running into some problems. I followed the documentation provided by apache on their website, but I cant create the password file for some reason. I did a little trouble shooting myself, and found... (40 Replies)
Discussion started by: LinuxIntern445
40 Replies

2. Red Hat

Trouble assigning user to group in OpenLDAP

Hello, I am working on setup LDAP Server and facing issue related to assigning user to a group. Below is the LDAP structure i am using. I have created Users,Groups and Servers ou's and sub ou's added to the same or Users as well as Groups OU. Logged in as: cn=Manager,dc=bebolabs,dc=net ... (0 Replies)
Discussion started by: sunnysthakur
0 Replies

3. Shell Programming and Scripting

Trouble in getting user input while using CASE statement in UNIX

i want to get user input like this please tell which option to chose 1. mango 2. tango 3. rango if user chooses mango then it should execute a set of statements and again ask like this what do you want to do 1.add 2.subtract 3.exit when i choose exit it should goto my previous menu... (4 Replies)
Discussion started by: s.deepak
4 Replies

4. Shell Programming and Scripting

!!VERY URGENT!! Trouble in getting user input, while using under CASE statement in UNIX

i want to get user input like this please tell which option to chose 1. mango 2. tango 3. rango if user chooses mango then it should execute a set of statements and again ask like this what do you want to do 1.add 2.subtract 3.exit when i choose exit it should goto my previous... (1 Reply)
Discussion started by: s.deepak
1 Replies

5. UNIX and Linux Applications

SVN user permissions trouble

I am trying to add a user to my SVN server that can only access one of about a dozen repositories I have set up. Here are the files that I think need changed and what I have set them to. No matter what I try with these files I am unable to see the results I am after. In the end I want this new... (0 Replies)
Discussion started by: benn600
0 Replies

6. UNIX for Dummies Questions & Answers

help with changeing permissions on my second hard drive

Hello I have just started using unix /ubanti and want to know how i can change permissions on my second hard drive. now i cannot use it except looking at text files . It used to be my winxp hard drive and i'd like to use it for things. Don spaulding Continued at Problem with accessing my 2nd... (1 Reply)
Discussion started by: Donald Spauldin
1 Replies

7. Linux

Changeing helo sent from sendmail

I'm trying to change the helo sent from one of my sendmail servers. It is sending out localhost.localdomain and i need it to send , Every time i change it, my sendmail blows up. It wont send new mail and it gives me the error of Apr 13 17:19:03 localhost sendmail: o3E0J3F2012758: from=root,... (0 Replies)
Discussion started by: blackax
0 Replies

8. Red Hat

Trouble logging in with username and password

I have a RHEL 5 server that I can log into with an LDAP account hosted on a server running Sun DSEE 6.3 with an ssh key pair but not with my username and password. When I try to login to the console I am given the "login incorrect" message as if I fat fingered my password. Other users with... (5 Replies)
Discussion started by: ilikecows
5 Replies

9. UNIX for Advanced & Expert Users

password verification verify password of a user for only first 8 characters

Helo , I m using linux pam library for user and its password authentication. I m creating new user and giving its password.I m giving password of 10 when I login in as that newly created user its ask me $ su - ram Password: You are required to change your password immediately... (12 Replies)
Discussion started by: amitpansuria
12 Replies

Featured Tech Videos