Commit 5e67e393 by Ned Batchelder

Get the sudo-ness of installation commands right.

parent c08967fb
...@@ -52,7 +52,7 @@ Other details here that depend on your configuration: ...@@ -52,7 +52,7 @@ Other details here that depend on your configuration:
using pip to install them:: using pip to install them::
$ source <SANDENV>/bin/activate $ source <SANDENV>/bin/activate
$ sudo pip install -r sandbox-requirements.txt $ pip install -r sandbox-requirements.txt
3. Add a sandbox user:: 3. Add a sandbox user::
...@@ -62,7 +62,7 @@ Other details here that depend on your configuration: ...@@ -62,7 +62,7 @@ Other details here that depend on your configuration:
4. Let the web server run the sandboxed Python as sandbox. Create the file 4. Let the web server run the sandboxed Python as sandbox. Create the file
`/etc/sudoers.d/01-sandbox`:: `/etc/sudoers.d/01-sandbox`::
$ visudo -f /etc/sudoers.d/01-sandbox $ sudo visudo -f /etc/sudoers.d/01-sandbox
<WWWUSER> ALL=(sandbox) SETENV:NOPASSWD:<SANDENV>/bin/python <WWWUSER> ALL=(sandbox) SETENV:NOPASSWD:<SANDENV>/bin/python
<WWWUSER> ALL=(ALL) NOPASSWD:/usr/bin/pkill <WWWUSER> ALL=(ALL) NOPASSWD:/usr/bin/pkill
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment