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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
There is one part of the question there is no information on, are you trying to disable root logins completely, from SSH or at console? And this can only be to direct root logins, someone has to have an account that can sudo or something else you are locking yourself out and in the end at console an experienced enough user could easily by pass most possible ways of disabling root.
Say i put PermitRootLogin No in sshd_config.
and user logged in through su.
Now he can run root-leel commands?
Why it is considered safe?
Doesnt all root commands run thru that?
A user can become root with the help of su only if he knows the root password unless you decide to configure sudo to allow the users to gain root privileges without password.
So it effectively allows A user to run root level commands only if he knows the root password. Disabling direct root ssh login is often considered to be a good practice to protect the system from Bruteforce attacked which can exploit a week root password.