这些选项在RHEL6中都不存在。
/usr/sbin/adduser --disabled-login --gecos 'GitLab' git禁用帐户(没有锁定,它是不同的)和在Red 6中添加gecos的等效参数是什么?
发布于 2013-06-10 11:11:21
根据Debian adduser手册:
--disabled-login
Do not run passwd to set the password. The user won't be able
to use her account until the password is set.默认情况下,在使用useradd时,帐户将被禁用,直到您第一次在帐户上设置密码为止,因此,简单地不给用户一个密码就可以完成与adduser --disabled-login相同的任务。
https://serverfault.com/questions/514615
复制相似问题