Posted By

hamsterbacke82 on 10/29/10


Tagged

Bash owner permissions


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

hippopotamoi


permission change bash


 / Published in: Bash
 

  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  

You need to login to post a comment.