System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

invalid login name during passwd reset

achyuth
Advisor

invalid login name during passwd reset

hi,

iam geeting error in valid login name during passwd reset to any user .

iam able to create new user,
but not able to set passwd to the user.

thanks in advance.


9 REPLIES
ShreeS
Advisor

Re: invalid login name during passwd reset

Hi,

What command you are using??

use "passwd username" as a root user.


Shree
achyuth
Advisor

Re: invalid login name during passwd reset

hi,

yes as root user : passwd root
leelangco_1
Frequent Advisor

Re: invalid login name during passwd reset

pwck to check the /etc/passwd
Shrikant Lavhate
Esteemed Contributor

Re: invalid login name during passwd reset

>yes as root user : passwd root

Does it mean that you are logged in as a root and trying to change password for root i.e. your account using above command???

If you are changing password of account you are logged in then there is no need to supply user name.
In simple way you are root and want to change root password then use :
#passwd

To change password of other users while you logged in as a root use :

#passwd

Will it remain a personal, if I broadcast it here!
Shrikant Lavhate
Esteemed Contributor

Re: invalid login name during passwd reset

As leelangco says,
#pwck
is the command to check integrity of /etc/passwd file. Their could be a problem with consistency of that file so that new edition to it throwing error. You can also restore this one from recent backup media.
Will it remain a personal, if I broadcast it here!
ShreeS
Advisor

Re: invalid login name during passwd reset

if you are root user then only enter "passwd" command for root account,
don't use "passwd root"

for other users use "passwd username"
achyuth
Advisor

Re: invalid login name during passwd reset

hi,

i have root acess , when iam changing the passwd of root or any other users (lower level) iam getting invalid login name
siva0123
Trusted Contributor

Re: invalid login name during passwd reset

Hi,

 

I too had the same problem.

Nothing helped. So i had to collect the details of user-id, del the user-id and re-create as per old details

 

# id user_name

# finger user_name

# userdel user_name

# useradd user_name

# vi /etc/passwd      /* edit the group/home_dir/shell if required */

# passwd user_name  --> now this will allow you to change the passwd.

 

Hope this helps, to who ever visits this place.

 

Regards,

 Druva

 

Dennis Handly
Acclaimed Contributor

Re: invalid login name during passwd reset

>when I am changing the passwd of root or any other users

 

If these are NIS users, even root can't change these.  You must do this on the NIS server.