Files
GXDE/config-sudo.sh
T
2024-02-06 16:41:28 +08:00

8 lines
173 B
Bash
Executable File

#!/bin/bash
user=`whoami`
echo 请输入 root 密码以便正确配置 sudo 权限
su -c "usermod -aG sudo \"$user\""
newgrp sudo
echo 注销后即可正常使用 sudo
read