Termux files permission I have an issue with files permission in termux. For instance I installed c4droid and copied the termux include and lib folders content in the c4droid folder where the headers are being looked for at compilation. I changed the owner and group to the correct name and mode to 777 but at compilation it says "cannot open ****.h permission denied". Same thing with a worldlist that comes from the sd card that I put on a folder meant to be used with hydra, not only have I to use root access to unzip the file and move it around, but hydra itself can't open it. What is this so important thing that I am missing about termux and filed ownership and permissions ?
Okay, from the above comments, hinting toward SELinux blocking acces to the files that are being copied around to the /data/data/ directory of apps. Yes it is SELlinux blockibg the access, you need just to set it to permissive mode with SELinux_switch and dont forget to set the user and group to the app's one. Thank you.
[Edit]
Okay so copying the files from termux with the options -pZL keeps everything in place and once you set the correct owner ans group it will work, I have not tried having a symlink from the droidc includes and libs folder to termux's ones.
If you missed fixing permission while copying files, you cén use /system/bin/restorecon -R (recurse) one both include and lib folders.