LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-22-2005, 10:36 AM   #1
ron126
LQ Newbie
 
Registered: Mar 2005
Posts: 10

Rep: Reputation: 0
Log in terminal as Root


When i open the terminal window, it is my localhost account.

How can i use the terminal window as root?

Help is much appreciated.
 
Old 03-22-2005, 10:38 AM   #2
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
type
Code:
su
then your root password. Log out as soon as you have finnished with
Code:
exit
 
Old 03-22-2005, 10:41 AM   #3
ron126
LQ Newbie
 
Registered: Mar 2005
Posts: 10

Original Poster
Rep: Reputation: 0
thank jolly joice
 
Old 03-22-2005, 10:45 AM   #4
susefan
Member
 
Registered: Feb 2005
Location: California, USA
Distribution: Novell SuSE
Posts: 39

Rep: Reputation: 15
Using the "su" command will give you root permissions,
but may not set up the proper root environment for you
(for example, on some systems, it will not change the $PATH
to include the /sbin and /usr/sbin directories).

On suse: use the "sux" command. It gives you the proper
environment, plus it gives root access to the gui.
"sux" stands for su with X.

If you are using the konsole application in kde, then click and
hold on the new tab icon (bottom left of the window). You will
see a pop-up menu. Choose "Root Console".

If you are using xterm, or one of its siblings, use the command,
/bin/su -

The dash tells su to use the root environment. And including
"/bin/" before the su command is just plain good practice. It will
prevent the super user from stumbling upon a program that some
(bad guy) used to replace the legitimate su command.

Hope this helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant only log in as root after user log-in. ADJenkins Linux - General 2 11-17-2004 04:18 PM
Log Out root Then Log In As Other User xtremcoder Linux - General 4 10-04-2004 11:01 PM
terminal log? iLLuSionZ Linux - General 8 11-24-2003 08:06 PM
how to log off x-window from terminal ? johnyy Linux - Software 1 10-25-2003 08:04 PM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 12:07 PM


All times are GMT -5. The time now is 11:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration