Re: Problem changing local root password



It's been ages, but if memory serves, using shadow passwords along with NIS tended to be problematic.

If you do use a shadow password file, you can use pwunconv to generate a proper password file from it. (You can recreate the shadow file afterwards by means of the pwconv command.)

If that still doesn't resolve te issue, try prepending the root record in the passwd file by a + sign.

Kind regards,

Herta

Russell Harrison wrote:
It could be a problem with shadow passwords? Verify you have the correct
version of shadow-utils installed. Thats just a shot in the dark, BTW.

On 3/16/06, Lunt, Nick <Nick.Lunt@xxxxxxxxxxxxxx> wrote:

I'm as stuck as you are now then Andrew :)

Anyone else got any ideas ?


-----Original Message-----
From: Andrew.Bridgeman@xxxxxxxxxxxxxx
[mailto:Andrew.Bridgeman@xxxxxxxxxxxxxx]
Sent: 16 March 2006 14:28
To: General Red Hat Linux discussion list
Subject: RE: Problem changing local root password





Yes, the root user is in the passwd file on the machine i am
logging into.
Unfortunately i cannot see the -N option when i do a man on
passwd either.

Regards

[IMAGE]
|+--------------------------+---------------------------------
------------|
|| "Lunt, Nick" |
|
|| <Nick.Lunt@xxxxxxxxxxxx| To: "General
Red Hat Linux |
|| uk> | discussion list"
<redhat-list@xxxxxxxxxx> |
|| Sent by: | cc:
|
|| redhat-list-bounces@red| Subject: RE:
Problem |
|| hat.com | changing local root password
|
|| |
|
|| 16/03/2006 14:15 |
|
|| Please respond to |
|
|| General Red Hat Linux |
|
|| discussion list |
|
|| |
|
|+--------------------------+---------------------------------
------------|






Hi Andrew,

if your sure that's it's not a NIS problem then I dont know
what it could
be.
Is the root user in the passwd file on the host your logged onto ?

The passwd command used to have a -N option which is not
available in my
RHEL4 boxes, but it may be on your WS3 box.

Good luck,
Nick .



-----Original Message-----
From: Andrew.Bridgeman@xxxxxxxxxxxxxx
[mailto:Andrew.Bridgeman@xxxxxxxxxxxxxx]
Sent: 16 March 2006 14:09
To: General Red Hat Linux discussion list
Subject: RE: Problem changing local root password




Hi Nick,

There is a root user in the NIS database, The Sun system that
is the NIS
server creates this entry when the tables are updated.
But in /etc/nsswitch.conf on the linux system the order of
the lookup is
configured as FILES first, then NIS
When on the linux system i cd into the homefolder of root
(using cd ~) it
goes to /root and not / as the root user in NIS has.

All this is as it should be, the only thing not working right
is changing
root's local password.

Regards

Andrew Bridgeman
|+--------------------------+---------------------------------
------------|
|| "Lunt, Nick" |
|
|| <Nick.Lunt@xxxxxxxxxxxx| To: "General
Red Hat Linux |
|| uk> | discussion list"
<redhat-list@xxxxxxxxxx> |
|| Sent by: | cc:
|
|| redhat-list-bounces@red| Subject: RE:
Problem |
|| hat.com | changing local root password
|
|| |
|
|| 16/03/2006 13:43 |
|
|| Please respond to |
|
|| General Red Hat Linux |
|
|| discussion list |
|
|| |
|
|+--------------------------+---------------------------------
------------|







Hi Andrew,


-----Original Message-----
From: Andrew.Bridgeman@xxxxxxxxxxxxxx

We are currently trying to change the local root password

on 40 Linux

Redhat WS Version 3 machines but we keep getting the error

below. Can

anyone help with this? Has anyone seen this before?

[root@linux etc]# passwd
Changing password for user root.
New password:
Retype new password:
RPC: Can't encode arguments
The password has not been changed on sunnisserver.
passwd: Failed preliminary check by password service
[root@linux etc]#

Im guessing here, but have you set the root user to use NIS ?
Try yppasswd if so.

That's about all I can offer I'm afraid,
Nick .

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

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



Relevant Pages

  • why target rdist machine trying to auth root from NIS?
    ... machine when I am trying to send a root rsh to it. ... -> sunbackup RSHELL C port=857 ... sunbackup -> nisslave NIS C MATCH root in passwd.byname ... /etc/nsswitch.conf has compat in the passwd and hosts lines, ...
    (comp.unix.solaris)
  • Re: Root Password
    ... I am unable to reset my root password, It gives me the following information ... [root@311111e python]# passwd root ... passwd: Failed preliminary check by password service ... Yes its under NIS ...
    (Fedora)
  • SUMMARY: Changing NIS+ root password
    ... # chkey -p ... Please enter the Secure-RPC password for root: ... What about changing the root password on a NIS+ client? ...
    (SunManagers)
  • Re: superuser home directory
    ... >> Login in as root should be done only once after installation, ... > pointing out how doing so removed vipw from the account maintenance ... > get what is defined for root, not uid=0 in the passwd file. ... root shouldn't be stored in nis anyway. ...
    (comp.unix.solaris)
  • I can not su to root on my Sun Solaris 9 (SPARC) box, even with the correct password
    ... I used the correct root password but still am not able to ... I have the following configured and running on my Sun box. ... I am using NIS / YP for my authentication and this Sun box is ... NOT neither running as an NIS master nor as an NIS slave server. ...
    (comp.unix.solaris)