2 * Copyright (c) 1996, 1998, 1999, 2001, 2004, 2005, 2007-2010
3 * Todd C. Miller <Todd.Miller@courtesan.com>.
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 * Sponsored in part by the Defense Advanced Research Projects
18 * Agency (DARPA) and Air Force Research Laboratory, Air Force
19 * Materiel Command, USAF, under agreement number F39502-99-1-0512.
23 * Pathnames to programs and files used by sudo.
28 #endif /* HAVE_PATHS_H */
30 #ifdef HAVE_MAILLOCK_H
32 #endif /* HAVE_MAILLOCK_H */
35 #define _PATH_DEV "/dev/"
36 #endif /* _PATH_DEV */
39 #define _PATH_TTY "/dev/tty"
40 #endif /* _PATH_TTY */
43 #define _PATH_DEVNULL "/dev/null"
44 #endif /* _PATH_DEVNULL */
47 #define _PATH_DEFPATH "/usr/bin:/bin"
48 #endif /* _PATH_DEFPATH */
51 #define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
52 #endif /* _PATH_STDPATH */
54 #ifndef _PATH_ENVIRONMENT
55 #define _PATH_ENVIRONMENT "/etc/environment"
56 #endif /* _PATH_ENVIRONMENT */
59 * NOTE: _PATH_SUDO_CONF is usually overridden by the Makefile.
61 #ifndef _PATH_SUDO_CONF
62 #define _PATH_SUDO_CONF "/etc/sudo.conf"
63 #endif /* _PATH_SUDO_CONF */
66 * NOTE: _PATH_SUDOERS is usually overridden by the Makefile.
69 #define _PATH_SUDOERS "/etc/sudoers"
70 #endif /* _PATH_SUDOERS */
73 * The following paths are controlled via the configure script.
77 * Where to put the timestamp files. Defaults to /var/run/sudo,
78 * /var/adm/sudo or /usr/adm/sudo depending on what exists.
80 #ifndef _PATH_SUDO_TIMEDIR
81 #undef _PATH_SUDO_TIMEDIR
82 #endif /* _PATH_SUDO_TIMEDIR */
85 * Where to put the I/O log files. Defaults to /var/log/sudo-io,
86 * /var/adm/sudo-io or /usr/adm/sudo-io depending on what exists.
88 #ifndef _PATH_SUDO_IO_LOGDIR
89 #undef _PATH_SUDO_IO_LOGDIR
90 #endif /* _PATH_SUDO_IO_LOGDIR */
93 * Where to put the sudo log file when logging to a file. Defaults to
94 * /var/log/sudo.log if /var/log exists, else /var/adm/sudo.log.
96 #ifndef _PATH_SUDO_LOGFILE
97 #undef _PATH_SUDO_LOGFILE
98 #endif /* _PATH_SUDO_LOGFILE */
100 #ifndef _PATH_SUDO_SENDMAIL
101 #undef _PATH_SUDO_SENDMAIL
102 #endif /* _PATH_SUDO_SENDMAIL */
104 #ifndef _PATH_SUDO_NOEXEC
105 #undef _PATH_SUDO_NOEXEC
106 #endif /* _PATH_SUDO_NOEXEC */
108 #ifndef _PATH_SUDO_ASKPASS
109 #undef _PATH_SUDO_ASKPASS
110 #endif /* _PATH_SUDO_ASKPASS */
112 #ifndef _PATH_SUDO_PLUGIN_DIR
113 #undef _PATH_SUDO_PLUGIN_DIR
114 #endif /* _PATH_SUDO_PLUGIN_DIR */
118 #endif /* _PATH_VI */
122 #endif /* _PATH_MV */
126 #endif /* _PATH_BSHELL */
129 #define _PATH_TMP "/tmp/"
130 #endif /* _PATH_TMP */
133 #define _PATH_VARTMP "/var/tmp/"
134 #endif /* _PATH_VARTMP */
137 #define _PATH_USRTMP "/usr/tmp/"
138 #endif /* _PATH_USRTMP */
140 #ifndef _PATH_MAILDIR
142 #endif /* _PATH_MAILDIR */
146 #endif /* _PATH_UTMP */
148 #ifndef _PATH_SUDO_SESH
149 #undef _PATH_SUDO_SESH
150 #endif /* _PATH_SUDO_SESH */
152 #ifndef _PATH_LDAP_CONF
153 #undef _PATH_LDAP_CONF
154 #endif /* _PATH_LDAP_CONF */
156 #ifndef _PATH_LDAP_SECRET
157 #undef _PATH_LDAP_SECRET
158 #endif /* _PATH_LDAP_SECRET */
160 #ifndef _PATH_NSSWITCH_CONF
161 #undef _PATH_NSSWITCH_CONF
162 #endif /* _PATH_NSSWITCH_CONF */
164 #ifndef _PATH_NETSVC_CONF
165 #undef _PATH_NETSVC_CONF
166 #endif /* _PATH_NETSVC_CONF */