root user must not be allowed to directly login to service console
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!
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.
A better way would be to simply configure SSH (I assume you are referring to SSH when you are writing "service console") not to allow root logins. Have a look at the file /etc/ssh/sshd_config, there you should find an option PermitRootLogin, set this to no and restart the SSH-server.
Keep in mind that your user has to be in the wheel-group on most systems to be allowed to use su to become root.
You might be able to use /etc/security/access.conf for this. Although I'm guessing since I don't know what you are talking about when you say "service console", and I suspect no one else is going to know what you mean by that either. You don't say what version of Linux you're using.
Sticking "service console" in to Google gets hits refering to the VMWare ESX Service Console, is that you're refering to?