Solved

Logging in as Root whilst as another user.

Posted on 2001-09-18
3
209 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
Comment Utility
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
Comment Utility
It works!

Thank you.
0
 
LVL 17

Expert Comment

by:dorward
Comment Utility
Great, glad to have helped.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now