소스 검색

Vagrant: allow su to www-data

Peter Barker 4 년 전
부모
커밋
cfe15ec38b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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