#!/bin/bash
set -eu
# $UID
# $EUID
# 此处仅限root用户运行此脚本
if [ "$EUID" != "0" ]
then
echo "Please use root run script!!!"
exit 101
fi
指定用户运行脚本
- 本文作者: 海纳百川
- 本文链接: https://telnetwork.github.io/xuoVUhV8h/
- 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
0%
