Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,814,032 Members 44,176 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
saykou
Old
#1  
Junior Member - OP
Thanks Meter 1
Posts: 11
Join Date: Nov 2013
Default [Q] Why can't alter the su binary to have system access only instead of root

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
 
CtrlAltDelIrl
Old
#2  
CtrlAltDelIrl's Avatar
Senior Member
Thanks Meter 834
Posts: 1,387
Join Date: Mar 2012
If i get you right you want your /system to be rw by user, without root?

Why on earth would you want such an insecure system?

It is a silly idea!
My PM is not for your personal help or support All support requests will be ignored.
 
saykou
Old
#3  
Junior Member - OP
Thanks Meter 1
Posts: 11
Join Date: Nov 2013
No, i want to su binary to work for system user, as it works for root user, when you just have system access. system user,
is much like root, but with less power. its uid is 1000.


Quote:
Originally Posted by CtrlAltDelIrl View Post
If i get you right you want your /system to be rw by user, without root?

Why on earth would you want such an insecure system?

It is a silly idea!
 
CtrlAltDelIrl
Old
#4  
CtrlAltDelIrl's Avatar
Senior Member
Thanks Meter 834
Posts: 1,387
Join Date: Mar 2012
And what is your point then?. Your idea?
My PM is not for your personal help or support All support requests will be ignored.
 
Planterz
Old
#5  
Planterz's Avatar
Senior Member
Thanks Meter 189
Posts: 671
Join Date: Feb 2014
Location: Tucson, AZ
I don't get it. Isn't having system access and having "root" the same thing? I mean, the definition of "root" is having system access, no?
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes