pathnames.h revision 92559
192559Sdes/*	$OpenBSD: pathnames.h,v 1.11 2002/02/09 17:37:34 deraadt Exp $	*/
276262Sgreen/*	$FreeBSD: head/crypto/openssh/pathnames.h 92559 2002-03-18 10:09:43Z des $	*/
376259Sgreen
476259Sgreen/*
576259Sgreen * Author: Tatu Ylonen <ylo@cs.hut.fi>
676259Sgreen * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
776259Sgreen *                    All rights reserved
876259Sgreen *
976259Sgreen * As far as I am concerned, the code I have written for this software
1076259Sgreen * can be used freely for any purpose.  Any derived versions of this
1176259Sgreen * software must be clearly marked as such, and if the derived work is
1276259Sgreen * incompatible with the protocol description in the RFC file, it must be
1376259Sgreen * called by a name other than "ssh" or "Secure Shell".
1476259Sgreen */
1576259Sgreen
1692559Sdes#define ETCDIR				"/etc"
1792559Sdes#define SSHDIR				ETCDIR "/ssh"
1876259Sgreen#define _PATH_SSH_PIDDIR		"/var/run"
1976259Sgreen
2076259Sgreen/*
2176259Sgreen * System-wide file containing host keys of known hosts.  This file should be
2276259Sgreen * world-readable.
2376259Sgreen */
2492559Sdes#define _PATH_SSH_SYSTEM_HOSTFILE	SSHDIR "/ssh_known_hosts"
2592559Sdes/* backward compat for protocol 2 */
2692559Sdes#define _PATH_SSH_SYSTEM_HOSTFILE2	SSHDIR "/ssh_known_hosts2"
2776259Sgreen
2876259Sgreen/*
2976259Sgreen * Of these, ssh_host_key must be readable only by root, whereas ssh_config
3076259Sgreen * should be world-readable.
3176259Sgreen */
3292559Sdes#define _PATH_SERVER_CONFIG_FILE	SSHDIR "/sshd_config"
3392559Sdes#define _PATH_HOST_CONFIG_FILE		SSHDIR "/ssh_config"
3492559Sdes#define _PATH_HOST_KEY_FILE		SSHDIR "/ssh_host_key"
3592559Sdes#define _PATH_HOST_DSA_KEY_FILE		SSHDIR "/ssh_host_dsa_key"
3692559Sdes#define _PATH_HOST_RSA_KEY_FILE		SSHDIR "/ssh_host_rsa_key"
3792559Sdes#define _PATH_DH_MODULI			SSHDIR "/moduli"
3892559Sdes/* Backwards compatibility */
3992559Sdes#define _PATH_DH_PRIMES			SSHDIR "/primes"
4076259Sgreen
4176259Sgreen#define _PATH_SSH_PROGRAM		"/usr/bin/ssh"
4276259Sgreen
4376259Sgreen/*
4476259Sgreen * The process id of the daemon listening for connections is saved here to
4576259Sgreen * make it easier to kill the correct daemon when necessary.
4676259Sgreen */
4776259Sgreen#define _PATH_SSH_DAEMON_PID_FILE	_PATH_SSH_PIDDIR "/sshd.pid"
4876259Sgreen
4976259Sgreen/*
5076259Sgreen * The directory in user\'s home directory in which the files reside. The
5176259Sgreen * directory should be world-readable (though not all files are).
5276259Sgreen */
5376259Sgreen#define _PATH_SSH_USER_DIR		".ssh"
5476259Sgreen
5576259Sgreen/*
5676259Sgreen * Per-user file containing host keys of known hosts.  This file need not be
5776259Sgreen * readable by anyone except the user him/herself, though this does not
5876259Sgreen * contain anything particularly secret.
5976259Sgreen */
6076259Sgreen#define _PATH_SSH_USER_HOSTFILE		"~/.ssh/known_hosts"
6192559Sdes/* backward compat for protocol 2 */
6276259Sgreen#define _PATH_SSH_USER_HOSTFILE2	"~/.ssh/known_hosts2"
6376259Sgreen
6476259Sgreen/*
6576259Sgreen * Name of the default file containing client-side authentication key. This
6676259Sgreen * file should only be readable by the user him/herself.
6776259Sgreen */
6876259Sgreen#define _PATH_SSH_CLIENT_IDENTITY	".ssh/identity"
6976259Sgreen#define _PATH_SSH_CLIENT_ID_DSA		".ssh/id_dsa"
7076259Sgreen#define _PATH_SSH_CLIENT_ID_RSA		".ssh/id_rsa"
7176259Sgreen
7276259Sgreen/*
7376259Sgreen * Configuration file in user\'s home directory.  This file need not be
7476259Sgreen * readable by anyone but the user him/herself, but does not contain anything
7576259Sgreen * particularly secret.  If the user\'s home directory resides on an NFS
7676259Sgreen * volume where root is mapped to nobody, this may need to be world-readable.
7776259Sgreen */
7876259Sgreen#define _PATH_SSH_USER_CONFFILE		".ssh/config"
7976259Sgreen
8076259Sgreen/*
8176259Sgreen * File containing a list of those rsa keys that permit logging in as this
8276259Sgreen * user.  This file need not be readable by anyone but the user him/herself,
8376259Sgreen * but does not contain anything particularly secret.  If the user\'s home
8476259Sgreen * directory resides on an NFS volume where root is mapped to nobody, this
8576259Sgreen * may need to be world-readable.  (This file is read by the daemon which is
8676259Sgreen * running as root.)
8776259Sgreen */
8876259Sgreen#define _PATH_SSH_USER_PERMITTED_KEYS	".ssh/authorized_keys"
8992559Sdes
9092559Sdes/* backward compat for protocol v2 */
9176259Sgreen#define _PATH_SSH_USER_PERMITTED_KEYS2	".ssh/authorized_keys2"
9276259Sgreen
9376259Sgreen/*
9476259Sgreen * Per-user and system-wide ssh "rc" files.  These files are executed with
9576259Sgreen * /bin/sh before starting the shell or command if they exist.  They will be
9676259Sgreen * passed "proto cookie" as arguments if X11 forwarding with spoofing is in
9776259Sgreen * use.  xauth will be run if neither of these exists.
9876259Sgreen */
9976259Sgreen#define _PATH_SSH_USER_RC		".ssh/rc"
10092559Sdes#define _PATH_SSH_SYSTEM_RC		SSHDIR "/sshrc"
10176259Sgreen
10276259Sgreen/*
10376259Sgreen * Ssh-only version of /etc/hosts.equiv.  Additionally, the daemon may use
10476259Sgreen * ~/.rhosts and /etc/hosts.equiv if rhosts authentication is enabled.
10576259Sgreen */
10692559Sdes#define _PATH_SSH_HOSTS_EQUIV		SSHDIR "/shosts.equiv"
10776259Sgreen#define _PATH_RHOSTS_EQUIV		"/etc/hosts.equiv"
10876259Sgreen
10976259Sgreen/*
11076259Sgreen * Default location of askpass
11176259Sgreen */
11276259Sgreen#define _PATH_SSH_ASKPASS_DEFAULT	"/usr/X11R6/bin/ssh-askpass"
11376259Sgreen
11492559Sdes/* xauth for X11 forwarding */
11592559Sdes#define _PATH_XAUTH			"/usr/X11R6/bin/xauth"
11692559Sdes
11792559Sdes/* UNIX domain socket for X11 server; displaynum will replace %u */
11892559Sdes#define _PATH_UNIX_X "/tmp/.X11-unix/X%u"
11992559Sdes
12076259Sgreen/* for scp */
12176259Sgreen#define _PATH_CP			"cp"
12276259Sgreen
12376259Sgreen/* for sftp */
12476259Sgreen#define _PATH_SFTP_SERVER		"/usr/libexec/sftp-server"
12576259Sgreen#define _PATH_LS			"ls"
126