![]() Registered Member ![]()
|
If I remove myself from the wheel group, won't that prevent me from using sudo? Are there similar ramifications if I remove /etc/polkit-1/rules.d/50-default.rules ? (And what does that file do exactly?)
|
![]() ![]()
|
> If I remove myself from the wheel group, won't that prevent me from using sudo?
No. Yes. Depends on the sudoers file. Not in general. Usually not. journalctl will start asking for passwords, but I assume that's gonna happen as well when removing /etc/polkit-1/rules.d/50-default.rules Right now, that file should only move users in the wheel group into the admin category. Preventing that will (should unless bug) make polkit ask for the root password rather than the user password. |
![]() Registered Member ![]()
|
I used a test account, and it was unable to sudo unless it was in the wheel group.
What if I leave things as they are? Would any other programs apart from gparted use the "user" password instead of root's? I'm not particularly fussed if gparted can be run with minimal authentication, but there might be others? I'm not sure if I'm looking in the right area, but `/usr/share/polkit-1/actions` contained the following files. None of the processes looked particularly sensitive?
|
![]() ![]()
|
That means your sudoers contains an uncomment "%wheel" line but no configuration for the particular user, sth. like %wheel ALL=(ALL) ALL You could just as well %sudo ALL=(ALL) ALL and add yourself to sudo or use sparhawk ALL=(ALL) ALL for your actual login only. There's no hard restriction for a "wheel" group whatsoever.
you may try "pkexec xterm" - you'll likely be asked for the user password... and have a rootshell =) |
![]() Registered Member ![]()
|
This particular example didn't work, I got
However, I take your point, and I'm not going to risk something similar being compromised.
I tested the latter on my test account, and it seems to work well. I only have need for one sudo-capable user, so I'm happy to manually specify the users like this. However, I'm a little confused now as to what I'm doing, with reference to your earlier post, quoted here:
So I've now manually given myself root access as above. Given that you've suggested that there are some potential problems if I remove myself from wheel, should I just remove /etc/polkit-1/rules.d/50-default.rules instead? |
![]() ![]()
|
Missing environment setup, but that's indeed no general hinder (not even for xterm, just requires some env exports)
That's a misunderstanding. There was a bug (and may still apply) that made polkit fail if it had to ask for the root password - for *any* reason. Be it that you're not in the wheel group or that the wheel group is not considered "admin" by polkit. If this bug hits you, you cannot use polkit by providing the root password. If it doesn't there's no problem in any way making polkit ask you for the root password (be it removing yourself from %wheel or removing that polkit config snippet) |
![]() Registered Member ![]()
|
Thanks for that. I've removed myself from wheel, and gparted appears to work fine now, asking for root's password. Just to confirm, is this confirmation that the bug didn't hit me, and I should be fine from now on? Thanks again for all your help. |
![]() ![]()
|
Yupp. Polkit would just have stalled otherwise. |
![]() Registered Member ![]()
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]