Solved

Logging in as Root whilst as another user.

Posted on 2001-09-18
3
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exchange, squid, proxy, linux 6 87
Edit smb.conf-file in Samba om a ReadyNAS 3 75
http response code 3 38
Bitcoin mining - Is it possible? 6 92
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

738 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