LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   " Root Logins not allowed" centOS 5.2 (https://www.linuxquestions.org/questions/linux-newbie-8/root-logins-not-allowed-centos-5-2-a-755942/)

yashgoley 09-17-2009 10:45 AM

" Root Logins not allowed" centOS 5.2
 
Hi All,

i have install new centOS 5.2 machine with "Gnome" ,but when login it gives error "root logins are not allowed"

i am facing this issue first time.

i have gone through many threads in many forums.
all are about not to use root login due to security thread.

but not getting the right solution to enable root login.

lutusp 09-17-2009 11:19 AM

Quote:

Originally Posted by yashgoley (Post 3687128)
Hi All,

i have install new centOS 5.2 machine with "Gnome" ,but when login it gives error "root logins are not allowed"

i am facing this issue first time.

i have gone through many threads in many forums.
all are about not to use root login due to security thread.

but not getting the right solution to enable root login.

If this message appears while you are trying to log in from a normal desktop graphic display, it means you cannot log into a GUI desktop as root. The solution? Don't try to log into a GUI desktop as root.

If this message appears while you are trying to access the system via SSH or Telnet from a different system, it means you cannot log on as root from anything but a local terminal. This is a security precaution.

So please tell us the circumstances. Don't be vague.

1. Where are you when you see this message? On the system or on a different system?

2. Does this message appear during graphic login, or from a shell?

3. Why do you want to get around this obvious security feature?

TB0ne 09-17-2009 11:21 AM

Quote:

Originally Posted by yashgoley (Post 3687128)
Hi All,

i have install new centOS 5.2 machine with "Gnome" ,but when login it gives error "root logins are not allowed"

i am facing this issue first time.

i have gone through many threads in many forums.
all are about not to use root login due to security thread.

but not getting the right solution to enable root login.

How are you trying to log in? Via SSH, Telnet, FTP, or at the console?

~sHyLoCk~ 09-17-2009 11:21 AM

You can enable by using
Code:

sudo passwd root

nuwen52 09-17-2009 11:36 AM

If you are logging in from the graphical login and getting this error, you need to go to:
system -> Administration -> Login Screen
And under the security tab, make sure "Allow local system administrator login" is enabled.

If from text, what shylock said should work. If these aren't the answer, please let us know what way you are using to log in.

But, it is probably better to log in as yourself and then run whatever you need to do as root through an "su" or an "sudo".

yashgoley 09-17-2009 12:23 PM

thanks for u all,

i simply trying to login from graphical login screen just after system boot( or u can say runlevel 5).it's a fresh installation.
>not from shell,ftp,ssh or any other mode.

and i have installed many times same way, but didn't get any issue.

so wt can be the issue.

to newen52>

there is no Login Screen tab in System>Administration
i am using centOS 5.

j_jerry 09-17-2009 12:29 PM

Edit the /etc/gdm/gdm.conf file

In the [security] section of the file, add the following line:

AllowRoot=True

If there's no such file or line in that file do this :

edit /etc/pam.d/gdm and change the line:

auth required pam_succeed_if.so user != root quiet

to

auth required pam_succeed_if.so user quiet

yashgoley 09-17-2009 12:39 PM

2 Attachment(s)
there is no file like

/etc/gdm/gdm.conf

please follow snapshots

j_jerry 09-17-2009 12:40 PM

Quote:

Originally Posted by yashgoley (Post 3687257)
there is no file like

/etc/gdm/gdm.conf

See my previous post, I've edited it

yashgoley 09-17-2009 12:53 PM

1 Attachment(s)
no file like

/etc/pam.d/gdm

see snapshots

j_jerry 09-17-2009 01:05 PM

from terminal command: sudo gdmsetup

yashgoley 09-17-2009 01:17 PM

nopes

j_jerry 09-17-2009 01:25 PM

what? nothing's coming up when gdmsetup is entered. huh ?

use command ls -al /etc/pam.d and post the complete screenshot of terminal.

which version of gnome is that ?

nuwen52 09-17-2009 01:48 PM

Ok, I'm using CentOS 5.3. I didn't think it would be that different. So, I ran the program and checked which process the menu option started. Try running gdmsetup.

chrism01 09-17-2009 07:09 PM

As lutsp said, root login from GUI is disabled for a (security) reason. It's not recommended to enable it.
You can do anything you need at the GUI by selecting the relevant menu option; if you need root, it'll ask for the root passwd.
You can also do it from the cli by doing

su -

and supply the root passwd at the prompt.


All times are GMT -5. The time now is 04:02 PM.