修改文件名

This commit is contained in:
2023-06-25 12:53:52 +08:00
parent 42c7d2aa17
commit 09d9155f7b
12 changed files with 41 additions and 12 deletions

13
gx-env-adduser-root Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
chrootEnvPath=/opt/new-system-env
zenity --info --text=请输入需要设置的密码 --no-wrap
firstPWD=`zenity --password`
zenity --info --text=请再输入一次相同的密码 --no-wrap
secondPWD=`zenity --password`
if [[ $firstPWD != $secondPWD ]]; then
zenity --error --text=密码不相同,无法继续 --no-wrap
exit 1
fi
echo -e "$firstPWD\n$firstPWD\n\n\n\n\n\nY\n" | ./run-root.sh adduser `whoami`
gx-env-run-root bash -c "echo $USER >> /etc/sudo"