修复sudo脚本无法正常提示说明的问题

This commit is contained in:
2024-02-06 19:25:47 +08:00
parent 4a50282e9c
commit efbef667aa
-1
View File
@@ -2,6 +2,5 @@
user=`whoami`
echo 请输入 root 密码以便正确配置 sudo 权限
su -c "usermod -aG sudo \"$user\""
newgrp sudo
echo 注销后即可正常使用 sudo
read