1755261 Members
4924 Online
108831 Solutions
New Discussion юеВ

Re: passwd problem

 
SOLVED
Go to solution
SupraTeam_1
Regular Advisor

passwd problem

Hello to all,
I have a problem on an standalone workstation.
It is impossible to me to change a user passwd !!!!
It's the samle whith a root privilege :

passwd toto
Invalid login name.

/root # which passwd
/usr/bin/passwd


regards
5 REPLIES 5
Leif Halvarsson_2
Honored Contributor

Re: passwd problem

Hi,

Is there anything strange with the login name. Check the user entry in the /etc/passwd file .

Or, are you using NIS ?
Steven E. Protter
Exalted Contributor
Solution

Re: passwd problem

The response indicates that the user does not exist.

cat /etc/passwd | grep toto | wc -l

If the reponse is 1 then it does exist, if not, it needs to be added.

If its supposed to be there, time to check for corruption:

bdf

Is root / full?

pwck

grpck

Some errors are acceptable, but not a lot.

Also, check permissions on /usr/bin/passwd
ll /usr/bin/passwd

It is supposed to be suid, and some adventurous admins turn that off stopping users from being able to change their own passwords.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rick Garland
Honored Contributor

Re: passwd problem

This is telling you that toto does not exist. By chance was this account added via editing of the passwd file? Were there any unprintable characters used in the creation?

The command 'cat -v' may be of help in IDing the nonprinting characters.

/usr/bin/cat -v /etc/passwd

SupraTeam_1
Regular Advisor

Re: passwd problem

Thank you Steven,
the probleme was i had a bad account in /etc/passwd , i see whith pwck
Thank you very much
SupraTeam_1
Regular Advisor

Re: passwd problem

Steven E Protter Find my problem Thanks