Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 10-26-2011, 11:49 AM   #1
LQ Newbie
Registered: Jun 2011
Posts: 12

Rep: Reputation: Disabled
How to login as root on Fedora 14 from console

I am using Fedora 14. I installed the OS, and I
have the root password. I use the machine as a
non-root user.

If I try to login as root from the initial login
screen, I get an error saying permission denied.
If I login as the non-root user, and try to do
something that requires root privileges, e.g.,
modify a firewall rule, a dialog box comes up,
asking for root password. I get authenticated
without any issues.

However, if I try to do a 'sudo root' from the
console, the system asks for the root password
of the non-root user, which does not exist.So
typing in the root password does not work.

Could some Fedora guru suggest a remedy ?
Thanks in advance for your help.
Old 10-26-2011, 12:11 PM   #2
Registered: Oct 2010
Distribution: Arch
Posts: 136

Rep: Reputation: 7
2 things at you question needs to be clearafity:

1: 'dialog box' mean that it is on the GUI env ?
2: i have no idea what is 'sudo root'.

In order to get to the root account with all the env var you need to do "su -"
And far as i know you the sudo system in the fedora distro isn't like the ubuntu one.
Old 10-26-2011, 01:58 PM   #3
Registered: Oct 2009
Location: NJ
Distribution: fedora 20 and rawhide
Posts: 47

Rep: Reputation: 8
Not recommended, but this should work, similar actions taken if you run KDE From the console just type
su -
hit enter and put in the root password, and you can execute commands as root from there, type exit when done to end root session of console. Do not log in as root if you don't have to.
Old 10-26-2011, 03:52 PM   #4
LQ Newbie
Registered: Feb 2011
Distribution: OpenSUSE 10.3, Fedora, Ubuntu
Posts: 23

Rep: Reputation: 1
The sudo command stands for "superuser do". It prompts you for your personal password and confirms your request to execute a command by checking a file, called "sudoers", which the system administrator configures. Using the sudoers file, system administrators can give certain users or groups access to some or all commands without those users having to know the root password. It also logs all commands and arguments so there is a record of who used it for what, and when.

When you enter the sudo command and any command you want to execute, what it asks is the users password and not the root.(usually used for executing single commands)

Fedora doesn't add users to this sudoers list by default. It is left to the root to configure.
In simple words, Fedora does not configure "sudo" by default.

On the other hand, The su command stands for "switch user", and allows you to become another user (usually used to become root).

If you still wanna hold on to "sudo" for some change. u can check the manual for sudoers. type "man sudoers" in the terminal and apply the proper configuration as per given.
Old 10-27-2011, 03:34 AM   #5
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,895

Rep: Reputation: Disabled
as stated above please use " su -" then the root password
and do that as a normal user

that is the default set up for fedora

also BE ADVISED fedora 14 will hit it's End Of Life in 6 weeks
time to install fedora 15
in 2 to 3 weeks install fedora 16
Old 10-29-2011, 08:02 PM   #6
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Linux Mint, Ubuntu
Posts: 1,416

Rep: Reputation: 281Reputation: 281Reputation: 281
FWIW, I don't believe the root user can log in via the GUI, but I have no problem logging in as root to the CLI (not that I do it very often).
Old 10-30-2011, 06:09 AM   #7
LQ Newbie
Registered: Oct 2011
Posts: 5

Rep: Reputation: Disabled
In Fedora 14 You cannot login as a root from gui. By Default, only Normal users are allowed to login from gui mode.

Here is a nice step by step guide with pics, i was researching this subject myself few days ago.

Last edited by anarchist18; 10-30-2011 at 06:13 AM.
Old 10-30-2011, 03:36 PM   #8
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,895

Rep: Reputation: Disabled
but please do not use that "pam" hack
there ARE VERY big problems with that .
A lot of tools WILL NOT WORK from root if you do .

both fedora AND the Gnome desktop
killed off the root gui boot
-- for GOOD REASONS ---
Old 11-03-2011, 05:06 PM   #9
Registered: Feb 2008
Posts: 65

Rep: Reputation: 3
I posted this query in another thread that I recently started about a non-booting new kernel, but it might be better to tack it onto this one.

Originally Posted by John VV
but please do not use that "pam" hack
there ARE VERY big problems with that .
A lot of tools WILL NOT WORK from root if you do .

both fedora AND the Gnome desktop
killed off the root gui boot
-- for GOOD REASONS ---
AAMOI & FMI what are those good reasons?

I ask because, apart from su -, I've been using the "commentingoutline2 in /etc/pam.d/password" hack to get at "root" for months with no apparent problems.
It's so good/vitalIMO to be able to get at "root" from the GUI or my user account

And, AAMOI, how come the user account(s) don't appear in the Home folder when viewed from "outside"?

Paul W

Last edited by PaulFC5; 11-03-2011 at 09:28 PM. Reason: Solved the problem


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
only root can login on console, Fedora 7 mvanhorn Linux - General 4 03-30-2010 05:51 PM
users cant able to login in any console,but root can login. skumar.v Linux - Security 1 04-19-2008 07:57 AM
Only allow root login on console vvcat Linux - Security 4 03-21-2008 12:01 AM
Secure root login on console only pyroman59 Linux - Software 1 11-01-2005 05:45 PM
Cannot login as root under console SuSE 8.2 HamishTPB Linux - General 3 07-11-2003 08:20 AM

All times are GMT -5. The time now is 10:52 AM.

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