I couldn’t remember if exists a best place to ask this, and didn’t find one when looking.
I installed 15.1 on a brother’s PC, skipping user creation until such time as I could consult with him on the subject of passwd. Since having created one, I want to enable sudo for the created normal user account, but found no unambiguous examples of what to do in the file, or at $SUBJECT’s URL, in YaST2, or in the sudoers man page.
Will someone please provide a clear example of how to add a username to /etc/sudoers, and clarify the SDB:?
Turns out I don’t understand the purpose of sudoers. Here on brother’s 15.1/Plasma PC, simply sudo fdisk -l and typing passwd in Konsole is enough as normal user, without having more than viewed /etc/sudoers.
For openSUSE, you usually don’t need to change “sudoers”. Anyone can use “sudo” provided that he/she knows the root password.
If you uncomment that line about “wheel”, then anyone in the “wheel” group can use “sudo” with their own password (no need for the root password).
I have experimented with adding: DISPLAY XAUTHORITY SSH_AUTH_SOCK
to the list of environment variables passed through. That allows me to use GUI applications with “sudo” and to use my public key (registered with “ssh-agent” to doing “rsync” between systems as root. But, except for the testing, I’ll probably never use it. It’s not my normal way of doing administrative things.