permission change bash


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #!/bin/bash
  2. echo "Changing permissons for directory " $1 " ..."
  3. chmod $1 755
  4. chown $1 $2:psaserv
  5. find -type f -exec chmod 644 {} \;
  6. find -type f -exec chown $2:psacln {} \;
  7. find -type d -exec chmod 755 {} \;
  8. find -type d -exec chown $2:psaserv {} \;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.