Page MenuHomePhabricator

D11034.diff
No OneTemporary

D11034.diff

diff --git a/src/docs/user/userguide/diffusion_hosting.diviner b/src/docs/user/userguide/diffusion_hosting.diviner
--- a/src/docs/user/userguide/diffusion_hosting.diviner
+++ b/src/docs/user/userguide/diffusion_hosting.diviner
@@ -77,10 +77,12 @@
If you plan to use SSH:
+ Defaults:vcs-user !requiretty
vcs-user ALL=(daemon-user) SETENV: NOPASSWD: /path/to/bin/git-upload-pack, /path/to/bin/git-receive-pack, /path/to/bin/hg, /path/to/bin/svnserve
If you plan to use HTTP:
+ Defaults:www-user !requiretty
www-user ALL=(daemon-user) SETENV: NOPASSWD: /usr/bin/git-http-backend, /usr/bin/hg
Replace `vcs-user`, `www-user` and `daemon-user` with the right usernames for
@@ -91,13 +93,6 @@
Adding these commands to `sudoers` will allow the daemon and webserver users to
write to repositories as the daemon user.
-Before saving and closing `/etc/sudoers`, look for this line:
-
- Defaults requiretty
-
-If it's present, comment it out by putting a `#` at the beginning of the line.
-With this option enabled, VCS SSH sessions won't be able to use `sudo`.
-
If you're planning to use SSH, you should also edit `/etc/passwd` and
`/etc/shadow` to make sure the `vcs-user` account is set up correctly.

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 10, 10:09 AM (10 h, 25 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7426817
Default Alt Text
D11034.diff (1 KB)

Event Timeline