Commit | Line | Data |
---|---|---|
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 | |
21 | chroot \- change root directory | |
22 | .SH SYNOPSIS | |
23 | .B chroot newroot [ command ] | |
24 | .SH DESCRIPTION | |
25 | The | |
26 | .I chroot | |
27 | command changes its root directory to the supplied directory | |
28 | .I newroot | |
29 | and exec's | |
30 | .IR command , | |
31 | if supplied, or an interactive copy of your shell (as specified | |
32 | by the environmental variable | |
33 | .IR SHELL ) | |
34 | if not. | |
35 | .I /bin/sh | |
36 | is used if | |
37 | .I SHELL | |
38 | is not specified. | |
39 | .PP | |
40 | Note, | |
41 | .I command | |
42 | or the shell are run as your real-user-id. | |
43 | .SH "SEE ALSO" | |
44 | chdir(2), chroot(2), environ(7) |