-4

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 ?

holms
  • 1,524
  • 7
  • 20
  • 37
  • 1
    See the [Deployment Guide](https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s1-users-tools.html#s2-users-tools-users-add). – Michael Hampton Jun 10 '13 at 11:18
  • there's nothing in deployment guide regarding "--disabled-login" option. please don't do offtopic and check your links first – holms Jun 10 '13 at 11:37
  • 4
    It helps if you actually read it. – Michael Hampton Jun 10 '13 at 11:38
  • it's not the same explanation as user above, provided. I mean if you only gonna throw the docs and close the topics, you should leave serverfault now. this community intended to help on guiding over documentation also. and "spoon fiding" is welcome in here in case you don't know. – holms Jun 10 '13 at 11:43
  • 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
  • You should read the man page carefully before asking, "asking why, don't asking what" – cuonglm Jun 10 '13 at 11:50
  • 2
    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
  • ok we done go here: http://meta.stackexchange.com/questions/183829/since-when-spoon-feeding-is-not-allowed – holms Jun 10 '13 at 12:22
  • This site (i.e. ServerFault) has never been about spoonfeeding. A basic unix/linux question would be better asked in Unix/Linux or possibly SuperUser. – Jenny D Jun 10 '13 at 14:15
  • That could've been explained from the beginning. Thank you Jenny. – holms Jun 10 '13 at 14:30
  • 3
    It is explained in the [faq] which you did not bother to read. – Jenny D Jun 11 '13 at 07:27

1 Answers1

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.

j883376
  • 266
  • 3
  • 8