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.
OK, this has got to be one of the dumbest mistakes ever made... in an attempt to secure my Centos 5.3 server I brilliantly go into it and turn off root access by editing /etc/ssh/sshd_config "PermitRootLogin no" restart sshd - cool no root access! EXCEPT,
I thought I had created another user and given him root access. WELL, as far as I can tell there is no root, no sudo, no _power_ over anything now!? I cannot login as "root" or "username". I have a cPanel user with access to his owned files, but no su privileges.
Is there a way to revert to a backup of the ssh_config file? Or something? MAN, did I hose this thing or what?
On the upside, it's a whole lot harder for a hacker right?
If you have any backups made via your CPanel, then you can restore your home directory and everything that goes with to a state before your light-hearted changes. Such mistakes usually cost $$$$, so be prepared to hire someone at the server's location to correct the mistake, if no backup tarball is available.
Well, it turns out I'm not as stupid as I thought... OR STUPIDER! (if that's a word?)
I actually accomplished what I set out to do: login is only possible as my super secret user, using a strong password.
This user is crippled to only his files.
Then su CAN be accomplished as root with an even stronger/longer password.
Therefore, I have added an extra layer of protection to root access. That was my intention and it works.
THANKS to all for holding this newbie's hand... like I said it's an educational process!!!
No - killed that user. It's actually a user created with cPanel with shell access. cPanel can create users with su powers... that's what saved the day. Sorry if I am not being too clear, can't say I have a good handle on it myself, but it works. The only actual user with UID=0 is root, but root cannot login directly.