Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/bin/bash
  2. echo "---- UPDATE PERMISSION example.net IMAGES ----"
  3. HOST="ftp.example.net"
  4. USER="usernmae"
  5. PASS="password"
  6. FTPURL="ftp://$USER:$PASS@$HOST"
  7. lftp <<EOF
  8. set ftp:ssl-allow no
  9. set ftp:passive-mode true
  10. set ftp:list-options -a
  11. open $FTPURL
  12. chmod -R 0777 --verbose /public_html/images/classes
  13. chmod -R 0777 --verbose /public_html/images/sponsors
  14. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement