]> andersk Git - openssh.git/blame - README.privsep
- (stevesk) [README.privsep] PAM+privsep works with Solaris 8.
[openssh.git] / README.privsep
CommitLineData
3d1beaf2 1Privilege separation, or privsep, is an experimental feature in
2OpenSSH in which operations that require root privilege are performed
3by a separate privileged monitor process. Its purpose is to prevent
4privilege escalation by containing corruption to an unprivileged
5process. More information is available at:
6 http://www.citi.umich.edu/u/provos/ssh/privsep.html
7
8Privilege separation is not enabled by default, and may be enabled by
9specifying "UsePrivilegeSeparation yes" in sshd_config; see the
10UsePrivilegeSeparation option in sshd(8).
11
12When privsep is enabled, the pre-authentication sshd process will
13chroot(2) to "/var/empty" and change its privileges to the "sshd" user
14and its primary group. You should do something like the following to
15prepare the privsep preauth environment:
16
17 # mkdir /var/empty
18 # chown root:sys /var/empty
19 # chmod 755 /var/empty
20 # groupadd sshd
21 # useradd -g sshd sshd
22
23/var/empty should not contain any files.
24
25configure supports the following options to change the default
26privsep user and chroot directory:
27
28 --with-privsep-path=xxx Path for privilege seperation chroot
29 --with-privsep-user=user Specify non-privileged user for privilege separation
30
31Privsep requires operating system support for file descriptor passing
32and mmap(MAP_ANON).
33
545ba36e 34PAM-enabled OpenSSH is known to function with privsep on Linux and
35Solaris 8. It does not function on HP-UX with a trusted system
36configuration. PAMAuthenticationViaKbdInt does not function with
3d1beaf2 37privsep.
38
39Note that for a normal interactive login with a shell, enabling privsep
40will require 1 additional process per login session.
41
42Given the following process listing (from HP-UX):
43
44 UID PID PPID C STIME TTY TIME COMMAND
45 root 1005 1 0 10:45:17 ? 0:08 /opt/openssh/sbin/sshd -u0
46 root 6917 1005 0 15:19:16 ? 0:00 sshd: stevesk [priv]
47 stevesk 6919 6917 0 15:19:17 ? 0:03 sshd: stevesk@2
48 stevesk 6921 6919 0 15:19:17 pts/2 0:00 -bash
49
50process 1005 is the sshd process listening for new connections.
51process 6917 is the privileged monitor process, 6919 is the user owned
52sshd process and 6921 is the shell process.
53
54$Id$
This page took 0.829686 seconds and 5 git commands to generate.