-5

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 ?

  • 1
    See the Deployment Guide. – Michael Hampton Jun 10 '13 at 11:18
  • 4
    It helps if you actually read it. – Michael Hampton Jun 10 '13 at 11:38
  • 4
    This is a site for professionals, and as such, we do not do spoon feeding. You are expected to read AND UNDERSTAND the product documentation prior to coming here. I'm sorry, but you did not do one or both of those. – Michael Hampton Jun 10 '13 at 11:46
  • 1
    nice, then this site is dead for me, because it was all about spoon feeding since I've joined in here. A documentation, a.k.a man pages is biggest problem of unix world, where even developers can't find information in there. I've came from BSD and Debian, I want exact functionality in there regarding default unix tools, if it's not, I'm reading man pages, if no option found in here - I'm coming here, and NO, I won't even intended to open RHEL manuals because there's at least 20 vers of them for same tool which is even more confusing. since when you develop a rules? this community about guiding – holms Jun 10 '13 at 11:54
  • 3
    It is explained in the faq which you did not bother to read. – Jenny D Jun 11 '13 at 7:27
4

As per the Debian adduser manpage:

   --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 adduser --disabled-login.

Not the answer you're looking for? Browse other questions tagged or ask your own question.