unknown ID:root Error

Hi .,

I am facing a peculiar error in one of my Solaris server , when I use su command from any user to switch root user I am getting the following error.

[build@nibappsun08 ]$

[build@nibappsun08 ]$ su

Password:

su: Unknown id: root

[build@nibappsun08 ]$

I tried the same from other user also.but the same error.

Any suggestion to came out of the error.

Regards

Suseendran .A

[442 byte] By [susee_sun@yahoo.co.in] at [2007-11-26 11:04:03]
# 1
Did you look at the /etc/passwd file? Is this the same system you mention in another post? If so these things could be related. Do you see anything odd in /var/adm/messages?
kjard_us at 2007-7-7 3:18:01 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
This means user root does not exists in /etc/passwd file.Mahendra Rajgude
rajgude at 2007-7-7 3:18:01 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

Hi .,

The /etc/passwd file seems to be fine.,

Here is the entry in passwd file

[root@nibappsun08 /]$ cat /etc/passwd

root:x:0:1:Super-User:/:/usr/bin/bash

daemon:x:1:1::/:

bin:

But still i am getting the same error., when i try to switch user from any of the user to root..

susee_sun@yahoocoin at 2007-7-7 3:18:01 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4
Do you have 'files' first in your entry for 'passwd' in nsswitch.conf? .7/M.
mAbrante at 2007-7-7 3:18:01 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5

Ya .,

As I checked I found the /etc/nsswitch.conf file contain the following entries..

cat: cannot open nsswitch.

[root@nibappsun08 etc]$ cat nsswitch.conf

#

# /etc/nsswitch.files:

#

# An example file that could be copied over to /etc/nsswitch.conf; it

# does not use any naming service.

#

# "hosts:" and "services:" in this file are used only if the

# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd:files

group:files

It seems to be fine

Regards

Suseendran .A

susee_sun@yahoocoin at 2007-7-7 3:18:01 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 6
hi have you solve it?have u try change it to "root:x:0:1:Super-User:/:/sbin/sh"and se if it works.
miiinn at 2007-7-7 3:18:01 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 7
you should have rights r-s for /usr/bin/sutry chmod u+s /usr/bin/suMessage was edited by: leszczyn007Message was edited by: leszczyn007
leszczyn007 at 2007-7-7 3:18:01 > top of Java-index,Solaris Operating System,Solaris 10 Features...