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?
Best Answer
It's all written in the manual page!
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:
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:
and:
For those wondering what gecos actually is, wikipedia defines it as follows: