Skip to content

Instantly share code, notes, and snippets.

@simbo1905
Created February 12, 2018 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simbo1905/1d2d198db1c54b85e41b1389cd37dce8 to your computer and use it in GitHub Desktop.
Save simbo1905/1d2d198db1c54b85e41b1389cd37dce8 to your computer and use it in GitHub Desktop.
chmod recursively if you only have ftp and cpanel access
#!/bin/bash
lftp <<EOF
set ftp:ssl-allow no
set ftp:passive-mode true
set ftp:list-options -a
open -u user,password my.host.com
chmod -R 0777 /public_html/images/cache
EOF
# you can 'brew install lftp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment