SUSE Studio/ConfiguringSudoers

From openSUSE

    Portal Start   FAQ FAQ   Tour Tour   Howto Howto    API API   Feddback, bugs and known issues Bugs   Support and information channels Support   Download appliances and other things Download    Display index of "Category: SUSE Studio"   How to edit this documentation


Open your preferred text editor and create a new file with the following content:


Defaults always_set_home
Defaults env_reset

Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION 
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE 
LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE"
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE  
LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE XMODIFIERS GTK_IM_MODULE 
QT_IM_MODULE QT_IM_SWITCHER"
Defaults targetpw   # ask for the password of the target user i.e. root
ALL ALL=(ALL) ALL   # WARNING! Only use this together with 'Defaults targetpw'!
root    ALL=(ALL) ALL
tux    ALL=(ALL) NOPASSWD:ALL

Save it as sudoers and add this file on the overlay section at the /etc folder. This file has to be owned by user root, group root, and 440 as Perms.

After that, make sure you have installed the sudoers rpm on the software section.




If you have finished configuring your appliance go to building appliance.

If you want to do more expert configurations, go to configuring expert.