*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: chdir | Section: 2 | Source: UNIX v10 | File: chdir.2
CHDIR(2) System Calls Manual CHDIR(2) NAME chdir, chroot - change working or root directory SYNOPSIS int chdir(dirname) char *dirname; int chroot(dirname) char *dirname; DESCRIPTION Chdir changes the working directory of the invoking process to dirname; chroot changes its root directory. The root directory is the starting point when searching for pathnames beginning with The working directory is the starting point for path- names that don't. The root directory normally points to the system root. Login(8) initially sets the working directory as specified in the password file. After chroot, it is impossible to name a file outside the subtree rooted at the current root, provided that the current directory is lo- cated within the subtree and there are no links pointing outside the subtree (except for the entry in the root directory). Chroot may only be used by the super-user. SEE ALSO sh(1), passwd(5) DIAGNOSTICS EACCES, EFAULT, EIO, ELOOP, ENOENT, ENOTDIR, EPERM (chroot only) BUGS Using chroot, it is quite easy to fool set-userid programs about the contents of the password file (for example). CHDIR(2)

Navigation Options