Allow User to Launch GUI based YaST Without Password

Note that this is not for security conscious user. If you are concern about security, you can skip this post :)

To allow GUI based yast2 to run without password, create yast2 file in /etc/sudoers.d with the following content:

Defaults env_keep += "DISPLAY XAUTHORITY"
tux ALL = NOPASSWD: /sbin/yast2

With the above file created, when user tux will be able to launch graphical yast2 with the following command
# sudo yast2

You can then create a shortcut in your desktop that call sudo yast2

Enjoy!!! 

Comments

Popular posts from this blog

SLES 15 LVM + XFS Without Separate /boot Partition

pfSense and scp

ldapsearch over ssl (ldaps) to Active Directory