1845895 Members
4095 Online
110250 Solutions
New Discussion

root user

 
jamie scott_2
Occasional Advisor

root user

When logged in as root & i su - to any user I always get ther prompt for a password. I've checked the profile of root all is ok. How can I stop the password authentification from appearing?
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: root user

Hi Jamie:

Perhaps you logged in as 'root', then did 'su someuser'. At this point, your prompt would remain that of 'root'.

Hence, you might mistakenly think that you *are* root. Another 'su' will prompt you for the user's password, since you are not 'root'.

Perhaps you even did:

# who am i

...but compare that to:

# whoami

I prefer 'id' so I don't have to remember the subtle difference. See the manpages for 'whoami' and 'id'.

Regards!

...JRF...
jamie scott_2
Occasional Advisor

Re: root user

A script had been written to stop root moving about the box.