Solved

Logging in as Root whilst as another user.

Posted on 2001-09-18
3
231 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Debug VNC connection on CentOS7 server 22 84
nagios alerts 3 44
CentOS/RHEL 7 Linux maillog worldwide readable 2 61
Reset Root Password on CentOS 6 4 53
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
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.:

786 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