gitosis-gentoo (possibly gitosis as well) creates a user "git" to allow push/pull of repo's HOWEVER the user is disabled by default /etc/shadows git:!:14281:0:99999:7::: initial "git clone git@HOST:gitosis-admin.git" fails. git clone git@fluidGit:gitosis-admin.git Initialized empty Git repository in /home/jrb/CODE/gitRepo/gitosis-admin/.git/ Permission denied (publickey). entry in /var/log/auth.log Feb 6 21:01:12 FluidServer sshd[19873]: User git not allowed because account is locked changing the /etc/shadows entry to: git:*:14281:0:99999:7::: Allows git user to function as expected git clone git@fluidGit:gitosis-admin.git Initialized empty Git repository in /home/jrb/CODE/gitRepo/gitosis-admin/.git/ Enter passphrase for key '/home/jrb/.ssh/jrb@FluidServer_git': Receiving objects: 100% (5/5), done. remote: Counting objects: 5, done. remote: Compressing objects: 100% (4/4), done. remote: Total 5 (delta 0), reused 5 (delta 0) Reproducible: Always
I mean: * : User cannot login by password ! : User cannot login to the system
There is no way to tell enewuser to not lock the user. I added an information message instead.
Thanks, I have setup 3 gitosis systems and 2 of them I had to change the shadow entry so its not a hard and fast rule. I had a quick look in eutils w.r.t. enewuser and nothing sprang out an install message is probably the best thing