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 just installed Ubuntu on an old laptop and began the process of creating a user account for me and my girlfriend. Apparently Ubuntu doesn't come with a root password and ships instead with one standard account with sudo privileges.
I needed sudo privileges for my account as well so I edited /etc/group and added my username to the admin group. I fudged the line and left out the trailing colon that should be at the end of the entries - This has rendered the system useless when trying to do anything privileged because neither accounts have access to sudo anymore...lol.
Yah. You are right. By default, your account has not sufficient privilege to execute administrative command like that.
In first step we can activate root account by setting up a password:
sudo passwd root
If you cant do this, we can edit suduers file at "sudo vi /etc/sudoers" location:
<your_username> ALL=(ALL:ALL) ALL
after adding this line and save file,
again execute this:
sudo passwd root
after setting password up, you can use su to login as a root user to do what you would.
If not, Just add your username like up to sudoers file to be able execute any command(ALL) by sudo in your normal user.
If the user can't run sudo su the he will also not be able to run sudo vi, which is by the way not the recommended way to edit /etc/sudoers, the recommended way is to use visudo.
TobiSGD, Thanks for your notation.
Yah, But sometimes just some of commands in sudoers file is restricted. I think one of them was passwd.
Ok, If Tobi is right and you dont have any access to sudo commands, use a live distro to boot up and edit sudoers file by that to add all commands to it like up.