I can't login as root...
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:
Kubuntu 8.10 KDE 4.2.1 |
((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..
any ideas..? |
Whatever distro you're using (looks like something Ubuntuish) obviously the root account is "disabled". If you want to activate it, run..
Code:
sudo passwd By the way, graphical login for root is disabled by default. |
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 But when you use su it asks for root password. Code:
Kasun@kasun~cse:~$ su But you can manually change the root password.(for kubuntu goto Applications->System->Kuser)and click on root account and set a new Password. hth :) |
One question. I was looking at the /etc/shadow file and i see that the password for root is '!'.. what does it mean? Doesn't '*' mean no password?
Quote:
|
In the *buntu family, root is not allowed to log in graphically.
Also, to change to root you will have to type in Code:
sudo su |
SkinnerC is half right, when using sudo the password you should be entering is your password.
|
Quote:
If you're using Ubuntu you could always: sudo su Enter your password This should give you a # root terminal Then do: passwd enter a password you want for root Log out and login with root and the password you just set. |
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! :)
|
Quote:
|
Quote:
|
Quote:
You are misguided. A quick search will explain why. Good luck. |
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 :)
Cheers! |
|
All times are GMT -5. The time now is 07:26 AM. |