LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-26-2008, 08:42 AM   #1
anika.ella
Member
 
Registered: Dec 2007
Distribution: Fedora 8
Posts: 64

Rep: Reputation: 15
Unable to log as root in Fedora 10


I installed fedora 10 1 hour ago. Everything seems OK, but I am not able to log in graphic mode as root (message - unknown user). It is something new in F10 ?
Usually, in previous versions of Fedora I had no such problems. I log in root only the first time, to set all my components (grub, yum, net, etc) and after that I remain in the normal user mode.
Any Idea of what is happening ? Thank you !
 
Old 11-26-2008, 05:59 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
In F9 they added the nag screen and in F10 they blocked the GUI root log in. You can do anything you need to by using either the system tools (which will ask for root PW) or by opening a terminal and using su - (su space dash) to become root within the terminal. If you are using the su - method you can use the gui tools by calling them from within the terminal. For example you can start an instance of nautilus this way with root privileges to find, open, and edit config files.
 
Old 11-26-2008, 06:11 PM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Are you sure that root log-in cannot be enabled from System > Admin > Login screen?
 
Old 11-26-2008, 07:53 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Or you can just by-pass the login screen and start your "root" session directly as a second X-session.

1) Log in as your normal user.
2) Press <ctrl>-<alt><F3> to open tty3 and log in as "root"
3) Do a startx -- :2 to start a new X-session for "root" on tty8
4) Do your housekeeping
5) Log out. Your "normal user" session should then be displayed.

Note: Your "normal user" X-session will be on tty7, and you can switch between the two with <ctrl>-<alt>-<F7> and <ctrl>-<alt>-<F8>.

<edit>
Oops! I just tried the <ctl>-<alt>-<F[1-6]> keys in my new Fedora 10 installation, and they didn't open the corresponding tty[1-6] terminals. So, I better retract the above comment 'till I read the "New in fedora 10" stuff. Sorry - Should have checked first.
</edit>

Note2: You can also use this method to have two (or more) users running at the same time on your system.

Last edited by PTrenholme; 11-26-2008 at 09:51 PM. Reason: Tested above. Fails in F10
 
Old 11-26-2008, 09:00 PM   #5
jpgauvin
LQ Newbie
 
Registered: Nov 2008
Location: Montreal
Distribution: RHEL 4, Fedora, CentOS, Ubuntu
Posts: 8

Rep: Reputation: 0
I have a question for you anika.ella

Usually I log on Linux as a regular user, then when required, I use the tool or the terminal as root

But I was wondering is there something in linux that you really need to log as root in the GUI that wont work if you log as a regular user and run the tools under root ?

Thanks

--Jean-Philippe
 
Old 11-26-2008, 11:32 PM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Quote:
<edit>
Oops! I just tried the <ctl>-<alt>-<F[1-6]> keys in my new Fedora 10 installation, and they didn't open the corresponding tty[1-6] terminals. So, I better retract the above comment 'till I read the "New in fedora 10" stuff. Sorry - Should have checked first.
</edit>
Haven't they moved X to ttys 1 and 2? I think I read something to that extent. Could be in my dreams, though.
 
Old 11-27-2008, 02:47 AM   #7
jiobo
Member
 
Registered: Nov 2008
Posts: 180

Rep: Reputation: 36
Quote:
Are you sure that root log-in cannot be enabled from System > Admin > Login screen?
FC10 menu items from System > Admin > are:

Add/Remove SW, Authentication, Bootloader, Date&Time, Firewall, Language, Logical Volume Management, Network, Network Device Control, Printing, Root Password, SE Linux Management, Services, Software Sources, Update System, Users / Groups.

This is from a default install of FC10.
 
Old 11-27-2008, 02:55 AM   #8
anika.ella
Member
 
Registered: Dec 2007
Distribution: Fedora 8
Posts: 64

Original Poster
Rep: Reputation: 15
I remember that in F7 or F8, there was something that I was not allowed to do as regular user with su. Or it was much more complicated (if I am not wrong, I tried to edit the fstab or the yum.conf or the grub.conf. It was not allowed by the graphical regular user interface, and via the terminal it was much more unpleasant-I not even tried, I must confess.)
I will start to set up my F10 and I will tell you what is possible and what not, during that attempt.
Whish me good luck !
 
Old 11-27-2008, 03:09 AM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
If you had opened a terminal, type su - (su space dash, not just su), entered root password, and type nautilus, you would have been running the same gui file viewer(or whatever you call it) as you would if you had logged in as root. Where a lot of people make a mistake is they assume that just becuase the terminal session is root that everything else is root too. For instance; I have seen people su -, then use the user's desktop nautilus(rather than typing nautilus in the root terminal) and then wondered why it was behaving as the user.
 
Old 11-27-2008, 03:21 AM   #10
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by jpgauvin View Post
I have a question for you anika.ella

Usually I log on Linux as a regular user, then when required, I use the tool or the terminal as root

But I was wondering is there something in linux that you really need to log as root in the GUI that wont work if you log as a regular user and run the tools under root ?

Thanks

--Jean-Philippe
I've never heard of one. You can run from the terminal as root, using sudo, or gksudo
 
Old 11-27-2008, 07:19 AM   #11
anika.ella
Member
 
Registered: Dec 2007
Distribution: Fedora 8
Posts: 64

Original Poster
Rep: Reputation: 15
OK. I test it.
It is possible to run all the commands, probably, as a normal user but having root wrights, from the terminal. The problem is that is a little more annoying. Usually, as aI said, after the first boot after installation, I enter in root mode, set up everything I need, then I will continue to work as a normal user until the next version of Fedora

But I have another problem with F10, I will create a new thread, it is about the network setup.
Thank you all !

BTW, someone sugessted an interesting Idea, I just present it to you, have not tested yet !


To login as root on Fedora 10 you will need
to su to root and the comment out this line

#auth required pam_succeed_if.so user != root quiet

in /etc/pam.d/gdm

-dd
 
Old 12-04-2008, 06:36 AM   #12
jatin
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Rep: Reputation: 0
Anybody has marked that if you logged in as ordinary user in fedora 10 and try to run su root ... you can not run some commands suppose do this

log in as a ordinary user try to su roo your prompt will be changed to [root@user]

now run "nautilus --browser" you will get this Error

-----------------------------------------------------------
(nautilus:4382): Eel-WARNING **: GConf error:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
-------------------------------------------------------------

Infect it should open file browser as root

but file browser will open as ordinary user


What it could be....??????

anyone facing this problem.... does anyone knows the solution ..if yes please post it here


Thnx

Regards
 
Old 12-04-2008, 02:13 PM   #13
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Try su - (su space dash) and see if you get the same result. Did you do a fresh install? or upgrade a current install?
 
Old 12-06-2008, 03:49 AM   #14
jatin
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by lazlow View Post
Try su - (su space dash) and see if you get the same result. Did you do a fresh install? or upgrade a current install?
---------------------
I've upgraded using preupgrade from fc9 to fc10


I've tried su - ... the things remains same ...
 
Old 12-06-2008, 11:24 AM   #15
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
The problem is most probably a failed yum upgrade. There is a reason that they still suggest doing a fresh install. People hate to hear it, but a fresh install is (in most cases) the easiest, fastest, and safest, method of upgrading. Everyone thinks that they will save all this time by just upgrading a running system. Two things generally happen. 1. Something obviously fails (as in your case) and they spend an inordinate number of hours trying to fix it (and usually wind up doing a fresh install in the end). 2. The upgrade appears to be completely successful but in reality a number of tiny things are off just enough to slow down the machine. I cannot tell you the number of times I have done a fresh install on a machine and the owners are SHOCKED at how much faster it is. Goofy problems tend to just disappear with a fresh install.
 
  


Reply


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
UNABLE TO LOG INTO FEDORA 9 UPGRADE 64bit ironhorse99 Linux - Newbie 43 12-26-2008 08:42 PM
Unable To Log In In Fedora 8 Upgraded To 10mbps Hd Mode deb1bhu Linux - Networking 2 11-02-2008 03:46 AM
Unable to log in as root in suse 9.1 ajaykumarns SUSE / openSUSE 5 11-01-2005 11:08 PM
Unable to log out of Gnome on Fedora Core 3 youdontknowme Linux - Software 2 02-15-2005 04:10 PM
Fedora core 3 will not allow me to log in as root RonCum Fedora 2 11-25-2004 09:57 AM


All times are GMT -5. The time now is 04:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration