简体   繁体   中英

Workaround - Termux chmod +x doesn't apply

Workaround for Termux and chmod. Works!

Successfully cloned:

git clone https://github.com/xeffyr/termux-x-repository setup.sh

Even though the chmod command ran without error:

chmod +x setup.sh

I couldn't run the install script:

setup.sh --install

* permission denied *

Termux Workaround:

bash setup.sh --install

Apparently, this is due to a termux security limitation with files on an SDCard.

Sometimes there are bash scripts which need super user privileges, and if your phone isn't rooted, you can't run these scripts, but instead if you use Linux you can try download and use same program in terminal by typing sudo setup.sh --install

Check whether your sdcard have exec flag or noexec flag by running mount command in termux. If it is noexec then you can not run executable on sdcard.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM