Browse Source

fix: 解决 ftp 创建用户失败的问题 (#5751)

pull/5753/head
ssongliu 5 months ago committed by GitHub
parent
commit
b1ec7d9f04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      backend/utils/toolbox/pure-ftpd.go

2
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)
}

Loading…
Cancel
Save