-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsudoers
More file actions
executable file
·90 lines (76 loc) · 2.86 KB
/
sudoers
File metadata and controls
executable file
·90 lines (76 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
## sudoers file.
##
## TYLER CUSTOMIZED ON 05/03/2017
##
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
##
## See the sudoers man page for the details on how to write a sudoers file.
##
##
## Host alias specification
##
## Groups of machines. These may include host names (optionally with wildcards),
## IP addresses, network numbers or netgroups.
# Host_Alias WEBSERVERS = www1, www2, www3
##
## User alias specification
##
## Groups of users. These may consist of user names, uids, Unix groups,
## or netgroups.
# User_Alias ADMINS = millert, dowdy, mikef
##
## Cmnd alias specification
##
## Groups of commands. Often used to group related commands together.
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
# /usr/bin/pkill, /usr/bin/top
##
## Defaults specification
##
Defaults env_reset
Defaults env_keep += "BLOCKSIZE"
Defaults env_keep += "COLORFGBG COLORTERM"
Defaults env_keep += "__CF_USER_TEXT_ENCODING"
Defaults env_keep += "CHARSET LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE"
Defaults env_keep += "LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME"
Defaults env_keep += "LINES COLUMNS"
Defaults env_keep += "LSCOLORS"
Defaults env_keep += "SSH_AUTH_SOCK"
Defaults env_keep += "TZ"
Defaults env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY"
Defaults env_keep += "EDITOR VISUAL"
Defaults env_keep += "HOME MAIL"
Defaults lecture_file = "/etc/sudo_lecture"
##
## Runas alias specification
##
##
## User privilege specification
##root ALL=(ALL) ALL
#%admin ALL=(ALL) ALL
root ALL=(ALL) ALL
%admin ALL=(ALL) ALL
%wheel ALL=(ALL) ALL # <-- Ty: custom
tyhostager ALL=(ALL) ALL # <-- Ty: custom
## Uncomment to allow members of group wheel to execute any command
#%wheel ALL=(ALL) ALL
%wheel ALL=(ALL) ALL # <-- Ty: custom
## Same thing without a password
#%wheel ALL=(ALL) ALL
root
%wheel ALL=(ALL) NOPASSWD: ALL # <-- Ty: custom
tyhostager ALL=(ALL) NOPASSWD: ALL # <-- Ty: custom
## Uncomment to allow members of group sudo to execute any command
#%sudo ALL=(ALL) ALL
%sudo ALL=(ALL) ALL # <-- Ty: custom
## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
#Defaults targetpw # Ask for the password of the target user
#ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
Defaults targetpw # <-- Ty: custom
ALL ALL=(ALL) ALL # <-- Ty: custom
## Read drop-in files from /private/etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /private/etc/sudoers.d