LinuxQuestions.org
Review your favorite Linux distribution.
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 10-21-2011, 01:39 AM   #1
davejjj
LQ Newbie
 
Registered: Oct 2011
Posts: 19

Rep: Reputation: Disabled
Fedora Headache


When GRUB is tabbed and 'a' brings up "rhgb quiet" and you then modify that line, that seems to be a 'one-time' temporary modify, right? It seems temporary. If I add a 3 it boots to a non-GUI terminal mode and allows me to log in as root. But as root I could not figure out how to mount a usb drive. I could see the usb drive in /dev but mount said it didn't exist. Also I could not add a GUI user because I could not find crypt to generate a password. Also I could not log into the GUI as root or as a password-less user -- so I had to reinstall just to create a non-priviledged user. Now it tells me that user is not in the sudo file! So now I have to go figure out how to modify this sudo file...
 
Old 10-21-2011, 02:23 AM   #2
bluesatbridge
Member
 
Registered: Oct 2010
Location: england
Distribution: debian , redhat
Posts: 36

Rep: Reputation: 2
comment out the line this line
auth required pam_succeed_if.so user != root quiet

in /etc/pam.d/kdm -- for kde desktop
in /etc/pam.d/gdm ---- for gnome
in /etc/pam.d/lxdm --- for lxde

to enable root login via gui

cheers
 
Old 10-23-2011, 12:01 PM   #3
davejjj
LQ Newbie
 
Registered: Oct 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
I discovered the easiest solution (for Fedora) is to create the first user and check the little box to make that user an admin. The first time I was following someone's misguided instructions which did not work too well. Thanks.
 
Old 10-23-2011, 01:24 PM   #4
thezerodragon
Member
 
Registered: Apr 2009
Location: Paris, France
Distribution: Fedora 12 Constantine
Posts: 142

Rep: Reputation: 44
Davejjj,

Is this thread solved? if so, please mark it as such. If not, you can use this guide:http://www.mjmwired.net/resources/mj...-f15.html#sudo to add yourself to /etc/sudoers
 
Old 10-23-2011, 01:51 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,239

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
do not use that pam hack

you almost NEVER need to login as root into the gui

also there are a whole host of "unintended consequences"
like not being able to update the system.


running gnome as root is a VERY BAD IDEA
it opens you up to having rootkits auto installed

we do not care one bit about YOUR computer
BUT if it becomes a "zombie" and starts attacking us
THEN WE DO CARE !!!



back in fedora 11 the root gui login was DISABLED
not only in fedora , but Gnome ALSO disabled it
so two groups disabled the root gui login

That ought to tell you something .

Last edited by John VV; 10-23-2011 at 01:53 PM.
 
Old 10-23-2011, 04:21 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
To add a user to sudo, use 'visudo' as root user.
http://linux.die.net/man/8/visudo
http://linux.die.net/man/5/sudoers

For a passwd, either eg
Code:
passwd username
<repeat passwd at prompt>
or
Code:
echo newpassword |passwd --stdin username
both as root

Last edited by chrism01; 10-23-2011 at 04:24 PM.
 
Old 10-24-2011, 01:37 AM   #7
bluesatbridge
Member
 
Registered: Oct 2010
Location: england
Distribution: debian , redhat
Posts: 36

Rep: Reputation: 2
thanks john for pointing that out

regards
 
Old 10-24-2011, 01:17 PM   #8
davejjj
LQ Newbie
 
Registered: Oct 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Ok, well I don't really know what the "admin" checkbox does. Is it the same as adding the username to the sudoers file or does the admin group have root privileges?
 
Old 10-24-2011, 01:46 PM   #9
thezerodragon
Member
 
Registered: Apr 2009
Location: Paris, France
Distribution: Fedora 12 Constantine
Posts: 142

Rep: Reputation: 44
Quote:
file or does the admin group have root privileges?
I imagine it adds the user to the sudoers file at best. John pointed out all of the resons why, and as far as I know you can never log into the GUI as root. I would think that this extends to not granting default root privileges to GUI users.

Last edited by thezerodragon; 10-24-2011 at 01:47 PM. Reason: typo
 
Old 10-24-2011, 02:39 PM   #10
davejjj
LQ Newbie
 
Registered: Oct 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
For a passwd, either eg
Code:
passwd username
<repeat passwd at prompt>
or
Code:
echo newpassword |passwd --stdin username
both as root
Yes, I didn't think of using passwd at the time because something said to use "crypt."
 
  


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
Install headache pompeyjohn Linux - General 11 11-03-2005 09:00 AM
Major Headache with Fedora 2 to 3 Upgrade using U2date atko Fedora 6 12-20-2004 06:36 PM
Help im so new i have a headache jjh221 Linux - Newbie 3 02-11-2004 09:02 PM
Trying to compile QT....(Headache...) Megamieuwsel Linux - General 2 10-17-2003 09:12 AM
headache... katana Linux - General 2 08-02-2001 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:50 AM.

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