On Fri, 4 Nov 2022 20:42:42 -0300, Marco Calistri <PY1ZRJ@outlook.com> wrote:
I used the suggestion posted on factory:
# visudo -f /etc/sudoers.d/user
Defaults targetpw # Ask for the password of the target user ALL ALL=(ALL:ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
Those two lines suggested as the contents of /etc/sudoers.d/user , were in the old default, unedited /etc/sudoers before the recent update of Tumbleweed, which removed them if sudoers had not been modified. They serve, as the comment says, to allow you to use sudo while providing the root (or whatever user) password. It is my understanding that that is not a preferred setup for sudo, and the rationale for it was so that on a new install, sudo could be used before it was properly configured for the admin user(s). In cases where it is undesirable to specially configure sudo, I guess the suggestion is a good solution. But, if you configure sudo for the admin user, they can use their own password, and those two lines are not needed, and in fact they might have to be removed in that case (I don't know. Read the docs.) For my own configuration, I have always commented out those two lines in /etc/sudoers and un-commented the line allowing wheel group members to execute commands (separately adding myself to the wheel group, of course). In the past, I needed to enable keeping my Locale in the environment, but that may be the default now. -- Robert Webb