LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 01-08-2012, 11:37 PM   #1
laukik
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
how to login using root in fedora 16


I used the method by putting comment i.e. # before auth...user!=root.. in "gdm" and "gdm-password"
But i was unable to save the file by "ESC :wq"
I tried using vi editor and even gedit but i can save it..:-(
It says its readonly file..

HOW TO SOLVE THIS PROBLEM ???...
 
Old 01-09-2012, 12:20 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 189Reputation: 189
Were you trying to edit the files as root?
either use sudo and your user password
Code:
sudo vi the_file
or use su with the root password you set during install
Code:
su -c "vi the_file"
That being said, there is a reason root GUI logins are disabled by default, and they are good reasons.
It dramatically reduces the security of your system, and increases the risk of accidental "operator errors", and it is generally accepted as being a bad idea.

Last edited by fukawi1; 01-09-2012 at 03:28 AM.
 
Old 01-09-2012, 03:24 AM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 13,051

Rep: Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741
you do not

If you know how to boot into the gui in fedora as root, you would KNOW WHY you do not do it .

you NEED to have root permissions to save that file
( you need to be root to do it )

also BE WARNED there are a lot of things that will be broken by using the " pam hack"
it is NOT recommended .You would NEED to log out of root and re-login as a normal user for some things anyway
 
1 members found this post helpful.
Old 01-12-2012, 04:47 PM   #4
MartinStrec
Member
 
Registered: Jan 2012
Location: Czech
Distribution: Fedora, RHEL, Ubuntu, Mint
Posts: 110

Rep: Reputation: 13
There is no need to be logged as 'root' in GUI. Specially due to many security risks.

Nearly all "admin" commands (firewall, network, etc.) ask you for root password if necessary.

If you need edit files or do any operations such as root, open terminal and use
'su' (switch user command)
and type root password. Now the terminal is running under the root.

If you need just a simple command to do, use sudo as 'fukawi1' has already written.

Last edited by MartinStrec; 01-12-2012 at 04:49 PM. Reason: wrong name of the user - citation
 
1 members found this post helpful.
  


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
[SOLVED] Fedora 12 root login rewards Linux - Newbie 7 04-25-2011 04:44 PM
How to login in root in fedora 10 KapilSatav Linux - Wireless Networking 2 08-06-2009 06:50 PM
can't login to root fedora 10 podizoid Linux - Newbie 6 02-13-2009 07:37 PM
Root login on Fedora 10 danie1 Linux - General 2 01-22-2009 04:30 PM


All times are GMT -5. The time now is 08:13 AM.

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