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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Quote:
creep@creepy-desktop:~$ su -
Password:
su: Authentication failure
creep@creepy-desktop:~$ su root
Password:
su: Authentication failure
creep@creepy-desktop:~$ sudo su
root@creepy-desktop:/home/creep#
((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.
Code:
sudo kate
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.
Code:
Kasun@kasun~cse:~$ su
Password:
root@kasun~cse:/home/Kasun#
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.