I like to use a simple password for my user account, but when I need root access I want a more complex password. Back in the old days (Mepis) we had a separate root account but apparently this isn't done any more. I know that at least one other distro does allow a separate password for root in the same account. What is the practical way to accomplish this with kubuntu?
Announcement
Collapse
No announcement yet.
How to set up a separate password for root?
Collapse
This topic is closed.
X
X
-
Code:sudo passwd
I LOVED Mepis, what a great distro it was in those days!Last edited by rab0171610; Jul 16, 2022, 12:52 PM.
- Top
- Bottom
-
Originally posted by taxpayer View Postallow a separate password for root in the same account.
if you remove your user account from the 'sudo' group, so that your simpler password is not used with admin, root level privileges to make things more secure, you will need to switch to the root account in the terminal, for command line items. For GUI password prompts, to save system level files edited with Kwrite, or to use Partition Manager, for example, this iirc will no longer work
https://help.ubuntu.com/community/Ro...r_root_account
A potential way to do this that preserves the GUI password admin functionality is to first create a new user account, (NOT named root ) and make sure it is set as an Administrator account.
Then, set your account as a Standard user, which takes it out of the sudo group. Reboot.
This should allow for working sudo password prompts in the GUI, and in the terminal one would have to switch to the admin account su - AdminUserName
Now, this still entails using the sudo command as per usual, while logged in to the terminal as that new username. So it may a bit clunky imo. But arguably more secure, and not prone to breaking things like enabling the root account will be
- Top
- Bottom
Comment
-
Originally posted by rab0171610 View PostCode:sudo passwd
- Top
- Bottom
Comment
-
Originally posted by claydoh View Post
A potential way to do this that preserves the GUI password admin functionality is to first create a new user account, (NOT named root ) and make sure it is set as an Administrator account.
Then, set your account as a Standard user, which takes it out of the sudo group. Reboot.
This should allow for working sudo password prompts in the GUI, and in the terminal one would have to switch to the admin account su - AdminUserName
Now, this still entails using the sudo command as per usual, while logged in to the terminal as that new username. So it may a bit clunky imo. But arguably more secure, and not prone to breaking things like enabling the root account will be
I'll be playing with this a bit (on my laptop) and probably set things up that way on my main desktop computer when I install Kubuntu. I'll be around here asking more questions as issues arise.
Part of the reason I'm looking forward to Kubuntu is that there seems to be a large, helpful community.
I wonder how I would mark this one "solved?"
- Top
- Bottom
Comment
-
Both on the command prompt and on Discover, the new password that I'd entered does not work, and I had to use the old, user password.
Note that setting a root password works, but is not as safe as sudo. I only use it when I am working in a virtual terminal (no desktop) for administrative things and need a root prompt for convenience. Or when sudo does not give me permission, like trying to look at EFI directory with the ls command in the terminal. I do not recommend it for the average user or those who do not have good backups to fix a mistake.
- Top
- Bottom
Comment
-
Originally posted by taxpayer View Post... the new password that I'd entered does not work...Code:su root -w DISPLAY,XAUTHORITY -lc gparted
In Ubuntu's early years, if not from its beginning, root logins were disabled, provoking lengthy, and often heated, discussions, especially by those used to logging in as root. And ever since, the controversy resurfaces occasionally.Regards, John Little
- Top
- Bottom
Comment
-
I assume that the OP wants a different password than the regular user account for administrative tasks that require elevated privileges. Generally, this is no longer how altered/elevated privileges work, esp with GUI programs that rely on sudo frontends for privileges (gksudo, kdesudo, etc). Currently sudo accepts the users personal password for privilege mainly because of how the sudo command operates with regards to the password constraints. From the Wikipedia entry for sudo:
Unlike the command su, users supply their personal password to sudo . . . rather than that of the superuser or other account. This allows authorized users to exercise altered privileges without compromising the secrecy of the other account's password. After authentication, and if the configuration file permits the user access, the system invokes the requested command. sudo retains the user's invocation rights through a grace period (typically 5 minutes) per pseudo terminal, allowing the user to execute several successive commands as the requested user without having to provide a password again.
Note that it still may be possible to run GUI programs with root privileges using one of the su front ends like kdesu or gksu, if that is even an option anymore. Whether or not that will allow you to use a different password for elevated privileges I do not know for sure as I have no practical experience with either. Feel free to research it.
- Top
- Bottom
Comment
-
Originally posted by taxpayer View PostI wonder how I would mark this one "solved?"Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Originally posted by Snowhog View PostJust return to the first post, click on Edit and select [SOLVED] from the drop down list left of the Title.
- Top
- Bottom
Comment
Comment