2 * Copyright (c) 1989 The Regents of the University of California.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by the University of
16 * California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * from: @(#)pathnames.h 5.2 (Berkeley) 4/9/90
34 * $Id: pathnames.h,v 1.25 1998/02/03 23:29:30 assar Exp $
35 * $FreeBSD: src/crypto/kerberosIV/appl/bsd/pathnames.h_,v 1.1 1999/09/19 21:55:58 markm Exp $
38 /******* First fix default path, we stick to _PATH_DEFPATH everywhere */
40 #if !defined(_PATH_DEFPATH) && defined(_PATH_USERPATH)
41 #define _PATH_DEFPATH _PATH_USERPATH
44 #if defined(_PATH_DEFPATH) && !defined(_DEF_PATH)
45 #define _DEF_PATH _PATH_DEFPATH
48 #if !defined(_PATH_DEFPATH) && defined(_DEF_PATH)
49 #define _PATH_DEFPATH _DEF_PATH
53 #define _PATH_DEFPATH "/usr/ucb:/usr/bin:/bin"
54 #define _DEF_PATH _PATH_DEFPATH
55 #endif /* !_PATH_DEFPATH */
57 #ifndef _PATH_DEFSUPATH
58 #define _PATH_DEFSUPATH "/usr/sbin:" _DEF_PATH
59 #endif /* _PATH_DEFSUPATH */
61 /******* Default PATH fixed! */
63 #undef _PATH_RLOGIN /* Redifine rlogin */
64 #define _PATH_RLOGIN BINDIR "/rlogin"
66 #undef _PATH_RSH /* Redifine rsh */
67 #define _PATH_RSH BINDIR "/rsh"
69 #undef _PATH_RCP /* Redifine rcp */
70 #define _PATH_RCP BINDIR "/rcp"
73 #define _PATH_LOGIN BINDIR "/login"
75 /******* The rest is fallback defaults */
78 #define _PATH_DEV "/dev/"
82 #define _PATH_CP "/bin/cp"
86 #define _PATH_SHELLS "/etc/shells"
87 #endif /* _PATH_SHELLS */
90 #define _PATH_BSHELL "/bin/sh"
91 #endif /* _PATH_BSHELL */
94 #define _PATH_CSHELL "/bin/csh"
95 #endif /* _PATH_CSHELL */
98 #define _PATH_NOLOGIN "/etc/nologin"
99 #endif /* _PATH_NOLOGIN */
102 #define _PATH_TTY "/dev/tty"
103 #endif /* _PATH_TTY */
105 #ifndef _PATH_HUSHLOGIN
106 #define _PATH_HUSHLOGIN ".hushlogin"
107 #endif /* _PATH_HUSHLOGIN */
109 #ifndef _PATH_NOMAILCHECK
110 #define _PATH_NOMAILCHECK ".nomailcheck"
111 #endif /* _PATH_NOMAILCHECK */
113 #ifndef _PATH_MOTDFILE
114 #define _PATH_MOTDFILE "/etc/motd"
115 #endif /* _PATH_MOTDFILE */
117 #ifndef _PATH_LOGACCESS
118 #define _PATH_LOGACCESS "/etc/login.access"
119 #endif /* _PATH_LOGACCESS */
122 #define _PATH_HEQUIV "/etc/hosts.equiv"
126 #define _PATH_FBTAB "/etc/fbtab"
127 #endif /* _PATH_FBTAB */
129 #ifndef _PATH_LOGINDEVPERM
130 #define _PATH_LOGINDEVPERM "/etc/logindevperm"
131 #endif /* _PATH_LOGINDEVPERM */
134 #define _PATH_CHPASS "/usr/bin/passwd"
135 #endif /* _PATH_CHPASS */
138 #define __FALLBACK_MAILDIR__ "/usr/mail"
140 #define __FALLBACK_MAILDIR__ "/usr/spool/mail"
144 #ifndef _PATH_MAILDIR
146 #define _PATH_MAILDIR MAILDIR
148 #define _PATH_MAILDIR __FALLBACK_MAILDIR__
150 #endif /* _PATH_MAILDIR */
151 #define KRB4_MAILDIR _PATH_MAILDIR
154 #ifndef _PATH_LASTLOG
155 #define _PATH_LASTLOG "/var/adm/lastlog"
158 #if defined(UTMP_FILE) && !defined(_PATH_UTMP)
159 #define _PATH_UTMP UTMP_FILE
163 #define _PATH_UTMP "/etc/utmp"
166 #if defined(WTMP_FILE) && !defined(_PATH_WTMP)
167 #define _PATH_WTMP WTMP_FILE
171 #define _PATH_WTMP "/usr/adm/wtmp"
174 #ifndef _PATH_ETC_DEFAULT_LOGIN
175 #define _PATH_ETC_DEFAULT_LOGIN "/etc/default/login"
178 #ifndef _PATH_ETC_ENVIRONMENT
179 #define _PATH_ETC_ENVIRONMENT "/etc/environment"
182 #ifndef _PATH_ETC_SECURETTY
183 #define _PATH_ETC_SECURETTY "/etc/securetty"
187 * NeXT KLUDGE ALERT!!!!!!!!!!!!!!!!!!
188 * Some sort of bug in the NEXTSTEP cpp.
191 #undef _PATH_DEFSUPATH
192 #define _PATH_DEFSUPATH "/usr/sbin:/usr/ucb:/usr/bin:/bin"
194 #define _PATH_RLOGIN "/usr/athena/bin/rlogin"
196 #define _PATH_RSH "/usr/athena/bin/rsh"
198 #define _PATH_RCP "/usr/athena/bin/rcp"
200 #define _PATH_LOGIN "/usr/athena/bin/login"