None of this options doesn't exist in RHEL6.
/usr/sbin/adduser --disabled-login --gecos 'GitLab' git
What is equivalent parameters for disabling account (no locking, it's different) and adding gecos in Red Hat 6 ?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
As per the Debian
--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.
By default, when using
useradd, the account is disabled until you set a password on it for the first time, so simply not giving the user a password will accomplish the same thing as