aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-09 15:39:56 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-09 15:39:56 +0200
commitbdb80424adb6a3d0b37285f817118592f4e21b18 (patch)
treef447005becd79b0d2c1e5dee557428f9a66772eb /README.md
parent94c57fa247ba107fce8fc1d1fc355191229dbddc (diff)
downloadmain-bdb80424adb6a3d0b37285f817118592f4e21b18.tar.gz
main-bdb80424adb6a3d0b37285f817118592f4e21b18.tar.bz2
main-bdb80424adb6a3d0b37285f817118592f4e21b18.zip
Securing the security
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/README.md b/README.md
index f9498bd..4dcd1ec 100644
--- a/README.md
+++ b/README.md
@@ -10,13 +10,21 @@ $ sudo visudo
And add the following lines:
```text
-www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/apt-get
-www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/do-release-upgrade
+www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/mtsp-apt-get-1
+www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/mtsp-apt-get-2
+www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/mtsp-do-release-upgrade
www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/lshw
```
(replacing `www-data` by the name of the user that runs your Web server)
+You will need to :
+* create a `/usr/bin/mtsp-apt-get-1` file that does `apt-get update`
+* create a `/usr/bin/mtsp-apt-get-2` file that does `apt-get upgrade -s`
+* create a `/usr/bin/mtsp-do-release-upgrade` file that does `do-release-upgrade -c`
+
+And make sure to have the `x` permission bit so we can run these files!
+
### Groups
Add your server user (usually `www-data`) to the following groups:
* `syslog` (required to write /var/log)