Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I discourage the logging in as root and by default this is not allowed in some, if not all, distros using gdm (graphical interface).
But if you want to change this, you will need to edit at least one PAM (Pluggable Authentication Module) file.
Edit this file: /etc/pam.d/gdm-password and comment the following line
#auth required pam_succeed_if.so user != root quiet
so that it looks like this:
##auth required pam_succeed_if.so user != root quiet
Logout and try logging in again as root with root password.
Just be aware that when you login as root, and your computer is connected to the internet, you are wide open for a host of problems. Anyone who can access your computer does so with root authority given to them by YOU.
do not even try to use that pam hack
if you do there will be PROBLEMS!!!
if you MUST!!!! use a gui as root ( not something you want to do all the time)
but for the few times it is a time saver
USE THE TERMINAL !!! to become root IN THE TERMINAL
then launch "gedit" or "nautilus" in the TERMINAL as the root user
like this
Code:
su -
---- type in your root password when it is asked for ----
gedit
------------ or -------------
nautilus
I am able to open the file using sudo in vi editor. Inside the contents of the file '/etc/pam.d/gdm-password', I am not able to find the text mentioned by 'bigrigdriver'
DO NOT!!!!!!!!!!!!!!!!!!!!!!!!! USE THAT PAM HACK !!!!!!!!!!!!!!!!!!!!!!!!!!!!
IT WILL CAUSE PROBLEMS!!!!!!!!!!!!!!!!!!!!!!!!!
For example
say you do
and as root you want to edit something that NEEDS root permission
well a pop up will pop up and ask for the root password
but seeing as you are root THE PASSWORD will not work in the pop up
the authorizing mechanism will be BROKEN
Warning:
DO NOT USE!!!
use the the "sudo gui" program AS POSTED in post #7
"gksu"
or
use the terminal ,become root
and launch the needed program like "gedit"
fedora and a bunch of other distros have ( AND the people over at Gnome ) disabled the root login
the root gui login is BLOCKED by fedora AND by gnome
it is NOT safe to use xorg as root
so many different people have BLOCKED doing so
People! If OP insists on shooting himself in the foot, let him. Press ALT+CTRL+F2 to switch to a virtual console and type "root" as the username and enter your password. Then type the command "startx" to start the GUI.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.