LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Fedora Headache (https://www.linuxquestions.org/questions/linux-newbie-8/fedora-headache-909274/)

davejjj 10-21-2011 12:39 AM

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...

bluesatbridge 10-21-2011 01:23 AM

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

davejjj 10-23-2011 11:01 AM

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.

thezerodragon 10-23-2011 12:24 PM

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

John VV 10-23-2011 12:51 PM

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 .

chrism01 10-23-2011 03:21 PM

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

bluesatbridge 10-24-2011 12:37 AM

thanks john for pointing that out

regards

davejjj 10-24-2011 12:17 PM

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?

thezerodragon 10-24-2011 12:46 PM

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.

davejjj 10-24-2011 01:39 PM

Quote:

Originally Posted by chrism01 (Post 4506011)
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."


All times are GMT -5. The time now is 07:03 AM.