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

来源:互联网 发布:淘宝店铺找回 编辑:程序博客网 时间:2024/05/20 05:04

若已事先定义好了相关命令给笼环境用户,可用如下方法添加命令:

语法:

      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


0 0
原创粉丝点击