What do the `--disabled-login` and `--gecos` options of `adduser` command stand for? The Next CEO of Stack OverflowLogin as non-root user in terminalWhat does ~$ stand for?What is the difference between adduser and useradd?Adduser: group sudo does not existWhat does Vi stand for?Cannot login on my ubuntu 14.04Adduser and setting up files for each new userWhat Does Parameter Stand For?Unknown group [somenamehere] in stateoverridevsftpd use users with /usr/sbin/nologin

How to pronounce fünf in 45

Early programmable calculators with RS-232

Oldie but Goldie

Does Germany produce more waste than the US?

That's an odd coin - I wonder why

How to show a landlord what we have in savings?

Is it possible to make a 9x9 table fit within the default margins?

How can I replace x-axis labels with pre-determined symbols?

Find the majority element, which appears more than half the time

MT "will strike" & LXX "will watch carefully" (Gen 3:15)?

How can I prove that a state of equilibrium is unstable?

How should I connect my cat5 cable to connectors having an orange-green line?

Masking layers by a vector polygon layer in QGIS

Does int main() need a declaration on C++?

Why does freezing point matter when picking cooler ice packs?

How badly should I try to prevent a user from XSSing themselves?

Can I cast Thunderwave and be at the center of its bottom face, but not be affected by it?

How to implement Comparable so it is consistent with identity-equality

Is a distribution that is normal, but highly skewed, considered Gaussian?

Why was Sir Cadogan fired?

Direct Implications Between USA and UK in Event of No-Deal Brexit

How to compactly explain secondary and tertiary characters without resorting to stereotypes?

How to find if SQL server backup is encrypted with TDE without restoring the backup

Is it reasonable to ask other researchers to send me their previous grant applications?



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



The Next CEO of Stack OverflowLogin as non-root user in terminalWhat does ~$ stand for?What is the difference between adduser and useradd?Adduser: group sudo does not existWhat does Vi stand for?Cannot login on my ubuntu 14.04Adduser and setting up files for each new userWhat Does Parameter Stand For?Unknown group [somenamehere] in stateoverridevsftpd use users with /usr/sbin/nologin










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 16 mins ago









          paradoX

          1032




          1032










          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

          Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

          Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

          Where is the suspend/hibernate button in GNOME Shell? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)No suspend option in UI on Bionic BeaverHow can I set sleep mode in ubuntu18.04 LTS and what is the short cut key to do so?17.10 suspend not availableUbuntu 18.04 LTS missing sleep optionUbuntu 18.04 LTS - missing suspend option when power button is pressedHow to put Thinkpad X1 Extreme to sleep in Ubuntu 18.10?Suspend Button in interactive power button menu18.04 - Keep programs running after logging outway to disable Hibernate from within gconf-editor so button disappears?How can I hibernate from GNOME Shell?How can I hibernate/suspend from the command line and do so at a specific timeNo permission to suspend/hibernate after upgrading to 12.10MATE - Missing Suspend and Hibernate buttons, pressing power button shutdowns system immediatelyUbuntu 14.04: Suspend, Hibernate and Suspend-hybrid in the menu?Change “power-button-action” comand for “hibernate” option in GNOME 3.18Shutdown / Power off button does always go to suspend on 17.10Hibernate after suspend stopped working in 17.10Why doesn't the keyboard screenshot button work on Ubuntu with GNOME shell?