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 $
36 * $DragonFly: src/crypto/kerberosIV/appl/bsd/Attic/pathnames.h_,v 1.2 2003/06/17 04:24:36 dillon Exp $
39 /******* First fix default path, we stick to _PATH_DEFPATH everywhere */
41 #if !defined(_PATH_DEFPATH) && defined(_PATH_USERPATH)
42 #define _PATH_DEFPATH _PATH_USERPATH
45 #if defined(_PATH_DEFPATH) && !defined(_DEF_PATH)
46 #define _DEF_PATH _PATH_DEFPATH
49 #if !defined(_PATH_DEFPATH) && defined(_DEF_PATH)
50 #define _PATH_DEFPATH _DEF_PATH
54 #define _PATH_DEFPATH "/usr/ucb:/usr/bin:/bin"
55 #define _DEF_PATH _PATH_DEFPATH
56 #endif /* !_PATH_DEFPATH */
58 #ifndef _PATH_DEFSUPATH
59 #define _PATH_DEFSUPATH "/usr/sbin:" _DEF_PATH
60 #endif /* _PATH_DEFSUPATH */
62 /******* Default PATH fixed! */
64 #undef _PATH_RLOGIN /* Redifine rlogin */
65 #define _PATH_RLOGIN BINDIR "/rlogin"
67 #undef _PATH_RSH /* Redifine rsh */
68 #define _PATH_RSH BINDIR "/rsh"
70 #undef _PATH_RCP /* Redifine rcp */
71 #define _PATH_RCP BINDIR "/rcp"
74 #define _PATH_LOGIN BINDIR "/login"
76 /******* The rest is fallback defaults */
79 #define _PATH_DEV "/dev/"
83 #define _PATH_CP "/bin/cp"
87 #define _PATH_SHELLS "/etc/shells"
88 #endif /* _PATH_SHELLS */
91 #define _PATH_BSHELL "/bin/sh"
92 #endif /* _PATH_BSHELL */
95 #define _PATH_CSHELL "/bin/csh"
96 #endif /* _PATH_CSHELL */
99 #define _PATH_NOLOGIN "/etc/nologin"
100 #endif /* _PATH_NOLOGIN */
103 #define _PATH_TTY "/dev/tty"
104 #endif /* _PATH_TTY */
106 #ifndef _PATH_HUSHLOGIN
107 #define _PATH_HUSHLOGIN ".hushlogin"
108 #endif /* _PATH_HUSHLOGIN */
110 #ifndef _PATH_NOMAILCHECK
111 #define _PATH_NOMAILCHECK ".nomailcheck"
112 #endif /* _PATH_NOMAILCHECK */
114 #ifndef _PATH_MOTDFILE
115 #define _PATH_MOTDFILE "/etc/motd"
116 #endif /* _PATH_MOTDFILE */
118 #ifndef _PATH_LOGACCESS
119 #define _PATH_LOGACCESS "/etc/login.access"
120 #endif /* _PATH_LOGACCESS */
123 #define _PATH_HEQUIV "/etc/hosts.equiv"
127 #define _PATH_FBTAB "/etc/fbtab"
128 #endif /* _PATH_FBTAB */
130 #ifndef _PATH_LOGINDEVPERM
131 #define _PATH_LOGINDEVPERM "/etc/logindevperm"
132 #endif /* _PATH_LOGINDEVPERM */
135 #define _PATH_CHPASS "/usr/bin/passwd"
136 #endif /* _PATH_CHPASS */
139 #define __FALLBACK_MAILDIR__ "/usr/mail"
141 #define __FALLBACK_MAILDIR__ "/usr/spool/mail"
145 #ifndef _PATH_MAILDIR
147 #define _PATH_MAILDIR MAILDIR
149 #define _PATH_MAILDIR __FALLBACK_MAILDIR__
151 #endif /* _PATH_MAILDIR */
152 #define KRB4_MAILDIR _PATH_MAILDIR
155 #ifndef _PATH_LASTLOG
156 #define _PATH_LASTLOG "/var/adm/lastlog"
159 #if defined(UTMP_FILE) && !defined(_PATH_UTMP)
160 #define _PATH_UTMP UTMP_FILE
164 #define _PATH_UTMP "/etc/utmp"
167 #if defined(WTMP_FILE) && !defined(_PATH_WTMP)
168 #define _PATH_WTMP WTMP_FILE
172 #define _PATH_WTMP "/usr/adm/wtmp"
175 #ifndef _PATH_ETC_DEFAULT_LOGIN
176 #define _PATH_ETC_DEFAULT_LOGIN "/etc/default/login"
179 #ifndef _PATH_ETC_ENVIRONMENT
180 #define _PATH_ETC_ENVIRONMENT "/etc/environment"
183 #ifndef _PATH_ETC_SECURETTY
184 #define _PATH_ETC_SECURETTY "/etc/securetty"
188 * NeXT KLUDGE ALERT!!!!!!!!!!!!!!!!!!
189 * Some sort of bug in the NEXTSTEP cpp.
192 #undef _PATH_DEFSUPATH
193 #define _PATH_DEFSUPATH "/usr/sbin:/usr/ucb:/usr/bin:/bin"
195 #define _PATH_RLOGIN "/usr/athena/bin/rlogin"
197 #define _PATH_RSH "/usr/athena/bin/rsh"
199 #define _PATH_RCP "/usr/athena/bin/rcp"
201 #define _PATH_LOGIN "/usr/athena/bin/login"