From 74c11752649169919d88778987e13c27083c6ea8 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Wed, 25 Mar 2026 14:34:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20curl|bash=20=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=20passwd=20=E6=97=A0=E6=B3=95=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E9=94=AE=E7=9B=98=E8=BE=93=E5=85=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- root-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root-setup.sh b/root-setup.sh index 2ef7767..a63ea06 100755 --- a/root-setup.sh +++ b/root-setup.sh @@ -22,7 +22,7 @@ if id "$USERNAME" &> /dev/null; then else useradd -m -G wheel -s /bin/bash "$USERNAME" echo "请设置 $USERNAME 的密码:" - passwd "$USERNAME" + passwd "$USERNAME" < /dev/tty fi echo "==> 配置 WSL 默认用户..."