From b1ec7d9f0454219ddfccb0d77497de51b0efc35a Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 10 Jul 2024 18:39:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=20ftp=20=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=94=A8=E6=88=B7=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#5751)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/utils/toolbox/pure-ftpd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/utils/toolbox/pure-ftpd.go b/backend/utils/toolbox/pure-ftpd.go index e9a61b9ae..8538ea599 100644 --- a/backend/utils/toolbox/pure-ftpd.go +++ b/backend/utils/toolbox/pure-ftpd.go @@ -60,7 +60,7 @@ func NewFtpClient() (*Ftp, error) { if err != nil { return nil, errors.New(string(stdout)) } - stdout2, err := cmd.Execf("useradd -u 1000 -g 1panel %s", userItem.Username) + stdout2, err := cmd.Exec("useradd -u 1000 -g 1panel 1panel") if err != nil { return nil, errors.New(stdout2) }