/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/bash echo "Changing permissons for directory " $1 " ..." chmod $1 755 chown $1 $2:psaserv find -type f -exec chmod 644 {} \; find -type f -exec chown $2:psacln {} \; find -type d -exec chmod 755 {} \; find -type d -exec chown $2:psaserv {} \;