source: src-sh/pc-extractoverlay/ports-overlay/usr/local/etc/sudoers

Last change on this file was 1dce35f, checked in by Ken Moore <ken@…>, 3 months ago

Add PCDM_SESSION variable passthrough in sudoers

  • Property mode set to 100644
File size: 4.3 KB
Line 
1## sudoers file.
2##
3## This file MUST be edited with the 'visudo' command as root.
4## Failure to use 'visudo' may result in syntax or file permission errors
5## that prevent sudo from running.
6##
7## See the sudoers man page for the details on how to write a sudoers file.
8##
9## WARNING!!!
10## Changes to this file will be lost during system updates. Please set
11## custom option files in the /usr/local/etc/sudoers.d/ directory instead.
12##
13
14##
15## Host alias specification
16##
17## Groups of machines. These may include host names (optionally with wildcards),
18## IP addresses, network numbers or netgroups.
19# Host_Alias    WEBSERVERS = www1, www2, www3
20
21##
22## User alias specification
23##
24## Groups of users.  These may consist of user names, uids, Unix groups,
25## or netgroups.
26# User_Alias    ADMINS = millert, dowdy, mikef
27
28##
29## Cmnd alias specification
30##
31## Groups of commands.  Often used to group related commands together.
32# Cmnd_Alias    PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
33#                           /usr/bin/pkill, /usr/bin/top
34
35##
36## Defaults specification
37##
38## Uncomment if needed to preserve environmental variables related to the
39## FreeBSD pkg_* utilities and fetch.
40# Defaults      env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR FTP_PASSIVE_MODE"
41##
42## Additionally uncomment if needed to preserve environmental variables
43## related to portupgrade
44# Defaults      env_keep += "PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF"
45##
46## You may wish to keep some of the following environment variables
47## when running commands via sudo.
48##
49## Locale settings
50# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
51##
52## Run X applications through sudo; HOME is used to find the
53## .Xauthority file.  Note that other programs use HOME to find   
54## configuration files and this may lead to privilege escalation!
55Defaults env_keep += "HOME DESKTOP_SESSION KDE_SESSION_UID"
56##
57## ENV to keep so xdg-open works
58Defaults env_keep += "KDE_FULL_SESSION GNOME_DESKTOP_SESSION_ID DESKTOP_SESSION PCDM_SESSION"
59##
60## X11 resource path settings
61Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
62##
63## Desktop path settings
64Defaults env_keep += "QTDIR KDEDIR XCURSOR_THEME"
65##
66## Allow sudo-run commands to inherit the callers' ConsoleKit session
67Defaults env_keep += "XDG_SESSION_COOKIE"
68##
69## Uncomment to enable special input methods.  Care should be taken as
70## this may allow users to subvert the command being run via sudo.
71Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
72##
73## Uncomment to enable logging of a command's output, except for
74## sudoreplay and reboot.  Use sudoreplay to play back logged sessions.
75# Defaults log_output
76# Defaults!/usr/bin/sudoreplay !log_output
77# Defaults!/usr/local/bin/sudoreplay !log_output
78# Defaults!/sbin/reboot !log_output
79
80##
81## Runas alias specification
82##
83
84##
85## User privilege specification
86##
87root ALL=(ALL) ALL
88
89## Uncomment to allow members of group wheel to execute any command
90%wheel ALL=(ALL) ALL
91
92## Same thing without a password
93# %wheel ALL=(ALL) NOPASSWD: ALL
94
95## Uncomment to allow members of group sudo to execute any command
96# %sudo ALL=(ALL) ALL
97
98## Uncomment to allow any user to run sudo if they know the password
99## of the user they are running the command as (root by default).
100# Defaults targetpw  # Ask for the password of the target user
101# ALL ALL=(ALL) ALL  # WARNING: only use this together with 'Defaults targetpw'
102
103## Read drop-in files from /usr/local/etc/sudoers.d
104## (the '#' here does not indicate a comment)
105#includedir /usr/local/etc/sudoers.d
106
107# Enable PC-BSD networking functionality for users in wheel
108%wheel ALL = NOPASSWD: /usr/local/bin/pc-ethernetconfig
109%wheel ALL = NOPASSWD: /usr/local/bin/pc-netmanager
110%wheel ALL = NOPASSWD: /usr/local/bin/pc-nettray
111%wheel ALL = NOPASSWD: /usr/local/bin/pc-wificonfig
112%wheel ALL = NOPASSWD: /usr/local/bin/pc-updategui
113%wheel ALL = NOPASSWD: /usr/local/bin/pc-fbsdupdatecheck
114%wheel ALL = NOPASSWD: /usr/local/bin/life-preserver
115%wheel ALL = NOPASSWD: /usr/local/etc/amount/amount
116%wheel ALL = NOPASSWD: /usr/local/bin/pc-bluetoothtray
117%wheel ALL = NOPASSWD: /usr/local/bin/pc-mounttray
118%wheel ALL = NOPASSWD: /usr/local/bin/pc-soundconfig
119%wheel ALL = NOPASSWD: /usr/local/bin/pc-updatemanager
120%wheel ALL = NOPASSWD: /usr/local/bin/pc-pkgmanager
Note: See TracBrowser for help on using the repository browser.