您的位置:首页 > 运维架构 > Linux

LINUX SSH jail 笼环境下如何添加命令

2013-12-16 18:15 204 查看
若已事先定义好了相关命令给笼环境用户,可用如下方法添加命令:

语法:

jk_cp -v -k -f -j jail source

示例:

jk_cp -v -k -f -j jail /usr/bin/firefox

---------------------------------------------------------------------

其它参数 【更多参考官网:http://olivier.sessink.nl/jailkit/jk_cp.8.html】


OPTIONS

-j --jail The destination jail. If no jail is specified, the first argument is used as jail for backwards compatibility
-f --force Force overwriting of existing files
-k --hardlink Try to create hardlinks instead of copying the files. If linking fails it falls back to copying..
-o --owner Retains the file ownership and group when copying files and directories..
-v --verbose Will give verbose output
-h --help The help screen
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: