Hi, I was simply trying to makesudo zypper refpasswordless. As I remember to have done this with yast-sudo before, I installed the yast2 addon and made the change.
I don’t know if it’s me forgetting the right recipe or what, after I made the change, my sudo commands were limited to ‘zypper ref’ only. I couldn’t do things like sudo cat /etc/fstab. It would respond something like " ‘cat’ is not in the list of permitted commands with sudo".
Then I deleted the sudo rule in yast2-sudo (which had been empty before I adding any rule).
Now the symptom becomes: sudo with my username is not possible at all. It says my username is not in the sudo group.
I compared sudoer files/configurations to my other OSS TW installation. The working installation has no /etc/sudoer file and its folders and files at /usr/etc/sudo* are exactly the same with the problematic system.
I did not know this, I thought auto refresh is for when you open yast2 software management.
What if I want to add ‘zypper dup’ in the passwordless command list. I’d like to know how it’s done.
It was not hard before, using yast2-sudo. Did something change?