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 when i start up my computer, gdm shows and asks me for my username and password. I give it my username and password and it works but when i give it root and root's password it says incorrect username or password..
But i can do sudo su and then i give it root's password and it works
I can't do su - or su root
Could someone explain me what is going on here?
creep@creepy-desktop:~$ su -
su: Authentication failure
creep@creepy-desktop:~$ su root
su: Authentication failure
creep@creepy-desktop:~$ sudo su
((dont quote me on this)) I dont THINK "root" is an actualy\ user, per se, but rather, more like a permissions level or group. The whole gorup then uses the password for anything that needs root level access...
If there is an entry in /etc/passwd then that user is said to exist. Root even has it's own home direcotry.. that MUST be a real user i just can't figure out why won't it let me login.. I remember installing slackware and it said i can now login as root and it worked so it's definitely a user..
Of course root is also a user with all the privileges. As Maligree mentioned graphical log-in for root is disabled by default. It is done for your own safety. Because with root privileges you can edit any system file and even delete them. This is really dangerous and therefore root should not be used as your regular user account.
The thing with sudo and su is bit different.
When you use sudo command(ex.
Kasun@kasun~cse:~$ sudo kate
[sudo] password for Kasun:
) it asks for the current user's password.
But when you use su it asks for root password.
If you have several users with admin rights, the root password will be the last added user's password.
But you can manually change the root password.(for kubuntu goto Applications->System->Kuser)and click on root account and set a new Password.
Looks like all i had to do to enable root login was to set the password for root so i used KUser to do that and i can now login as root! YAY!
But for what reason do you feel you must be logged in directly as root? General practice is to log in under your own account, then use the console to sudo into root. This way you have much less likelyhood of running something that could damage your system as a normal user.
haha actually i just wanted to know why i wasn't able to log in as root. I'm new to linux and i want to know everything haven't you been there ? I don't actually need to log in as root but now i see why i wasn't able to