Hello, I want to completely lock the root account
account, similar to how it is done in ubuntu.
What I have already done:
- added the user to the wheel group
sudo usermod -aG wheel username - changed
/etc/sudoers
I un commented the line
%wheel ALL=(ALL) ALL
I commented out two lines
I added a line at the end of the ‘Defaults specification’ section.# Defaults targetpw # prompt for the password of the target user, i.e. root # ALL ALL=(ALL) ALL # WARNING! Only use this with 'defaults targetpw'!
## Defaults specification Defaults env_keep += "DISPLAY XAUTHORITY"
3 . Changed the authentication rules via PolicyKit, created a rule /etc/polkit-1/rules.d/40-default.rules
polkit.addAdminRule(function(action, subject) {
return ["unix-group:wheel"];
});
- created the file
/etc/xdg/kdesurc
with the following contents:[super-user-command] super-user-command=sudo
When I change the networking settings via NM I am still prompted for the root password.
Elsewhere, it prompts for the user’s password i.e. when starting yast
What else did I forget to do?
Operating System: openSUSE Tumbleweed 20230318
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.6-1-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 15.5 ГиБ of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Manufacturer: HP
Product Name: HP ProBook 450 G4