Is there any single way to disable Yast Password prompts? I’m the only user of Desktop (Opensuse Leap 15.5), and no one else accesses machine. I often (very often) need to perform system operations - Yast do that but it burns the life with every-time asking password.
Is there a way to disable Yast Super User Password Prompts? Or at-least reduce it to 1 time per login?
Thank you @hcvv . Actually I’m a web developer and I need to refer to Yast often for software management, configurations of servers and virtual machines and lot more. I really use Opensuse for Yast managements.
Keeping Yast should be the option, but unwillingly one would try to quit and window after its operation is done - that’s why it is a routine to close it soon after task is done.
@marel Thanks for your response. I admit your warns regarding “Knowing What I Am Going To Do”.
Can you please provide a snippet or shell command to run to get out of it? yast2 is located in /usr/sbin/yast2. Also, since I use NOPASSWD in sudoers, that doesn’t work - since running with sudo drops it to command line interface and --gtk or --qt seems to be ignored.
Great, it finally worked with a combination of passing DISPLAY and XAUTHORITY.
Wrapping up, it works as 0) NOPASSWD in sudoers, 1) sudo --preserve-env=DISPLAY,XAUTHORITY yast2 --gtk.