若已事先定义好了相关命令给笼环境用户,可用如下方法添加命令:
语法:
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