install correct aliases file
[unix-history] / usr / src / usr.sbin / chroot / chroot.8
CommitLineData
a01ced3e
KB
1.\" Copyright (c) 1988 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
16.\" @(#)chroot.8 5.1 (Berkeley) %G%
17.\"
18.TH CHROOT 8 ""
19.UC 6
20.SH NAME
21chroot \- change root directory
22.SH SYNOPSIS
23.B chroot newroot [ command ]
24.SH DESCRIPTION
25The
26.I chroot
27command changes its root directory to the supplied directory
28.I newroot
29and exec's
30.IR command ,
31if supplied, or an interactive copy of your shell (as specified
32by the environmental variable
33.IR SHELL )
34if not.
35.I /bin/sh
36is used if
37.I SHELL
38is not specified.
39.PP
40Note,
41.I command
42or the shell are run as your real-user-id.
43.SH "SEE ALSO"
44chdir(2), chroot(2), environ(7)