LinuxQuestions.org
Help answer threads with 0 replies.
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

Closed Thread
 
Search this Thread
Old 08-04-2009, 09:50 AM   #1
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 102

Rep: Reputation: 15
I need to log in as root in GUI (Debian)


I'm using KDE, and yes I know it's not recommended. Where can I make root be able to login in the GUI? There must be a way to do this without having to restart in a lower runlevel... I hope.
 
Old 08-04-2009, 10:29 AM   #2
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,447

Rep: Reputation: Disabled
Quote:
Originally Posted by hashbangbinbash View Post
I'm using KDE, and yes I know it's not recommended. Where can I make root be able to login in the GUI? There must be a way to do this without having to restart in a lower runlevel... I hope.
It's not recommended for very good reasons. Can you explain why you think you need to do this and maybe someone can show you a more secure way to proceed.
cheers,
jdk
 
Old 08-04-2009, 10:42 AM   #3
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 102

Original Poster
Rep: Reputation: 15
*considers throwing tantrum, decides not to*

Ok it looks like I've been able to do what I was trying to do anyway, but I'd still like to know how. If things go wrong I can always reinstall, I just want to know how to log in as root to the desktop, how would this be done.

I will use this power only for good, promise.

I am using KDE if that makes a difference. In Windows 2003 *spits* you can choose to carry out an operation on the Desktop as the Administrator even if logged in as a non admin user, but with Debian this doesn't seem to be an option. And now, out of curiosity I want to know where I'd add root to the startx group or however it's done (I checked /etc/groups file, but no clues there, I googled for the answer but just found alot of linux forums with posters telling newbies it's not generally advised and to tell them what they were trying to do so they could suggest a safer (more boring) way to do what they were trying to do, as you have just done. )

Last edited by hashbangbinbash; 08-04-2009 at 11:39 AM.
 
Old 08-04-2009, 10:46 AM   #4
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,447

Rep: Reputation: Disabled
If you're using kde then look in the menus carefully. You'll find things like "File Manager - Super User Mode" which lets you run konqueror as root. Look some more and you will find other items for apps running in super user mode.

However good you promise to be you are not alone here and what is posted is public. I don't think any responsible person would want to post this sort of thing.
Cheers,
jdk

Last edited by jdkaye; 08-04-2009 at 10:48 AM.
 
Old 08-04-2009, 10:58 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,043
Blog Entries: 1

Rep: Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369
Hi,

'jdkaye' your being polite. I won't be.

To the OP, this type of language and attitude won't get you much here on LQ. You need to re-read the 'LQ rules'.

Your post has been reported.
 
Old 08-04-2009, 11:00 AM   #6
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 102

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jdkaye View Post
If you're using kde then look in the menus carefully. You'll find things like "File Manager - Super User Mode" which lets you run konqueror as root. Look some more and you will find other items for apps running in super user mode.

However good you promise to be you are not alone here and what is posted is public. I don't think any responsible person would want to post this sort of thing.
Cheers,
jdk
Fair enough, I understand.
 
Old 08-04-2009, 11:04 AM   #7
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 102

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by onebuck View Post
Hi,

'jdkaye' your being polite. I won't be.

To the OP, this type of language and attitude won't get you much here on LQ. You need to re-read the 'LQ rules'.

Your post has been reported.
You may not be being polite but I wasn't being rude. Linux is not just for the stern and unsmiling you know, lighten up, it's not that bad. jdkaye has made the point better than you have. You could learn from that.

I will look around in File Manager for Super User Mode as jdkaye suggested.

Last edited by hashbangbinbash; 08-04-2009 at 11:05 AM.
 
Old 08-04-2009, 11:14 AM   #8
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
kdesu or sux will open GUI apps as root, or you can enable sudo.
 
Old 08-04-2009, 11:21 AM   #9
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Another kde way is to (with Konqueror as an example) do the following from your regular users terminal:

kdesu konqueror &

This will bring up the password box, and when you enter root password, with any luck, a root konqueror (or whatever app) will start.

Another option is to (very unrecommended) be at the VT console (use CTRL-ALT-Fn to get another VT) and log in as root, and type 'startx' or whatever command your system used to start X. Did I mention that this is NOT recommended?

FWIW, there are a large stack of ways & places by which the OP or anyone can find how to do silly and/or 'unsafe' things, like logging into X as root (most likely there are lots of LQ posts about the subject already).

It's been made clear to the OP that it isn't recommended, which I agree with anyhow, but if the OP wants to do it anyway, IMHO it's his machine. He's been warned and understands, so let's help him.

Sasha

PS - hasbinbangbash: kindly edit the first line of your post#3 -- it's borderline innapropriate. Thanks.

Last edited by GrapefruiTgirl; 08-04-2009 at 11:24 AM.
 
Old 08-04-2009, 11:21 AM   #10
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Dupe.

Last edited by GrapefruiTgirl; 08-04-2009 at 11:22 AM. Reason: Dupe.
 
Old 08-04-2009, 11:23 AM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,043
Blog Entries: 1

Rep: Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369
Hi,
Quote:
Originally Posted by hashbangbinbash View Post
You may not be being polite but I wasn't being rude. Linux is not just for the stern and unsmiling you know, lighten up, it's not that bad. jdkaye has made the point better than you have. You could learn from that.

I will look around in File Manager for Super User Mode as jdkaye suggested.
You were from my perspective.

It's good that you garnished something useful.
 
Old 08-04-2009, 11:40 AM   #12
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 102

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by GrapefruiTgirl View Post
Another kde way is to (with Konqueror as an example) do the following from your regular users terminal:

kdesu konqueror &

This will bring up the password box, and when you enter root password, with any luck, a root konqueror (or whatever app) will start.

Another option is to (very unrecommended) be at the VT console (use CTRL-ALT-Fn to get another VT) and log in as root, and type 'startx' or whatever command your system used to start X. Did I mention that this is NOT recommended?

FWIW, there are a large stack of ways & places by which the OP or anyone can find how to do silly and/or 'unsafe' things, like logging into X as root (most likely there are lots of LQ posts about the subject already).

It's been made clear to the OP that it isn't recommended, which I agree with anyhow, but if the OP wants to do it anyway, IMHO it's his machine. He's been warned and understands, so let's help him.

Sasha

PS - hasbinbangbash: kindly edit the first line of your post#3 -- it's borderline innapropriate. Thanks.
Thanks for that, and edited.
 
Old 08-04-2009, 11:43 AM   #13
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,447

Rep: Reputation: Disabled
Quote:
Originally Posted by hashbangbinbash View Post
*considers throwing tantrum, decides not to*

jdk
 
Old 12-30-2011, 01:46 AM   #14
jasonpsage
LQ Newbie
 
Registered: May 2006
Posts: 6

Rep: Reputation: 2
How its done - For REAL....

First off - to all the NAH-SAYERS about logging in as ROOT? WE DON'T CARE - there is a time and place for Security - leave it to the Adults to judge for themselves.... I'm a developer and restrictions on ROOT just make my job harder when developing. Production machines? Another Story surely. Please stop preaching you're Anti-Root Propoganda

Ok... You want DEBIAN ROOT GUI? Edit /etc/inittab and look for lines like:

Code:
# The default  runlevel.
id:2:initdefault:
change to (for safety)
Code:
# The default  runlevel.
#id:2:initdefault:
id:3:initdefault:
Essentially commenting out original and adding the new line with the "3" in it.

1: REBOOT

2: When you get the GUI login thing ... PRESS CTRL+ALT+F1

3: login as root in the console

4: execute these two commands:
Code:
telinit 3
telinit 5
(press enter twice after telinit 5 to get prompt back (sometimes it doesnt show for me)

5: Kill Xwindows like this
Code:
ps -A | grep X
Note the Process number for Xorg

And kill it like this:

Code:
kill <xxx>
Where <xxx> is just thge process number (no greater or less-than signs - just the process number)

LAST....

type:

Code:
startx
You are NOW GOD on your system and the NAY-SAYERS about root can go run windows or Mac if they wish

FIGHT THE (lack of) POWER!

--Jason P Sage - 30 year Programming Veteran
 
Old 02-08-2012, 03:07 PM   #15
rogue_spider
LQ Newbie
 
Registered: Jul 2009
Posts: 21

Rep: Reputation: 0
Edit /etc/inittab
and when you try to save it says you dont have permission to do that even though you are in a su account
debian 6.0.4 kde install

lets do a step by step please
 
  


Closed Thread


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
log into the gui as root ronss Suse/Novell 2 07-31-2007 12:44 PM
newbie > root can log in to a gui, users suddenly can't Influx Slackware 18 10-09-2005 10:09 AM
Can't log on as ROOT and go to GUI checho4 Mandriva 5 08-17-2005 05:58 PM
Can't log into GUI with root Oeli Linux - Newbie 5 11-28-2003 09:10 AM
How to log in (root) without GUI thenewbster Mandriva 4 09-20-2003 03:44 PM


All times are GMT -5. The time now is 05:11 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