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
# 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..
# 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