Solved

Logging in as Root whilst as another user.

Posted on 2001-09-18
3
253 Views
Last Modified: 2010-04-20
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.
0
Comment
Question by:david_d
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 35 total points
ID: 6491389
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
 
LVL 1

Author Comment

by:david_d
ID: 6491658
It works!

Thank you.
0
 
LVL 17

Expert Comment

by:dorward
ID: 6491682
Great, glad to have helped.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question