Skip to content

Commit c883d07

Browse files
authored
Merge pull request #1175 from rexkerr/sudo-usage-fix
Fix usage of sudo to edit file
2 parents f50f0c0 + 9a8258d commit c883d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/04-git-server/sections/setting-up-server.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ To do so, you must first add the full pathname of the `git-shell` command to `/e
9797
----
9898
$ cat /etc/shells # see if `git-shell` is already in there. If not...
9999
$ which git-shell # make sure git-shell is installed on your system.
100-
$ sudo vim /etc/shells # and add the path to git-shell from last command
100+
$ sudo -e /etc/shells # and add the path to git-shell from last command
101101
----
102102

103103
Now you can edit the shell for a user using `chsh <username> -s <shell>`:

0 commit comments

Comments
 (0)