Reset root password in console, still the same in GUI
UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Reset root password in console, still the same in GUI
I have a machine here which came with Ubuntu pre-installed and unknown root password.
During initialization my colleague entered one user name and password and this is the password what is asked during administrative tasks in the GUI.
I have reset the root password in the console in single user mode. That worked fine, I now know the root password and can become root.
However in the GUI, the original password is still needed for admin tasks, NOT the root password. How do I tell Ubuntu that the root password is needed for that?
I just want to have a normal Linux machine with users (no privileges) and a root (with privileges) for both the command line and the GUI. Like it is now, is way too fuzzy. I tried too google as well, but with the search terms I use I only get directions how to change the root pwd.
don't fight against it, work with it. if you don't like the sudo model that ubuntu uses, i'd say don't use ubuntu in the first place. sure it's different, but for the market they are targetting, it makes a lot of sense. you can open a terminal and su to root if you wish, but it's all the integrated updates and things will always use sudo, and trying to hack all that out is just never going to be worth the hassle.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Original Poster
Rep:
Very clear and so true, but I had hoped it was different. I am sure Ubuntu has its advantages (the markets show that), but it just doesn't appeal to me.
Like I said, Ubuntu came pre-installed that is why I use it. I will have to decide whether to adhere to a second (Ubuntu) standard, or that we will install Debian to retain a single standard on the Linux machines.
Ubuntu uses sudo and gksudo for administrative functions, with the root account disabled by default. When you set the root account (presumably using passwd?) you enabled the root account and can login as root, but the GUI is asking you for the user account's password because that's how gksudo functions--regardless of what distribution it's sitting on.
Until somebody creates something akin to aliases for the GUI you're pretty much stuck using your user account's password at the GUI and not root's. Unless you feel like editing a buch of .desktop files and adding the -u root option. Or, open another X session and login as root.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.