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.
I changed in /etc/passwd the root user in /bin/false. But i forgot to give myself root rights and i can't become root anymore. The server is in my networkcentre and is it possible for me to become root again? I know the root password ofcourse and i can login with my normal user (ssh).
Have you set up sudo on the server for yourself or any other user. If you have you should be able to login to the server as that user then give the command
prompt> sudo vi /etc/password
and give your user password when asked.
I think this should work, as I don't think it depends on the root entry in the password file although it depends on sudo having been set up.
If that does not work you can try su ie
root > vi /etc/pasword
However I think that this does depend on the password entry for root so it may not help much.
If these both fail then it will probably mean that you will have to boot the server into single user /rescue mode and make the changes from there.
Wouldn't it be safer just to pick a password that no one else knows for root ?
Hi Again again,
Hit the wrong key on the last post -
My previous reply assumes that you changed the shell in the password file for /bin/false to prevent anyone logging in as root. ie changed root:x:0:0:root:/root:/bin/bash
The permissions on '/bin/bash' are correct they don't need to change.
If neither of the previous suggestions work then no user will be able to correct it and you will have to boot into rescue/single user mode