Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ocpath='/home/owncloud'
- htuser='www-data'
- htgroup='www-data'
- rootuser='root'
- printf "Creating possible missing Directoriesn"
- mkdir -p $ocpath/data
- mkdir -p $ocpath/assets
- mkdir -p $ocpath/updater
- printf "chmod Files and Directoriesn"
- find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640
- find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750
- printf "chown Directoriesn"
- chown -R ${rootuser}:${htgroup} ${ocpath}/
- chown -R ${htuser}:${htgroup} ${ocpath}/apps/
- chown -R ${htuser}:${htgroup} ${ocpath}/assets/
- chown -R ${htuser}:${htgroup} ${ocpath}/config/
- chown -R ${htuser}:${htgroup} ${ocpath}/data/
- chown -R ${htuser}:${htgroup} ${ocpath}/themes/
- chown -R ${htuser}:${htgroup} ${ocpath}/updater/
- chmod +x ${ocpath}/occ
- printf "chmod/chown .htaccessn"
- if [ -f ${ocpath}/.htaccess ]
- then
- chmod 0644 ${ocpath}/.htaccess
- chown ${rootuser}:${htgroup} ${ocpath}/.htaccess
- fi
- if [ -f ${ocpath}/data/.htaccess ]
- then
- chmod 0644 ${ocpath}/data/.htaccess
- chown ${rootuser}:${htgroup} ${ocpath}/data/.htaccess
- fi
- ssh -p 1234 user@fakeraspi.ddns.net
- user@fakeraspi.ddns.net's password:
- /bin/bash: Permission denied
Add Comment
Please, Sign In to add comment