What do the `--disabled-login` and `--gecos` options of `adduser` command stand for?












15















Running Ubuntu 12.04, I setup a private git server and created a group called git some time ago. Now I am following a guide to install gitlab and when it came to adding a user to the git group and create it, I saw that I already had it.



The command is this:



sudo adduser --disabled-login --gecos 'GitLab' git


taken from Gitlab installation Tutorial.



I would like to understand that command correctly. For me I thought I add a user to a group like this:



adduser user group


So what do --disabled-login and --gecos stand for?










share|improve this question





























    15















    Running Ubuntu 12.04, I setup a private git server and created a group called git some time ago. Now I am following a guide to install gitlab and when it came to adding a user to the git group and create it, I saw that I already had it.



    The command is this:



    sudo adduser --disabled-login --gecos 'GitLab' git


    taken from Gitlab installation Tutorial.



    I would like to understand that command correctly. For me I thought I add a user to a group like this:



    adduser user group


    So what do --disabled-login and --gecos stand for?










    share|improve this question



























      15












      15








      15


      5






      Running Ubuntu 12.04, I setup a private git server and created a group called git some time ago. Now I am following a guide to install gitlab and when it came to adding a user to the git group and create it, I saw that I already had it.



      The command is this:



      sudo adduser --disabled-login --gecos 'GitLab' git


      taken from Gitlab installation Tutorial.



      I would like to understand that command correctly. For me I thought I add a user to a group like this:



      adduser user group


      So what do --disabled-login and --gecos stand for?










      share|improve this question
















      Running Ubuntu 12.04, I setup a private git server and created a group called git some time ago. Now I am following a guide to install gitlab and when it came to adding a user to the git group and create it, I saw that I already had it.



      The command is this:



      sudo adduser --disabled-login --gecos 'GitLab' git


      taken from Gitlab installation Tutorial.



      I would like to understand that command correctly. For me I thought I add a user to a group like this:



      adduser user group


      So what do --disabled-login and --gecos stand for?







      command-line adduser






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 4 '15 at 14:47









      muru

      1




      1










      asked Feb 14 '14 at 10:53









      PrivatePrivate

      1,90172544




      1,90172544






















          1 Answer
          1






          active

          oldest

          votes


















          21














          It's all written in the manual page!



          enter image description here



          You don't need to install something, to search on google or to have an internet connection. Just open your terminal and first of all you must to run the following command:



          man adduser


          to open the manual page for adduser command.



          Then, in that manual page type: /--disabled-login followed by Enter then press repetitively n to find all occurrences containing --disabled-login. Do the same for --gecos.



          With a little bit of luck you will find out that:




          --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.



          and:




          --gecos GECOS
          Set the gecos field for the new entry generated. adduser will
          not ask for finger information if this option is given.



          For those wondering what gecos actually is, wikipedia defines it as follows:




          The gecos field, or GECOS field is an entry in the /etc/passwd file on Unix, and similar operating systems. It is typically used to record general information about the account or its user(s) such as their real name and phone number.







          share|improve this answer





















          • 2





            damn never knew about that kind of manual. Thank you sir.

            – Private
            Feb 14 '14 at 13:32








          • 34





            Actually GECOS is really badly explained in the manpage. It's the part where it asks for real name, phone etc. en.wikipedia.org/wiki/Gecos_field

            – benjaoming
            Jan 11 '16 at 14:55






          • 6





            This answers does not explain what gecos is. I came here looking for this info too. Nor does it explain that --disabled-login does not actually disable login as the man implies. it just disables login via password. It is usually used when you set the certificate for cert based ssh login.

            – John Little
            May 22 '18 at 17:59













          • I actually used GCOS systems way back in the day, so seeing this field brings back memories of being a carefree if very geeky high school senior. :-)

            – fool4jesus
            Oct 25 '18 at 20:47












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f420784%2fwhat-do-the-disabled-login-and-gecos-options-of-adduser-command-stand%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          21














          It's all written in the manual page!



          enter image description here



          You don't need to install something, to search on google or to have an internet connection. Just open your terminal and first of all you must to run the following command:



          man adduser


          to open the manual page for adduser command.



          Then, in that manual page type: /--disabled-login followed by Enter then press repetitively n to find all occurrences containing --disabled-login. Do the same for --gecos.



          With a little bit of luck you will find out that:




          --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.



          and:




          --gecos GECOS
          Set the gecos field for the new entry generated. adduser will
          not ask for finger information if this option is given.



          For those wondering what gecos actually is, wikipedia defines it as follows:




          The gecos field, or GECOS field is an entry in the /etc/passwd file on Unix, and similar operating systems. It is typically used to record general information about the account or its user(s) such as their real name and phone number.







          share|improve this answer





















          • 2





            damn never knew about that kind of manual. Thank you sir.

            – Private
            Feb 14 '14 at 13:32








          • 34





            Actually GECOS is really badly explained in the manpage. It's the part where it asks for real name, phone etc. en.wikipedia.org/wiki/Gecos_field

            – benjaoming
            Jan 11 '16 at 14:55






          • 6





            This answers does not explain what gecos is. I came here looking for this info too. Nor does it explain that --disabled-login does not actually disable login as the man implies. it just disables login via password. It is usually used when you set the certificate for cert based ssh login.

            – John Little
            May 22 '18 at 17:59













          • I actually used GCOS systems way back in the day, so seeing this field brings back memories of being a carefree if very geeky high school senior. :-)

            – fool4jesus
            Oct 25 '18 at 20:47
















          21














          It's all written in the manual page!



          enter image description here



          You don't need to install something, to search on google or to have an internet connection. Just open your terminal and first of all you must to run the following command:



          man adduser


          to open the manual page for adduser command.



          Then, in that manual page type: /--disabled-login followed by Enter then press repetitively n to find all occurrences containing --disabled-login. Do the same for --gecos.



          With a little bit of luck you will find out that:




          --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.



          and:




          --gecos GECOS
          Set the gecos field for the new entry generated. adduser will
          not ask for finger information if this option is given.



          For those wondering what gecos actually is, wikipedia defines it as follows:




          The gecos field, or GECOS field is an entry in the /etc/passwd file on Unix, and similar operating systems. It is typically used to record general information about the account or its user(s) such as their real name and phone number.







          share|improve this answer





















          • 2





            damn never knew about that kind of manual. Thank you sir.

            – Private
            Feb 14 '14 at 13:32








          • 34





            Actually GECOS is really badly explained in the manpage. It's the part where it asks for real name, phone etc. en.wikipedia.org/wiki/Gecos_field

            – benjaoming
            Jan 11 '16 at 14:55






          • 6





            This answers does not explain what gecos is. I came here looking for this info too. Nor does it explain that --disabled-login does not actually disable login as the man implies. it just disables login via password. It is usually used when you set the certificate for cert based ssh login.

            – John Little
            May 22 '18 at 17:59













          • I actually used GCOS systems way back in the day, so seeing this field brings back memories of being a carefree if very geeky high school senior. :-)

            – fool4jesus
            Oct 25 '18 at 20:47














          21












          21








          21







          It's all written in the manual page!



          enter image description here



          You don't need to install something, to search on google or to have an internet connection. Just open your terminal and first of all you must to run the following command:



          man adduser


          to open the manual page for adduser command.



          Then, in that manual page type: /--disabled-login followed by Enter then press repetitively n to find all occurrences containing --disabled-login. Do the same for --gecos.



          With a little bit of luck you will find out that:




          --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.



          and:




          --gecos GECOS
          Set the gecos field for the new entry generated. adduser will
          not ask for finger information if this option is given.



          For those wondering what gecos actually is, wikipedia defines it as follows:




          The gecos field, or GECOS field is an entry in the /etc/passwd file on Unix, and similar operating systems. It is typically used to record general information about the account or its user(s) such as their real name and phone number.







          share|improve this answer















          It's all written in the manual page!



          enter image description here



          You don't need to install something, to search on google or to have an internet connection. Just open your terminal and first of all you must to run the following command:



          man adduser


          to open the manual page for adduser command.



          Then, in that manual page type: /--disabled-login followed by Enter then press repetitively n to find all occurrences containing --disabled-login. Do the same for --gecos.



          With a little bit of luck you will find out that:




          --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.



          and:




          --gecos GECOS
          Set the gecos field for the new entry generated. adduser will
          not ask for finger information if this option is given.



          For those wondering what gecos actually is, wikipedia defines it as follows:




          The gecos field, or GECOS field is an entry in the /etc/passwd file on Unix, and similar operating systems. It is typically used to record general information about the account or its user(s) such as their real name and phone number.








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 mins ago









          paradoX

          1031




          1031










          answered Feb 14 '14 at 11:17









          Radu RădeanuRadu Rădeanu

          120k35252328




          120k35252328








          • 2





            damn never knew about that kind of manual. Thank you sir.

            – Private
            Feb 14 '14 at 13:32








          • 34





            Actually GECOS is really badly explained in the manpage. It's the part where it asks for real name, phone etc. en.wikipedia.org/wiki/Gecos_field

            – benjaoming
            Jan 11 '16 at 14:55






          • 6





            This answers does not explain what gecos is. I came here looking for this info too. Nor does it explain that --disabled-login does not actually disable login as the man implies. it just disables login via password. It is usually used when you set the certificate for cert based ssh login.

            – John Little
            May 22 '18 at 17:59













          • I actually used GCOS systems way back in the day, so seeing this field brings back memories of being a carefree if very geeky high school senior. :-)

            – fool4jesus
            Oct 25 '18 at 20:47














          • 2





            damn never knew about that kind of manual. Thank you sir.

            – Private
            Feb 14 '14 at 13:32








          • 34





            Actually GECOS is really badly explained in the manpage. It's the part where it asks for real name, phone etc. en.wikipedia.org/wiki/Gecos_field

            – benjaoming
            Jan 11 '16 at 14:55






          • 6





            This answers does not explain what gecos is. I came here looking for this info too. Nor does it explain that --disabled-login does not actually disable login as the man implies. it just disables login via password. It is usually used when you set the certificate for cert based ssh login.

            – John Little
            May 22 '18 at 17:59













          • I actually used GCOS systems way back in the day, so seeing this field brings back memories of being a carefree if very geeky high school senior. :-)

            – fool4jesus
            Oct 25 '18 at 20:47








          2




          2





          damn never knew about that kind of manual. Thank you sir.

          – Private
          Feb 14 '14 at 13:32







          damn never knew about that kind of manual. Thank you sir.

          – Private
          Feb 14 '14 at 13:32






          34




          34





          Actually GECOS is really badly explained in the manpage. It's the part where it asks for real name, phone etc. en.wikipedia.org/wiki/Gecos_field

          – benjaoming
          Jan 11 '16 at 14:55





          Actually GECOS is really badly explained in the manpage. It's the part where it asks for real name, phone etc. en.wikipedia.org/wiki/Gecos_field

          – benjaoming
          Jan 11 '16 at 14:55




          6




          6





          This answers does not explain what gecos is. I came here looking for this info too. Nor does it explain that --disabled-login does not actually disable login as the man implies. it just disables login via password. It is usually used when you set the certificate for cert based ssh login.

          – John Little
          May 22 '18 at 17:59







          This answers does not explain what gecos is. I came here looking for this info too. Nor does it explain that --disabled-login does not actually disable login as the man implies. it just disables login via password. It is usually used when you set the certificate for cert based ssh login.

          – John Little
          May 22 '18 at 17:59















          I actually used GCOS systems way back in the day, so seeing this field brings back memories of being a carefree if very geeky high school senior. :-)

          – fool4jesus
          Oct 25 '18 at 20:47





          I actually used GCOS systems way back in the day, so seeing this field brings back memories of being a carefree if very geeky high school senior. :-)

          – fool4jesus
          Oct 25 '18 at 20:47


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f420784%2fwhat-do-the-disabled-login-and-gecos-options-of-adduser-command-stand%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          GameSpot

          connect to host localhost port 22: Connection refused

          Getting a Wifi WPA2 wifi connection