diff --git a/FAQ.md b/FAQ.md index ad7198f..97fb59b 100644 --- a/FAQ.md +++ b/FAQ.md @@ -234,12 +234,16 @@ For most setups it is also possible to use the following script. Make sure to ed ```sh #!/bin/sh +# directories of privatebin pbpath='/var/www/privatebin' pbdata='/var/www/privatebin/data' -# htuser='www-data' (unused) +# user, of PrivateBin and web server (may be the same, as explained above) +pbuser='php' htgroup='www-data' rootuser='root' +mkdir -p "$pbdata" + echo "[chmod] files and directories" find "${pbpath}/" -type f -print0 | xargs -0 chmod 0640 find "${pbpath}/" -type d -print0 | xargs -0 chmod 0550 @@ -248,4 +252,5 @@ find "${pbdata}/" -type d -print0 | xargs -0 chmod 0750 echo "[chown] Directories" chown -R ${rootuser}:${htgroup} "${pbpath}/" +chown -R ${pbuser}:${rootuser} "${pbpath}/" ``` \ No newline at end of file