File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
book/04-git-server/sections Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,13 @@ You should note that currently all these users can also log into the server and
89
89
If you want to restrict that, you will have to change the shell to something else in the `/etc/passwd` file.
90
90
91
91
You can easily restrict the `git` user account to only Git-related activities with a limited shell tool called `git-shell` that comes with Git.
92
- If you set this as the `git` user account's login shell, then that account can't have normal shell access to your server.
93
- To use this, specify `git-shell` instead of bash or csh for that account's login shell.
92
+ If you set this as the `git` user account's login shell, then that account can't have normal shell access to your server.
93
+ To use this, specify `git-shell` instead of ` bash` or ` csh` for that account's login shell.
94
94
To do so, you must first add the full pathname of the `git-shell` command to `/etc/shells` if it's not already there:
95
95
96
96
[source,console]
97
97
----
98
- $ cat /etc/shells # see if ` git-shell` is already in there. If not...
98
+ $ cat /etc/shells # see if git-shell is already in there. If not...
99
99
$ which git-shell # make sure git-shell is installed on your system.
100
100
$ sudo -e /etc/shells # and add the path to git-shell from last command
101
101
----
You can’t perform that action at this time.
0 commit comments