Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/system/xbin/dnscrypt-proxy: can't execute: Permission denied #1512

Closed
ThierryHFR opened this issue Nov 17, 2020 · 3 comments
Closed

/system/xbin/dnscrypt-proxy: can't execute: Permission denied #1512

ThierryHFR opened this issue Nov 17, 2020 · 3 comments
Labels

Comments

@ThierryHFR
Copy link

Hi all,
I wanted to install DNSCcript-proxy on my phone :
My phone is rooted.
I'm describing my installation, I may have made a mistake :

# from my computer
wget https://github.com/DNSCrypt/dnscrypt-proxy/releases/download/2.0.44/dnscrypt-proxy-android_arm-2.0.44.zip
# unzip an move on the device dnscrypt-proxy-android_arm-2.0.44.zip
adb shell

# once on the device
su
mount -o remount,rw -t ext4 /system
cp /sdcard/dnscrypt-proxy-android/dnscrypt-proxy /system/xbin/
mkdir /data/local/dnscrypt-proxy
cp /sdcard/dnscrypt-proxy-android/dnscrypt-proxy.toml /data/local/dnscrypt-proxy/
chmod +x /data/local/dnscrypt-proxy
mkdir /etc/init.d
chmod +x /etc/init.d
cp /sdcard/dnscrypt-proxy-android/99dnscrypt /etc/init.d/
chmod 755 /etc/init.d/99dnscrypt
chgrp shell /etc/init.d/99dnscrypt
## met le contenu, le script fourni ne contient pas d'erreur !
touch /system/etc/init/init_d.rc
cat > /system/etc/init/init_d.rc << EOF
service init_d /system/bin/sh /system/bin/sysinit
    user root
    group root
    disabled
    oneshot
    seclabel u:r:sudaemon:s0

on property:sys.boot_completed=1 && property:sys.logbootcomplete=1
    start init_d
EOF

Here is the mistake I encounter:

Ordissimo_LeNumero1_Mini:/ # /etc/init.d/99dnscrypt
Starting dnscrypt-proxy
.
.
.
failed to start dnscrypt-proxy
Try running '/etc/init.d/99dnscrypt --debug' or enable logging and check the logs for errors

Debug:

Ordissimo_LeNumero1_Mini:/ # /etc/init.d/99dnscrypt --debug
Attempting to run dnscrypt-proxy in foreground
Starting dnscrypt-proxy
/etc/init.d/99dnscrypt[78]: /system/xbin/dnscrypt-proxy: can't execute: Permission denied

All suggestions are welcome!

Thank you

@ignoramous
Copy link
Contributor

InviZible runs dnscrypt-proxy on Android, so you might want to try that.

As for serving dnscrypt + doh, take a look at this: https://github.com/jedisct1/encrypted-dns-server

@jedisct1 jedisct1 changed the title I want to run my own DNSCrypt and/or DoH server /system/xbin/dnscrypt-proxy: can't execute: Permission denied Nov 17, 2020
@jedisct1
Copy link
Member

Maybe you need to make the application executable:

chmod +x /system/xbin/dnscrypt-proxy

There is a thread dedicated to running dnscrypt-proxy on Android where you may find more useful information.

Alternatively, as suggested above, you can simply install Invizible Pro.

@LAfricain
Copy link

chmod +x /system/xbin/dnscrypt-proxy

This command solved the issue

@DNSCrypt DNSCrypt locked and limited conversation to collaborators Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants