Imported Upstream version 1.6.6
[debian/sudo] / def_data.c
1 struct sudo_defs_types sudo_defs_table[] = {
2     {
3         "syslog_ifac", T_UINT,
4         NULL
5     }, {
6         "syslog_igoodpri", T_UINT,
7         NULL
8     }, {
9         "syslog_ibadpri", T_UINT,
10         NULL
11     }, {
12         "syslog", T_LOGFAC|T_BOOL,
13         "Syslog facility if syslog is being used for logging: %s"
14     }, {
15         "syslog_goodpri", T_LOGPRI,
16         "Syslog priority to use when user authenticates successfully: %s"
17     }, {
18         "syslog_badpri", T_LOGPRI,
19         "Syslog priority to use when user authenticates unsuccessfully: %s"
20     }, {
21         "long_otp_prompt", T_FLAG,
22         "Put OTP prompt on its own line"
23     }, {
24         "ignore_dot", T_FLAG,
25         "Ignore '.' in $PATH"
26     }, {
27         "mail_always", T_FLAG,
28         "Always send mail when sudo is run"
29     }, {
30         "mail_badpass", T_FLAG,
31         "Send mail if user authentication fails"
32     }, {
33         "mail_no_user", T_FLAG,
34         "Send mail if the user is not in sudoers"
35     }, {
36         "mail_no_host", T_FLAG,
37         "Send mail if the user is not in sudoers for this host"
38     }, {
39         "mail_no_perms", T_FLAG,
40         "Send mail if the user is not allowed to run a command"
41     }, {
42         "tty_tickets", T_FLAG,
43         "Use a separate timestamp for each user/tty combo"
44     }, {
45         "lecture", T_FLAG,
46         "Lecture user the first time they run sudo"
47     }, {
48         "authenticate", T_FLAG,
49         "Require users to authenticate by default"
50     }, {
51         "root_sudo", T_FLAG,
52         "Root may run sudo"
53     }, {
54         "log_host", T_FLAG,
55         "Log the hostname in the (non-syslog) log file"
56     }, {
57         "log_year", T_FLAG,
58         "Log the year in the (non-syslog) log file"
59     }, {
60         "shell_noargs", T_FLAG,
61         "If sudo is invoked with no arguments, start a shell"
62     }, {
63         "set_home", T_FLAG,
64         "Set $HOME to the target user when starting a shell with -s"
65     }, {
66         "always_set_home", T_FLAG,
67         "Always set $HOME to the target user's home directory"
68     }, {
69         "path_info", T_FLAG,
70         "Allow some information gathering to give useful error messages"
71     }, {
72         "fqdn", T_FLAG,
73         "Require fully-qualified hostnames in the sudoers file"
74     }, {
75         "insults", T_FLAG,
76         "Insult the user when they enter an incorrect password"
77     }, {
78         "requiretty", T_FLAG,
79         "Only allow the user to run sudo if they have a tty"
80     }, {
81         "env_editor", T_FLAG,
82         "Visudo will honor the EDITOR environment variable"
83     }, {
84         "rootpw", T_FLAG,
85         "Prompt for root's password, not the users's"
86     }, {
87         "runaspw", T_FLAG,
88         "Prompt for the runas_default user's password, not the users's"
89     }, {
90         "targetpw", T_FLAG,
91         "Prompt for the target user's password, not the users's"
92     }, {
93         "use_loginclass", T_FLAG,
94         "Apply defaults in the target user's login class if there is one"
95     }, {
96         "set_logname", T_FLAG,
97         "Set the LOGNAME and USER environment variables"
98     }, {
99         "stay_setuid", T_FLAG,
100         "Only set the effective uid to the target user, not the real uid"
101     }, {
102         "env_reset", T_FLAG,
103         "Reset the environment to a default set of variables"
104     }, {
105         "preserve_groups", T_FLAG,
106         "Don't initialize the group vector to that of the target user"
107     }, {
108         "loglinelen", T_UINT|T_BOOL,
109         "Length at which to wrap log file lines (0 for no wrap): %d"
110     }, {
111         "timestamp_timeout", T_INT|T_BOOL,
112         "Authentication timestamp timeout: %d minutes"
113     }, {
114         "passwd_timeout", T_UINT|T_BOOL,
115         "Password prompt timeout: %d minutes"
116     }, {
117         "passwd_tries", T_UINT,
118         "Number of tries to enter a password: %d"
119     }, {
120         "umask", T_MODE|T_BOOL,
121         "Umask to use or 0777 to use user's: 0%o"
122     }, {
123         "logfile", T_STR|T_BOOL|T_PATH,
124         "Path to log file: %s"
125     }, {
126         "mailerpath", T_STR|T_BOOL|T_PATH,
127         "Path to mail program: %s"
128     }, {
129         "mailerflags", T_STR|T_BOOL,
130         "Flags for mail program: %s"
131     }, {
132         "mailto", T_STR|T_BOOL,
133         "Address to send mail to: %s"
134     }, {
135         "mailsub", T_STR,
136         "Subject line for mail messages: %s"
137     }, {
138         "badpass_message", T_STR,
139         "Incorrect password message: %s"
140     }, {
141         "timestampdir", T_STR|T_PATH,
142         "Path to authentication timestamp dir: %s"
143     }, {
144         "exempt_group", T_STR|T_BOOL,
145         "Users in this group are exempt from password and PATH requirements: %s"
146     }, {
147         "passprompt", T_STR,
148         "Default password prompt: %s"
149     }, {
150         "runas_default", T_STR,
151         "Default user to run commands as: %s"
152     }, {
153         "editor", T_STR|T_PATH,
154         "Path to the editor for use by visudo: %s"
155     }, {
156         "env_check", T_LIST|T_BOOL,
157         "Environment variables to check for sanity:"
158     }, {
159         "env_delete", T_LIST|T_BOOL,
160         "Environment variables to remove:"
161     }, {
162         "env_keep", T_LIST|T_BOOL,
163         "Environment variables to preserve:"
164     }, {
165         "listpw_i", T_UINT,
166         NULL
167     }, {
168         "verifypw_i", T_UINT,
169         NULL
170     }, {
171         "listpw", T_PWFLAG,
172         "When to require a password for 'list' pseudocommand: %s"
173     }, {
174         "verifypw", T_PWFLAG,
175         "When to require a password for 'verify' pseudocommand: %s"
176     }, {
177         NULL, 0, NULL
178     }
179 };