免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1411 | 回复: 0
打印 上一主题 下一主题

chroot [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-18 17:57 |只看该作者 |倒序浏览
CHROOT(8)               OpenBSD System Manager's Manual              CHROOT(8)
NAME
     chroot - change root directory
SYNOPSIS
     chroot [-g group,group,...] [-u user] newroot [command]
DESCRIPTION
     The chroot command changes its root directory to the supplied directory
     newroot and executes command, if supplied, or an interactive copy of the
     user's shell.
     The chroot command is restricted to the superuser.
     The options are as follows:
     -g group,group,...
             Override the primary and supplemental group IDs.  The primary
             group ID is set to the first group in the list.  Any remaining
             groups are placed in the supplemental group ID vector.  Each
             group listed must exist in the
group(5)
databases.
     -u user
             Set user ID to user (which must exist in the
passwd(5)
database).
             The primary and supplemental group IDs will be set based on the
             user's entries in the
passwd(5)
and
group(5)
databases unless
             overridden by the -g option.
ENVIRONMENT
     SHELL  If set, the string specified by SHELL is interpreted as the name
            of the shell to execute.  If the variable SHELL is not set,
            /bin/sh is used.
SEE ALSO
     
chdir(2)
,
chroot(2)
,
setgid(2)
,
setgroups(2)
,
setuid(2)
,
group(5)
,
     
passwd(5)
,
environ(7)
HISTORY
     The chroot utility first appeared in 4.4BSD.
CAVEATS
     chroot should never be installed setuid root, as it would then be possi-
     ble to exploit the program to gain root privileges.
OpenBSD 4.2                      May 31, 2007                                1

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28922/showart_403229.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP