We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dd6185 commit a5a7bddCopy full SHA for a5a7bdd
book/04-git-server/sections/setting-up-server.asc
@@ -94,11 +94,11 @@ $ which git-shell # make sure git-shell is installed on your system.
94
$ sudo vim /etc/shells # and add the path to git-shell from last command
95
----
96
97
-Now you can edit the shell for a user using `chsh <username>`:
+Now you can edit the shell for a user using `chsh <username> -s <shell>`:
98
99
[source,console]
100
101
-$ sudo chsh git # and enter the path to git-shell, usually: /usr/bin/git-shell
+$ sudo chsh git -s $(which git-shell)
102
103
104
Now, the `git` user can only use the SSH connection to push and pull Git repositories and can't shell onto the machine.
0 commit comments