gitlab構築時に気になったコマンドを調べる

adduser

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

adduser

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

       --disabled-password
              Like --disabled-login, but logins are still possible (for  exam-
              ple using SSH RSA keys) but not using password authentication.
--gecos
--gecos

はGECOSフィールドというところに GitLabという文字列を登録している?

sudo

-u
root以外のユーザーで実行するときに指定
-H
$HOMEをそのユーザーのものにする