LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-25-2014, 02:46 AM   #1
ubuntuv
Member
 
Registered: Jan 2010
Posts: 82

Rep: Reputation: 0
Fedora 19: GUI root login


hi,

I am using Fedora Core 19. I want to login as 'root' user in GUI. Please tell me how to do it.

thanks in advance.
uv.
 
Old 04-25-2014, 03:34 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I discourage the logging in as root and by default this is not allowed in some, if not all, distros using gdm (graphical interface).
But if you want to change this, you will need to edit at least one PAM (Pluggable Authentication Module) file.
Edit this file: /etc/pam.d/gdm-password and comment the following line

#auth required pam_succeed_if.so user != root quiet

so that it looks like this:
##auth required pam_succeed_if.so user != root quiet

Logout and try logging in again as root with root password.

Just be aware that when you login as root, and your computer is connected to the internet, you are wide open for a host of problems. Anyone who can access your computer does so with root authority given to them by YOU.
 
Old 04-25-2014, 05:11 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
do not even try to use that pam hack
if you do there will be PROBLEMS!!!

if you MUST!!!! use a gui as root ( not something you want to do all the time)

but for the few times it is a time saver
USE THE TERMINAL !!! to become root IN THE TERMINAL
then launch "gedit" or "nautilus" in the TERMINAL as the root user
like this
Code:
su -
---- type in your root password when it is asked for ----
gedit
------------ or -------------
 nautilus
but DO NOT !!!! login as root into the GUI !
 
1 members found this post helpful.
Old 04-30-2014, 06:24 AM   #4
ubuntuv
Member
 
Registered: Jan 2010
Posts: 82

Original Poster
Rep: Reputation: 0
Thanks bigrigdriver.

But in /etc/pam.d/gdm-password

There is no line "#auth required pam_succeed_if.so user != root quiet"

I am using Fedora Core 19, 64-bit machine.

--uv.
 
Old 04-30-2014, 06:37 AM   #5
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Why do you want to login as root? Its not really needed and it just adds risk.
 
Old 04-30-2014, 08:08 AM   #6
ubuntuv
Member
 
Registered: Jan 2010
Posts: 82

Original Poster
Rep: Reputation: 0
hi,

I am not connecting to internet. It is for experimental purposes.

--uv.
 
Old 04-30-2014, 09:06 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Try:
Code:
gksu nautilus
or:
Code:
gksu gedit
or:
Code:
gksu whatever-gui-application-you-want-to-use-as-root
If you're using KDE, it's:
Code:
kdesu whatever
 
Old 04-30-2014, 10:10 AM   #8
ubuntuv
Member
 
Registered: Jan 2010
Posts: 82

Original Poster
Rep: Reputation: 0
hi brainL,

I am able to open the file using sudo in vi editor. Inside the contents of the file '/etc/pam.d/gdm-password', I am not able to find the text mentioned by 'bigrigdriver'

Thanks
uv.
 
Old 04-30-2014, 11:48 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
DO NOT!!!!!!!!!!!!!!!!!!!!!!!!! USE THAT PAM HACK !!!!!!!!!!!!!!!!!!!!!!!!!!!!
IT WILL CAUSE PROBLEMS!!!!!!!!!!!!!!!!!!!!!!!!!

For example
say you do
and as root you want to edit something that NEEDS root permission
well a pop up will pop up and ask for the root password
but seeing as you are root THE PASSWORD will not work in the pop up
the authorizing mechanism will be BROKEN


Warning:
DO NOT USE!!!


use the the "sudo gui" program AS POSTED in post #7
"gksu"
or
use the terminal ,become root
and launch the needed program like "gedit"

fedora and a bunch of other distros have ( AND the people over at Gnome ) disabled the root login
the root gui login is BLOCKED by fedora AND by gnome

it is NOT safe to use xorg as root
so many different people have BLOCKED doing so

Last edited by John VV; 04-30-2014 at 11:54 AM.
 
Old 05-04-2014, 08:12 PM   #10
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
People! If OP insists on shooting himself in the foot, let him. Press ALT+CTRL+F2 to switch to a virtual console and type "root" as the username and enter your password. Then type the command "startx" to start the GUI.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Login as a root from GUI in Fedora 12 !!! piyushmap Linux - Newbie 17 09-15-2011 07:37 PM
[SOLVED] Enable root login from GUI on Fedora 15 networking.dept Fedora 22 06-20-2011 01:47 AM
[SOLVED] RHEL 6 GUI Issue & Fedora 15 Root Login Problem SkM007 Linux - Newbie 9 06-05-2011 08:35 AM
gui root login in fedora 11 av.dubey Linux - Newbie 18 10-13-2009 12:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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