Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android modified su binary failes on setgid

I have created a custom su binary for testing purposes.

I have copied the binary to /system/xbin/mod_su

I have changed the files permissions with chmod 6755 /system/xbin/mod_su,

but still when I run the binary as a non-root user I fail on setgid(0) with 'Operation not permitted1'

Any ideas why this could happen ?

isn't 6755 permmisons enough ?

like image 655
jacob Avatar asked Jun 22 '26 21:06

jacob


1 Answers

Did you chown root.root it before chmod?

like image 81
skoperst Avatar answered Jun 24 '26 11:06

skoperst



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!