1838105 Members
3614 Online
110124 Solutions
New Discussion

problem with 'su'

 
SOLVED
Go to solution
marc seguin
Regular Advisor

problem with 'su'

On HP 10.20, as user root, i do :
# su - kroot
su : Your own ID is unknown

????????????????

4 REPLIES 4
Steven Sim Kok Leong
Honored Contributor
Solution

Re: problem with 'su'

Hi,

What do you see when you execute the following command?

# id

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Deepak Extross
Honored Contributor

Re: problem with 'su'

Do 'whoami' and 'who am i' show different userids?
Mark van Hassel
Respected Contributor

Re: problem with 'su'

Hi,

It seems that your /etc/passwd file is corrupt. Run 'pwck' to see what's wrong.

HtH
The surest sign that life exists elsewhere in the universe is that none of it has tried to contact us
marc seguin
Regular Advisor

Re: problem with 'su'

Sorry for the inconvenience.

My user root is OK (id, whoami,...)
but the problem seems to be like :
it is a trusted system and somebody added manually a line in the file /etc/passwd.
When restoring the old passwd file, my su command runs well.