LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I am not able to Login as a root in my fedora 11 machine (https://www.linuxquestions.org/questions/linux-software-2/i-am-not-able-to-login-as-a-root-in-my-fedora-11-machine-788454/)

nkjha 02-11-2010 08:33 AM

I am not able to Login as a root in my fedora 11 machine
 
Hello all,

I am not able to Login as a root in my fedora 11 machine , but I can login with other user. when I login with as a root user the error occured "user authentication failed " .
After login with user account when I open Terminal and try to login with same
username = root and Password= admin then I can login .
have you any idea about this ,Please reply .

Thanks a lot .
Nk

ronlau9 02-11-2010 09:42 AM

Quote:

Originally Posted by nkjha (Post 3860330)
Hello all,

I am not able to Login as a root in my fedora 11 machine , but I can login with other user. when I login with as a root user the error occured "user authentication failed " .
After login with user account when I open Terminal and try to login with same
username = root and Password= admin then I can login .
have you any idea about this ,Please reply .

Thanks a lot .
Nk

To login as root is disabled in Fedora for very good reasons.
But if you insist to compromise you're system , this question is ask and answersed many times even on this forum .
So search for it

udaykiran 02-11-2010 09:52 AM

@nkjha

For security reasons root logins are disabled in fedora since version 9 onwards, Though i would insist of not doing root logins. Still there is a way you can do it.

Login using your normal account
change to root from terminal with the command su
Then edit the default runlevel of the system in the file /etc/inittab

At the bottom find
id:5:initdefault:

change that to
id:3:initdefault:

then reboot your system and you will now have a tty based login. Enter your root credentials. After logging in type command startx and you will be in.


If you would want your server to be secure do not stay logged in with root account. Just incase you have to do some administration works, do it and logout immediately.

Regards,
UdayKiran.

nkjha 02-12-2010 07:20 AM

Actually I installed "the Gnome display manager"
for resolving some Gnome problem after that I was unable to
Login as root user .

But Now I am able to Login as root in GUI mode as earlier before
this problem .For resolving this I enable root login .

Thanks a Lot
nkjha



Quote:

Originally Posted by udaykiran (Post 3860396)
@nkjha

For security reasons root logins are disabled in fedora since version 9 onwards, Though i would insist of not doing root logins. Still there is a way you can do it.

Login using your normal account
change to root from terminal with the command su
Then edit the default runlevel of the system in the file /etc/inittab

At the bottom find
id:5:initdefault:

change that to
id:3:initdefault:

then reboot your system and you will now have a tty based login. Enter your root credentials. After logging in type command startx and you will be in.


If you would want your server to be secure do not stay logged in with root account. Just incase you have to do some administration works, do it and logout immediately.

Regards,
UdayKiran.


smithy2010 05-08-2010 01:40 PM

you can try this:

gedit /etc/pam.d/gdm

or

vi /etc/pam.d/gdm

and then add # in fornt of the to look like this:

# auth required pam_succeed_if.so user != root quiet

it works on Fedora 11 and 12

cheers


All times are GMT -5. The time now is 07:06 PM.