Problem while changing the password in solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris Problem while changing the password in solaris 10
# 29  
Old 06-11-2009
and break Internet access, if any.
# 30  
Old 08-11-2009
Run pwconv to check the passwd file for errors.

I had the same symptoms as daya. I ran pwconv, and it returned:

bash-3.00# pwconv
pwconv: ERROR: bad entry or blank line at line 9 in /etc/passwd


Turns out I had fat-fingered a manual edit to /etc/passwd. As soon as I fixed that, passwd worked. It seems that passwd breaks as soon as it comes to a corrupt entry in the passwd file.

You say that some of your users can change their password, and not others. Perhaps there is a corrupt line in your passwd file, and the users who can change their password are above that line, and the ones who can't are below?

Just a guess...

---------- Post updated at 08:55 PM ---------- Previous update was at 08:49 PM ----------

You have two users with the same home directory:

rajeevk:x:150143:1:Rajeev Kumar:/export/home3/Student2nd_year/rajeevk/:/bin/sh
rajeshk:x:150153:1:Rajesh Kumar:/export/home3/Student2nd_year/rajeevk/:/bin/sh

I'm not sure, but it would not surprise me if that made passwd angry Smilie

Last edited by coolhaus; 08-11-2009 at 10:03 PM..
# 31  
Old 08-12-2009
Hi Coolhaus,

yes the problem was with passwd file, there was present a blank space in my passwd file. And after running the "pwconv" it was identified, and i do apologies to everyone as i wasn't able to post it because of some problem.

Thanks to everyone for their precious post.
thanks a lot.

Quote:
Originally Posted by coolhaus
Run pwconv to check the passwd file for errors.

I had the same symptoms as daya. I ran pwconv, and it returned:

bash-3.00# pwconv
pwconv: ERROR: bad entry or blank line at line 9 in /etc/passwd


Turns out I had fat-fingered a manual edit to /etc/passwd. As soon as I fixed that, passwd worked. It seems that passwd breaks as soon as it comes to a corrupt entry in the passwd file.

You say that some of your users can change their password, and not others. Perhaps there is a corrupt line in your passwd file, and the users who can change their password are above that line, and the ones who can't are below?


Just a guess...

---------- Post updated at 08:55 PM ---------- Previous update was at 08:49 PM ----------

You have two users with the same home directory:

rajeevk:x:150143:1:Rajeev Kumar:/export/home3/Student2nd_year/rajeevk/:/bin/sh
rajeshk:x:150153:1:Rajesh Kumar:/export/home3/Student2nd_year/rajeevk/:/bin/sh

I'm not sure, but it would not surprise me if that made passwd angry Smilie
# 32  
Old 08-12-2009
Thanks Daya, you did it. It was a interesting problem finally ended with very nice technical discussions.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Changing root password

I want to change the root password on an AIX box. What is the best method to do this so i do not get myself locked out. When I do i search the results come up for resetting the password if you are locked out. Thanks (5 Replies)
Discussion started by: fierfek
5 Replies

2. Shell Programming and Scripting

Problem with feeding password while changing to root user

i want to change user to "root" from another user while running a script. how can i automatically feed the password? for example, i want to write a script say "script.sh"... it will first run the command "p" as mhmn user, and then it will change the user to "root" by using "su - root" command. at... (1 Reply)
Discussion started by: mhmn
1 Replies

3. Shell Programming and Scripting

password changing

Hi all Im trying to learn the basics of bash and am struggling with some file manipulation. I am trying to run a script that once you have logged in allows you to change your password which is held (along with the corresponding username) in a different file called usernames. When i try to run my... (2 Replies)
Discussion started by: somersetdan
2 Replies

4. IP Networking

Changing Auto negotiating Problem on Solaris

I have a T2000 server running Solaris 10. I want to change the auto negotiaing on the ethernet ce3 to off. but when I try with the comand only ce2 changes. I have tried with but failing. Note: Earlier i was using ce2 but not using ce3 because ce2 failed. Kindly help (1 Reply)
Discussion started by: lottiem
1 Replies

5. Solaris

Solaris user changing password

i created 1 user . Now its passwd time period get expired. Now how can I set password for that user. Also how can I set a condition such a way that after every 3 months user must change his passwd. (5 Replies)
Discussion started by: ajitkraj
5 Replies

6. Linux

Problem changing user password

Hi all, I'm having an issue resetting an Linux user password. As root, I type 'passwd <username>, enter the new password, but the user is still Access Denied. Can someone assist me in figuring this one out? The box is running "Linux trm62 2.4.21-15.ELsmp #1 SMP Thu Apr 22 00:18:24 EDT 2004... (6 Replies)
Discussion started by: bbbngowc
6 Replies

7. Solaris

Changing Password in NIS

Friends I want to know whether i can change the password of a user logged in thru NIS from a client machine after stopping the YP services in NIS server. Note - The Slave server is up and running. I tried doing this. But i got the reply "Permission Denied". I stopped the YP services in... (7 Replies)
Discussion started by: efunds
7 Replies

8. HP-UX

Changing root password

I have two unix system A and B with same configuration. I can use remsh from A system login to B system as root, but when I want to change the root password of B system, it ask me the old password, but i forgot it. However, is it possible to change the B system root password? :( Thanks a lot (3 Replies)
Discussion started by: zetadhell
3 Replies

9. Solaris

Problem in changing password in NIS

Hi, I need help urgently. I've been running NIS for 4 years without problem. And just two weeks ago, all my users are unable to change their password which never happens before. When we issue passwd or yppasswd, this is what we get passwd : Changing password for Jennifer Enter existing... (2 Replies)
Discussion started by: jennifer
2 Replies

10. Solaris

changing password

Hi Someone logged on the system with a Normal user and changed the password , for this user , how can i know ? who changed the password from which terminal ? regards Georges (5 Replies)
Discussion started by: itsgeorge
5 Replies
Login or Register to Ask a Question