Sponsored Content
Operating Systems AIX trouble changeing password for user Post 302150801 by bakunin on Wednesday 12th of December 2007 05:58:37 PM
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>

HTH

bakunin
 

9 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

9. 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
PWCK(1) 						      General Commands Manual							   PWCK(1)

NAME
pwck - verify integrity of password files SYNOPSIS
pwck [-sr] [passwd shadow] DESCRIPTION
pwck verifies the integrity of the system authentication information. All entries in the /etc/passwd and /etc/shadow are checked to see that the entry has the proper format and valid data in each field. The user is prompted to delete entries that are improperly formatted or which have other incorrectable errors. Checks are made to verify that each entry has - the correct number of fields - a unique user name - a valid user and group identifier - a valid primary group - a valid home directory - a valid login shell The checks for correct number of fields and unique user name are fatal. If the entry has the wrong number of fields, the user will be prompted to delete the entire line. If the user does not answer affirmatively, all further checks are bypassed. An entry with a dupli- cated user name is prompted for deletion, but the remaining checks will still be made. All other errors are warning and the user is encouraged to run the usermod command to correct the error. The commands which operate on the /etc/passwd file are not able to alter corrupted or duplicated entries. pwck should be used in those circumstances to remove the offending entry. OPTIONS
By default, pwck operates on the files /etc/passwd and /etc/shadow. The user may select alternate files with the passwd and shadow parame- ters. Additionally, the user may execute the command in read-only mode by specifying the -r flag. This causes all questions regarding changes to be answered no without user intervention. pwck can also sort entries in /etc/passwd and /etc/shadow by UID. To run it in sort mode pass it -s flag. No checks are performed then, it just sorts. FILES
/etc/passwd - user account information /etc/shadow - encrypted password information /etc/group - group information SEE ALSO
group(5), passwd(5), shadow(5), usermod(8) DIAGNOSTICS
The pwck command exits with the following values: 0 Success 1 Syntax Error 2 One or more bad password entries 3 Cannot open password files 4 Cannot lock password files 5 Cannot update password files AUTHOR
Julianne Frances Haugh (jockgrrl@ix.netcom.com) PWCK(1)
All times are GMT -4. The time now is 09:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy