﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
11400	Create sudo configuration files for items installed in /opt (KDE, Java, Xorg, etc.)	DJ Lucas	DJ Lucas	"The sudo environment now has an /etc/sudoers.d directory. This should be populated instead of automating edits of /etc/sudoers. Additionally, environment variables that should be preserved for a program to run as the superuser, should be updated using the same mechanism.

Some examples:
{{{
## Sudo
cat > /etc/sudoers.d/sudo << ""EOF""
Defaults secure_path=""/usr/bin:/bin:/usr/sbin:/sbin""
%wheel ALL=(ALL) ALL
EOF

# QT
cat > /etc/suoders.d/qt << ""EOF""
Defaults env_keep += QT5DIR
EOF

# IF KDE is installed in /opt
cat >> /etc/sudoers.d/qt << ""EOF""
Defaults env_keep += QT_PLUGIN_PATH
Defualts env_keep += QML2_IMPORT_PATH
EOF

# JAVA
cat > /etc/sudoers.d/java << ""EOF""
Defaults env_keep += JAVA_HOME
Defaults env_keep += CLASSPATH
EOF
}}}
"	enhancement	closed	normal	8.4	BOOK	SVN	medium	fixed		
