#11400: Create sudo configuration files for items installed in /opt (KDE, Java,
Xorg, etc.)
-------------------------+-----------------------
 Reporter:  dj@…         |      Owner:  blfs-book
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  8.4
Component:  BOOK         |    Version:  SVN
 Severity:  normal       |   Keywords:
-------------------------+-----------------------
 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 evn_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 evn_keep += CLASSPATH
 EOF
 }}}

--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/11400>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to