⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 priv-check

📁 Linux下文件工具。
💻
字号:
# -*- sh -*-# Source this file at the beginning of a test that works# only when run as root or as non-root.case "$PRIV_CHECK_ARG" in  require-root) who='as root';;  require-non-root) who='by an unprivileged user';;  *) echo "Usage: PRIV_CHECK_ARG={require-root|require-non-root} . priv-check"\     1>&2; exit 1;;esacpriv_check_temp=priv-check.$$touch $priv_check_temp || framework_failure=1chmod a-w $priv_check_temp || framework_failure=1(echo foo >> $priv_check_temp) >/dev/null 2>&1overwrite_status=$?give_msg=nocase $PRIV_CHECK_ARG:$overwrite_status in  require-root:0) ;;  require-root:*) give_msg=yes ;;  require-non-root:0) give_msg=yes ;;  require-non-root:*) ;;esactest $give_msg = yes && {  cat <<EOF***************************NOTICE:$0: This test is being skipped, since it works onlywhen run $who.***************************EOF  rm -f $priv_check_temp  (exit 77); exit}rm -f $priv_check_temp

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -