Logging in as Root whilst as another user.

Hi,

I don't know the command to log-in as a root user, when I am logged in as a normal user.  I am using Mandrake Linux 8.0

I have tried login and rlogin but no success.  Could someone please provide the necessary command.

Thanks in advance.

David.
LVL 1
david_dAsked:
Who is Participating?
 
dorwardConnect With a Mentor Commented:
Change to another user:

su username

Change to another user and process their logon scripts:

su - username

(note the '-' character is a dash)

If you leave the username off it will default to root.

0
 
david_dAuthor Commented:
It works!

Thank you.
0
 
dorwardCommented:
Great, glad to have helped.
0
All Courses

From novice to tech pro — start learning today.