Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP saykou

30th April 2014, 11:14 PM   |  #1  
OP Junior Member
Thanks Meter: 1
 
11 posts
Join Date:Joined: Nov 2013
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
1st May 2014, 12:49 AM   |  #2  
CtrlAltDelIrl's Avatar
Senior Member
Thanks Meter: 834
 
1,386 posts
Join Date:Joined: Mar 2012
More
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!
1st May 2014, 09:37 AM   |  #3  
OP Junior Member
Thanks Meter: 1
 
11 posts
Join Date:Joined: 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

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!

2nd May 2014, 02:54 AM   |  #4  
CtrlAltDelIrl's Avatar
Senior Member
Thanks Meter: 834
 
1,386 posts
Join Date:Joined: Mar 2012
More
And what is your point then?. Your idea?
2nd May 2014, 03:15 AM   |  #5  
Planterz's Avatar
Senior Member
Flag Tucson, AZ
Thanks Meter: 274
 
974 posts
Join Date:Joined: Feb 2014
More
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?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes