LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-29-2006, 10:40 PM   #1
Harpo
Member
 
Registered: Mar 2006
Location: Canada
Distribution: Suse 10.0 Retail, 10.1, 10.2, 11.1, Edubuntu 7.04, Mandriva 2010
Posts: 89

Rep: Reputation: 15
How Do I Log In As Root?


Hello

How do I log in as root? I am using Suse 10.0 with KDE 3.5. I occasionally come up with this question and thought I would finally ask. I close my current session and get the root login screen, I type my password, and it opens up in YAST control centre. From here I can't seem to go anywhere. When I get the occasional message that I can't run a program or something because I am not root, I would like to be able to login as root and do what I would like.

I know how to become super user in Konsole, but that isn't quite the same as logging in as root.

Any direction would be appreciated.

Harpo
 
Old 12-29-2006, 11:26 PM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Well, when you log into the computer, you should be able to log in as root like any other user. Just type 'root' as the username and your root password for the password. However, from what I remember of Suse, there should be some kind of "become administrator" button that lets you give the root password and be root temporarily and just for that program. And if that fails, you can just open a Konsole, su, and type the command 'yast2'. Both of those are better options. Root in a graphical environment is asking for trouble.
 
Old 12-30-2006, 12:21 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You can also use "kdesu" to start gui programs. For example, perhaps you prefer using kate over vim to edit conf files.
I think you can change whether root can login in YaST2 -> Users & Security. You can also log out of your session and choose the administration session. I prefer going directly to the YaST2 module I want; "kdesu yast2 sw_single" or "kdesu yast2 network" for example.
 
Old 12-30-2006, 07:56 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The safe way to run a particular GUI app as root is to go into a terminal and sudo to that application. In the GUI, you'll now be root for that app only.

The BEST way to run GUI apps as root is to not do it....It helps with the mental discipline if all admin task are run at the CLI.
 
Old 12-30-2006, 10:25 AM   #5
terryxela
Member
 
Registered: Dec 2006
Location: Denver, Colorado, USA
Distribution: SuSE 11.3
Posts: 127

Rep: Reputation: 17
1. Allow a choice between user and root before the win manager.

Settings/system administration /login manager/Users/User Image Source/ select User, adm

(if you can not find Settings just open the konsole and type "kcontrol")

The next time you boot it will give you the selection of root or user.
To run the system under root is not a very good idea mainly if you are connected.

2. If you are as user and want to be root

Open konsole or alt-f2 and there type su or su -
You can read more about su (open konqueror and in the URL line type info:su or man:su)

For example you can use the su if you need to edit some file with restricted privilege like
$su -c kate

This last option is better than open the konsole became root and then open kate.

But follow pixellany advice when you can.

3. "su" behavior:

- tells su ("switch user") to load target user environment and
that includes its path setting. The username is optional,
if it doesn't exist, it assumes you mean root.

su - (no username, defaults to root, users roots environment)

su - someuser (username is someuser, uses 'someuser' environment)

su someuser (username is someuser but with no -, it inherits
environment of the caller)

4. Kmenu an su

If you need to run a program as a root and you want to have it or is in the kde menu
Open menu/Rmouse edit menu Then go to the application click on it and checked "Run as a different user" box and enter root.
The next time you selected the application in the menu before it opens will ask you for the root password.

Again read pixellany reply. Open konqueror and type man:sudo

Happy New Year!

-=terry(Denver)=-

Last edited by terryxela; 12-30-2006 at 10:28 AM.
 
  


Reply

Tags
root, su, sudo



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
how to log in as root colinkhalid Linux - Newbie 3 07-26-2004 05:13 AM
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
HELP!!! can't log in as anything but root!!! boowax Linux - Newbie 3 06-28-2002 04:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration