- 论坛徽章:
- 0
|
以下是执行man chroot的结果:
NAME
chroot -- change root directory(改变root用户的目录)
SYNOPSIS
chroot [-u user] [-g group] [-G group,group,...] newroot [command]
DESCRIPTION
The chroot utility changes its current and root directories to the sup-
plied directory newroot and then exec's command, if supplied, or an
interactive copy of the user's login shell.
If the -u, -g or -G options are given, the user, group and group list of
the process are set to these values after the chroot( has taken place.
从字面意思去解释该命令,chroot改变了当前root的用户目录。但本人不能理解该命令
在那种情况下需要使用?有些书中提到该命令出于安全考虑。有谁能详细讲解一下?
先谢谢了! |
|