Sfoglia il codice sorgente

Vagrant: allow su to www-data

Peter Barker 4 anni fa
parent
commit
cfe15ec38b
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      scripts/initvagrant.sh

+ 2 - 0
scripts/initvagrant.sh

@@ -94,6 +94,8 @@ systemctl reload apache2
 USER=www-data
 GROUP=www-data
 
+perl -pe 's%(www-data.*)/var/www::/usr/sbin/nologin%$1:/base:/bin/bash%' -i /etc/passwd
+
 # create and change permissions of /base - need to work out how to
 # effectively pass in --basedir to the WSGI at some stage
 for DIR in /base /base/builds /base/tmp; do