在 Ubuntu 20.04 上,我尝试添加用户,但是总是失败。我不认为有什么问题,也没有因为一个简单的事情而疯狂useradd命令而疯狂!我究竟做错了什么?
root@myhost:~# uname -a\nLinux dsdb 5.4.0-109-generic #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux\n\nroot@myhost:~# getent group oinstall\noinstall:x:1001:\n\nroot@myhost:~# getent group dba\ndba:x:1002:\n\nroot@myhost:~# useradd \xe2\x80\x93g oinstall \xe2\x80\x93G dba \xe2\x80\x93m \xe2\x80\x93d /home/oracle oracle\nUsage: useradd [options] LOGIN\n useradd -D\n useradd -D [options]\n\nOptions:\n --badnames do not check for bad names\n -b, --base-dir BASE_DIR base directory for the home directory of the\n new account\n --btrfs-subvolume-home use BTRFS subvolume for home directory\n -c, --comment COMMENT GECOS field of …Run Code Online (Sandbox Code Playgroud) useradd ×1