Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[Q] Why can't alter the su binary to have system access only instead of root

$
0
0
Hi,

Imagine a scenario where you have just system access on android , and you want to continually have it, so you use the su binary, with the correct permission and the setuid flag on, and the owner being system, you do:
Code:

chown 1000:1000 su2
chown 06755 su2

you have the ability to change the owner to system as you do when rooting, and you also set the appropriate permission as you do when rooting,

06775 being the permission code to all have execution permission, and the setuid flag on.

But when dealing with system permission that doesn't work. it only works with root.

I know it's a weird question, but if any could answer it, id be glad .... thanks

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>