(07-03-2021, 11:14 PM)Line Wrote:normally debian and fedora uses different password for user and root, meaning both are activated. not in mobian though.(07-03-2021, 04:00 PM)KC9UDX Wrote: Can't you remove the user from the sudoers file? Or uninstall sudo?Not on Mobian, cause it will permanently lock you out of the root account. On Mobian we need to find a way to set a different password for sudo, or set a user account password different from the screen unlock PIN-code. On Manjaro it might be easier to just disable all sudo privileges, but I haven’t had any luck with neither just yet.
short background info: "sudo" gives temporary root user priviledges with user's password. if root user is activate then "su" gives root user access but you need to give root user's password and not ordinary user's password.
solution might be that you activate root account and you use "su -l" command. how to activate root account ...
Code:
$ sudo su -l
(give user password)
# passwd
(give new password, this will activate root account)
after this you could disable user account in /etc/sudoers (or similar) file. this method may still have serious caveats.
edit: you don't need to edit sudoers file, "deluser mobian sudo" is enough, be careful about that command because typo may mean serious side effects.