meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.09k stars 681 forks source link

Enable all access to root user in buster (ex: ping not working) #1236

Open Schlew opened 3 years ago

Schlew commented 3 years ago

Hi,

After the successfull installation of debian Buster, I noticed that root user can't use the ping command (socket: Permission denied). Normal user can use it (with command sudo ping result is the same as root user). Any idea to enable this for root user? Thanks a lot. Schlew

Schlew commented 3 years ago

Hi! Nobody can help me or have the same pb? Linux deploy version: 2.6.0-259 Android version: 8.0.0 Magisk version: 20.4 Tested with armhf or arm64. Thanks

algj commented 3 years ago

Similar problem, but pinging in general does not work. Using Arch.

Schlew commented 3 years ago

I answer myself: add these two line in etc/group: inet:x:3003:root net_raw:x:3004:root and reboot! Hope this help!

Schlew commented 3 years ago

:x: = ": x :" without space and "

algj commented 3 years ago

Sadly this did not work for me: /etc/group

inet:x:3003:root
net_raw:x:3004:root

My problem is that ping does not even output anything, it's like it has frozen. Btw, I use Arch.

algj commented 3 years ago

It seems that ping command itself is not working for me, but using node.js with icmp module it seems that it is working. It seems that there's an issue with arch ping command or something else, if someone has the same problem you might want to try installing bwping (c, seems to work for me, does not have same interface as an usual ping) or 2ping (python, did not work for me).

eusoubrasileiro commented 3 years ago

same problem here Only fixed If I reboot my android.

okkokr commented 1 year ago

inet:x:3003:root net_raw:x:3004:root Only fixed If I reboot my android.
Thank you so much

devimauz commented 11 months ago

ping: socket: Operation not permitted doesn't work here