Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/scripts/smc-fix-permissions.sh
1447 views
1
#!/usr/bin/env bash
2
# fixes the permissions to 022
3
DIR=${1:-.}
4
time chmod a+r -R $DIR && find $DIR -perm /u+x -execdir chmod a+x {} \; && echo "OK"
5
6