Advertisement
Guest User

Zmena prav

a guest
Apr 19th, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. find . -type f -regex '.*\.txt$' -exec chmod u+r {} \;
  4. find . -type f ! -regex '.*\.txt$' -exec chmod 700 {} \;
  5. find . -type d ! -regex '^\.$' -exec chmod u+w {} \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement