Linux - NewbieThis 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
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.
In my system , the root user is not allow to login directly , but can "su - root" by another user , I want to disable it so that root can login directlly , i tried to disable the below line in /etc/group , but still not work , would advise what can I do ? thanks
In my system, the root user is not allow to login directly, but can "su - root" by another user, I want to disable it so that root can login directlly, i tried to disable the below line in /etc/group, but still not work, would advise what can I do? thanks
unfortunately, you're not telling us what "your system" is. However, many distros don't set a password for the root account, and generally disallow login for accounts with no password. So probably all you have to do is to give root a password:
Code:
sudo passwd root
Note that root may still be excluded from GUI login, as this is strongly discouraged for various reasons. The above only allows root to log in to a console.
unfortunately, you're not telling us what "your system" is. However, many distros don't set a password for the root account, and generally disallow login for accounts with no password. So probably all you have to do is to give root a password:
Code:
sudo passwd root
Note that root may still be excluded from GUI login, as this is strongly discouraged for various reasons. The above only allows root to log in to a console.
Red Hat disables root-login for the GUI for very good reasons, and the hacks need to enable it are not safe. See this thread (ignoring the off-topic bits in the middle) http://www.linuxquestions.org/questi...-a-4175509009/
BUT
this is the very very old and antique RH5
rh5.0 was released in 1997
i am suprised that the almost 20 year old ( 18 year) hardware and OS are still working
rh5 is 4 full generations out of date and is older that Win98
this predates the redhat blocking on RHEL 7.0
on the CURRENT
RHEL 5.11
RHEL 6.6
you can login as root into the Gnome2 desktop you are sitting in front of
the first thing to do is buy hardware newer than 20 years old
then install a modern Operating system
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.