LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-26-2011, 10:49 AM   #1
dakupoto
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, 11:11 AM   #2
hen770
Member
 
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, 12:58 PM   #3
jayfree
Member
 
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 http://www.liberiangeek.net/2010/12/...a-14-laughlin/. From the console just type
Code:
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, 02:52 PM   #4
aniketmeshram
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, 02:34 AM   #5
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
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
or
in 2 to 3 weeks install fedora 16
 
Old 10-29-2011, 07:02 PM   #6
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
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, 05:09 AM   #7
anarchist18
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.

http://razibdeb.wordpress.com/2011/0...-in-fedora-14/

Last edited by anarchist18; 10-30-2011 at 05:13 AM.
 
Old 10-30-2011, 02:36 PM   #8
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
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, 04:06 PM   #9
PaulFC5
Member
 
Registered: Feb 2008
Location: Auckland, Aotearoa/NZ
Posts: 98

Rep: Reputation: 13
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
Quote:
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"?

TIA
Paul W

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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