Created
February 12, 2018 20:22
-
-
Save simbo1905/1d2d198db1c54b85e41b1389cd37dce8 to your computer and use it in GitHub Desktop.
chmod recursively if you only have ftp and cpanel access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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