Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
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.
I am running Linux Mint 3.1 off of a flash drive and am having trouble logging in as root at the login screen(Not Terminal/Shell). I understand that because it is derived from Ubuntu that you are not supposed to be able to do this. I understand the consequences and am willing to take the risks. I do not want to use the sudo commands, this is not what I am asking. It has been done and I am trying to figure out how. If you can help I would much appreciate it; thank you in advance.
p.s. Sorry for being so anal but everywhere I go people go on about how not being able to login to root is a good thing, and frankly they tend to get off topic and I never get answers. LQ has been very helpful in the past and I hope that you can help.
Try "sudo su -". It will do the same thing as logging in as root.
I understand what the sudo commands do and how to use them, and I have. I DO NOT want to use the terminal, I use it all the time and someone on another forum figured out how use the login screen to become root using a GUI, I may sound like a noob but this is what I am looking for. If u can help I would greatly appreciate it. Thanks.
1) Login as the regular user and open a terminal and run the command stated above
Code:
user@mint$ sudo su -
2) Once in the root shell assign a password to root
Code:
root@mint# passwd root
OR
Just do it with sudo
Code:
user@mint$ sudo passwd root
The fact that someone told you to "sudo su -" should have been enough for you to realize "hey once I'm in the root shell I can assign a password to root and be able to login!"
Also it took me 2 seconds to find this on google by typing "root account Ubuntu" (it was the second link)
as you know the root account is disabled by default but it is enabled in terminal so now I tried bypassing the default setting...
open terminal with normal user account..
type
$ sudo su -
and give the password
now terminal comes in root mode
#
now type
# pkill gdm
now u enterd into a text mode login
again login as normal user
then do
$ sudo su -
give passwd
now type
# startx
this will make u login as root graphically
I understand that because it is derived from Ubuntu that you are not supposed to be able to do this. I understand the consequences and am willing to take the risks.
That's good because, let's make it clear, what you want to do does go against a lot of knowledgeable people's advice. Still, if you are making an informed decision then that's fine. I trust you have a good, robust root password?
That's good because, let's make it clear, what you want to do does go against a lot of knowledgeable people's advice. Still, if you are making an informed decision then that's fine. I trust you have a good, robust root password?
I'll add here, that when I was using Ubuntu, 9.04 that in addition to setting the root password I still had to configure gdm to allow me to login as root from the login window. Without the second part I was only able to login as root from the terminal. Allowing graphical root login was done in Ubuntu under:
System --> Preferences/Administration (I can't remember which) --> login windows --> allow administrator logins (or something to that effect, it didn't say root, it said "administrator").
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.