相关疑难解决方法(0)

useradd/usermod 不接受 -c

当我运行以下命令时:

sudo usermod –c "Richard Tracy" dtracy 
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Usage: usermod [options] LOGIN

Options:
  -c, --comment COMMENT         new value of the GECOS field
  -d, --home HOME_DIR           new home directory for the user account
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -g, --gid GROUP               force use GROUP as new primary group
  -G, --groups GROUPS           new list of supplementary GROUPS
  -a, --append                  append the user to the supplemental GROUPS
                                mentioned by …
Run Code Online (Sandbox Code Playgroud)

command-line users adduser

3
推荐指数
1
解决办法
1031
查看次数

标签 统计

adduser ×1

command-line ×1

users ×1