Re: Changing a users password in /etc/passwd instead of NIS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dave, In Linux we have 'passwd' and 'yppasswd' commands.. the yppasswd will be invoked by passwd command if the user do not have local account..

check your nsswitch.conf,
Is this is first time you are trying to set the password for the user ( is he a new user) ? if so make sure that the user has entry in /etc/shadow
How do you tell that the machine is contacting NIS for password change ?

I have the same environment and I'm able to change the password, have a look at the output, although it contacts NIS for password change, at last it says password updated successfully.

$ passwd user1
Changing password for user user1.
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
RPC: Server can't decode arguments

The password has not been changed on nisserver.
NIS password could not be changed.
passwd: all authentication tokens updated successfully.

regards,
saravan


Dave Martini wrote:

I would like a user to change his password on his local RHEL 3 account but when typing

passwd

it is going to NIS since this machine is a NIS client.

In Solaris there is a command

passwd -r files

which means to update the local files but I don't see that option in redhat.

How do I change the local account password for a user.

Thank You.
Dave Martini
LLNL


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux