Tighten filesystem permission
This commit is contained in:
parent
89b3ea6e4f
commit
e14cb2e762
|
@ -1,4 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
# restrict everything
|
||||
chown -R spaceport:spaceport .
|
||||
chmod -R ug=rwX,o=rX .
|
||||
chmod -R ug=rwX,o= .
|
||||
|
||||
# allow access to static folders
|
||||
chmod o=rX .
|
||||
|
||||
chmod o=rX webclient/
|
||||
chmod -R o=rX webclient/build/
|
||||
|
||||
|
||||
chmod o=rX apiserver/
|
||||
|
||||
chmod o=rX apiserver/data/
|
||||
chmod -R o=rX apiserver/data/static/
|
||||
chmod -R o=rX apiserver/backups/
|
||||
|
||||
chmod o=rX apiserver/docs/
|
||||
chmod o=rX apiserver/docs/build/
|
||||
chmod -R o=rX apiserver/docs/build/html
|
||||
|
|
Loading…
Reference in New Issue
Block a user