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

Adel Ben Zarrouk adel at opennet.ae
Wed Nov 9 06:03:04 UTC 2005


Hi,

Try to touch the nsswitch.conf file under /etc, there is a line mention the 
order for changing the password as well as the shadow and the authentication:
password: file nis 
shadow: file nis
group: file nis

I am not sure about it, but you can try.

Regards

 --Adel


On Wednesday 09 November 2005 06:04, anindya banerjee wrote:
> Dear Dave Martini ,
>
>
>
>                                 If user change his password typing command
> passwd. if it's not taken
>
>  then you have to see the permision of passwd file. It's location
> /usr/bin/passwd   -r-s--x--x
>
> you have see the sgid bit set or not. I told this permision is redhat-9. I
> use the RHELAS 3 and
>
> 4 but I could 't remember the permision of passwd file. Try it I hope you
> will be overcome this problem.
>
>
>
>                                                                            
>                      regards
>
>                                                                            
>                Anindya Banerjee
>
>
> Dave Martini <martini at mrpeabody.llnl.gov> 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 at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
>
> ---------------------------------
>  Yahoo! FareChase - Search multiple travel sites in one click.

-- 
Adel Ben Zarrouk
Opennet MEA FZ LLC
Tel: +971 4 390 1943
Fax: +971 4 390 4767
http://www.opennet.ae/




More information about the redhat-list mailing list