Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.mobile.android > #45322 > unrolled thread

True? Unlocked phone + su == rooted?

Started by"Charles T. Smith" <cts.private.yahoo@gmail.com>
First post2017-07-20 12:36 +0000
Last post2017-07-21 08:04 +0000
Articles 20 on this page of 23 — 8 participants

Back to article view | Back to comp.mobile.android


Contents

  True?  Unlocked phone + su == rooted? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-20 12:36 +0000
    Re: True?  Unlocked phone + su == rooted? Whiskers <catwheezel@operamail.com> - 2017-07-20 14:10 +0100
      Re: True?  Unlocked phone + su == rooted? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-20 13:11 +0000
        Re: True?  Unlocked phone + su == rooted? Whiskers <catwheezel@operamail.com> - 2017-07-20 20:44 +0100
          Re: True?  Unlocked phone + su == rooted? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-20 20:51 +0000
            Re: True?  Unlocked phone + su == rooted? John B. <slocombjb@gmail.com> - 2017-07-21 06:39 +0700
              Re: True?  Unlocked phone + su == rooted? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-21 07:52 +0000
            Re: True?  Unlocked phone + su == rooted? Whiskers <catwheezel@operamail.com> - 2017-07-21 12:54 +0100
              Re: True?  Unlocked phone + su == rooted? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-21 12:22 +0000
                Re: True? Unlocked phone + su == rooted? "Carlos E.R." <robin_listas@es.invalid> - 2017-07-21 15:12 +0200
                  Re: True? Unlocked phone + su == rooted? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-21 13:27 +0000
                  Re: True? Unlocked phone + su == rooted? Chris Green <cl@isbd.net> - 2017-07-21 14:42 +0100
                    Re: True? Unlocked phone + su == rooted? "Carlos E.R." <robin_listas@es.invalid> - 2017-07-21 20:06 +0200
                      Re: True? Unlocked phone + su == rooted? Whiskers <catwheezel@operamail.com> - 2017-07-21 21:48 +0100
                      Re: True? Unlocked phone + su == rooted? Chris Green <cl@isbd.net> - 2017-07-22 08:43 +0100
                        Re: True? Unlocked phone + su == rooted? Whiskers <catwheezel@operamail.com> - 2017-07-22 15:08 +0100
    Re: True?  Unlocked phone + su == rooted? micky <NONONOmisc07@bigfoot.com> - 2017-07-20 22:42 -0400
      Re: True?  Unlocked phone + su == rooted? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-21 07:45 +0000
    Re: True?  Unlocked phone + su == rooted? Bob Martin <bob.martin@excite.com> - 2017-07-21 08:20 +0100
      Re: True?  Unlocked phone + su == rooted? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-21 07:59 +0000
        Re: True?  Unlocked phone + su == rooted? Bob Martin <bob.martin@excite.com> - 2017-07-22 08:53 +0100
    Re: True? Unlocked phone + su == rooted? Desmond Riverton <des@private.invalid> - 2017-07-21 07:51 +0000
      Re: True? Unlocked phone + su == rooted? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2017-07-21 08:04 +0000

Page 1 of 2  [1] 2  Next page →


#45322 — True? Unlocked phone + su == rooted?

From"Charles T. Smith" <cts.private.yahoo@gmail.com>
Date2017-07-20 12:36 +0000
SubjectTrue? Unlocked phone + su == rooted?
Message-ID<okq85a$b9i$3@dont-email.me>
Hi,

I have successfully unlocked my motorola phone using the motolora support page.

Unfortunately, the motorola device does not have su(1) on it.

If I were to get an su binary from somewhere (like, compile it myself), and
store it on the sd-card or in some download directory, would I effectively
have rooted my device?

Without having to load some unknown binary from some hackers somewhere (like
superSu) in order to do it?

[toc] | [next] | [standalone]


#45331

FromWhiskers <catwheezel@operamail.com>
Date2017-07-20 14:10 +0100
Message-ID<slrnon1au7.2ss.catwheezel@ID-107770.user.individual.net>
In reply to#45322
On 2017-07-20, Charles T. Smith <cts.private.yahoo@gmail.com> wrote:
> Hi,
>
> I have successfully unlocked my motorola phone using the motolora support page.
>
> Unfortunately, the motorola device does not have su(1) on it.
>
> If I were to get an su binary from somewhere (like, compile it myself), and
> store it on the sd-card or in some download directory, would I effectively
> have rooted my device?
>
> Without having to load some unknown binary from some hackers somewhere (like
> superSu) in order to do it?

I don't think so.  You have to make the file 'executable' by your root
user, and to do that you'd need to be 'root' or have root powers
already.

-- 
-- ^^^^^^^^^^
--  Whiskers
-- ~~~~~~~~~~

[toc] | [prev] | [next] | [standalone]


#45332

From"Charles T. Smith" <cts.private.yahoo@gmail.com>
Date2017-07-20 13:11 +0000
Message-ID<okqa6r$b9i$4@dont-email.me>
In reply to#45331
On Thu, 20 Jul 2017 14:10:29 +0100, Whiskers wrote:

> On 2017-07-20, Charles T. Smith <cts.private.yahoo@gmail.com> wrote:
>> Hi,
>>
>> I have successfully unlocked my motorola phone using the motolora support page.
>>
>> Unfortunately, the motorola device does not have su(1) on it.
>>
>> If I were to get an su binary from somewhere (like, compile it myself), and
>> store it on the sd-card or in some download directory, would I effectively
>> have rooted my device?
>>
>> Without having to load some unknown binary from some hackers somewhere (like
>> superSu) in order to do it?
> 
> I don't think so.  You have to make the file 'executable' by your root
> user, and to do that you'd need to be 'root' or have root powers
> already.


If I compiled it, it would have execute permissions - unless all writable
directories are mounted with the -noexec attribute ...


All the web pages I read on the web imply that you have to flash the rom.
Is that really necessary?  

[toc] | [prev] | [next] | [standalone]


#45341

FromWhiskers <catwheezel@operamail.com>
Date2017-07-20 20:44 +0100
Message-ID<slrnon220t.21u.catwheezel@ID-107770.user.individual.net>
In reply to#45332
On 2017-07-20, Charles T. Smith <cts.private.yahoo@gmail.com> wrote:
> On Thu, 20 Jul 2017 14:10:29 +0100, Whiskers wrote:
>
>> On 2017-07-20, Charles T. Smith <cts.private.yahoo@gmail.com> wrote:
>>> Hi,
>>>
>>> I have successfully unlocked my motorola phone using the motolora support page.
>>>
>>> Unfortunately, the motorola device does not have su(1) on it.
>>>
>>> If I were to get an su binary from somewhere (like, compile it myself), and
>>> store it on the sd-card or in some download directory, would I effectively
>>> have rooted my device?
>>>
>>> Without having to load some unknown binary from some hackers somewhere (like
>>> superSu) in order to do it?
>> 
>> I don't think so.  You have to make the file 'executable' by your root
>> user, and to do that you'd need to be 'root' or have root powers
>> already.
>
>
> If I compiled it, it would have execute permissions - unless all writable
> directories are mounted with the -noexec attribute ...
>
>
> All the web pages I read on the web imply that you have to flash the rom.
> Is that really necessary?  

I believe so.  There's more to it than just copying 'su'.

-- 
-- ^^^^^^^^^^
--  Whiskers
-- ~~~~~~~~~~

[toc] | [prev] | [next] | [standalone]


#45342

From"Charles T. Smith" <cts.private.yahoo@gmail.com>
Date2017-07-20 20:51 +0000
Message-ID<okr53s$via$1@dont-email.me>
In reply to#45341
On Thu, 20 Jul 2017 20:44:27 +0100, Whiskers wrote:

> On 2017-07-20, Charles T. Smith <cts.private.yahoo@gmail.com> wrote:
>> On Thu, 20 Jul 2017 14:10:29 +0100, Whiskers wrote:
>>
>>> On 2017-07-20, Charles T. Smith <cts.private.yahoo@gmail.com> wrote:
>>>> Hi,
>>>>
>>>> I have successfully unlocked my motorola phone using the motolora support page.
>>>>
>>>> Unfortunately, the motorola device does not have su(1) on it.
>>>>
>>>> If I were to get an su binary from somewhere (like, compile it myself), and
>>>> store it on the sd-card or in some download directory, would I effectively
>>>> have rooted my device?
>>>>
>>>> Without having to load some unknown binary from some hackers somewhere (like
>>>> superSu) in order to do it?
>>> 
>>> I don't think so.  You have to make the file 'executable' by your root
>>> user, and to do that you'd need to be 'root' or have root powers
>>> already.
>>
>>
>> If I compiled it, it would have execute permissions - unless all writable
>> directories are mounted with the -noexec attribute ...
>>
>>
>> All the web pages I read on the web imply that you have to flash the rom.
>> Is that really necessary?  
> 
> I believe so.  There's more to it than just copying 'su'.

But most people say, su is in /storage/xbin - but it's not on my phone.
It seems that most vendors supply it but it doesn't work when the phone
is locked?  Or does superSu move it there?

In the end, in this first step, all I want is a working su.  The rom is
okay.  Why would I need to flash anythng?  How is this linux different
from other liinuxes?  Why can't I just enter directories I want to enter
or look at files I want to see?

[toc] | [prev] | [next] | [standalone]


#45346

FromJohn B. <slocombjb@gmail.com>
Date2017-07-21 06:39 +0700
Message-ID<lue2nctklj48utnciuk20lah61t18it85u@4ax.com>
In reply to#45342
On Thu, 20 Jul 2017 20:51:08 -0000 (UTC), "Charles T. Smith"
<cts.private.yahoo@gmail.com> wrote:

>On Thu, 20 Jul 2017 20:44:27 +0100, Whiskers wrote:
>
>> On 2017-07-20, Charles T. Smith <cts.private.yahoo@gmail.com> wrote:
>>> On Thu, 20 Jul 2017 14:10:29 +0100, Whiskers wrote:
>>>
>>>> On 2017-07-20, Charles T. Smith <cts.private.yahoo@gmail.com> wrote:
>>>>> Hi,
>>>>>
>>>>> I have successfully unlocked my motorola phone using the motolora support page.
>>>>>
>>>>> Unfortunately, the motorola device does not have su(1) on it.
>>>>>
>>>>> If I were to get an su binary from somewhere (like, compile it myself), and
>>>>> store it on the sd-card or in some download directory, would I effectively
>>>>> have rooted my device?
>>>>>
>>>>> Without having to load some unknown binary from some hackers somewhere (like
>>>>> superSu) in order to do it?
>>>> 
>>>> I don't think so.  You have to make the file 'executable' by your root
>>>> user, and to do that you'd need to be 'root' or have root powers
>>>> already.
>>>
>>>
>>> If I compiled it, it would have execute permissions - unless all writable
>>> directories are mounted with the -noexec attribute ...
>>>
>>>
>>> All the web pages I read on the web imply that you have to flash the rom.
>>> Is that really necessary?  
>> 
>> I believe so.  There's more to it than just copying 'su'.
>
>But most people say, su is in /storage/xbin - but it's not on my phone.
>It seems that most vendors supply it but it doesn't work when the phone
>is locked?  Or does superSu move it there?
>
>In the end, in this first step, all I want is a working su.  The rom is
>okay.  Why would I need to flash anythng?  How is this linux different
>from other liinuxes?  Why can't I just enter directories I want to enter
>or look at files I want to see?

Assuming that Android is similar in operation to Linux the "su"
problem is a bit more complex then just having the app "su" loaded in
the operating system. You would also require a "root" account and
password established. Which is, I would guess, the reason for the so
called "rooted" rom.

--
Cheers,

John B.

[toc] | [prev] | [next] | [standalone]


#45362

From"Charles T. Smith" <cts.private.yahoo@gmail.com>
Date2017-07-21 07:52 +0000
Message-ID<oksbsf$tto$6@dont-email.me>
In reply to#45346
On Fri, 21 Jul 2017 06:39:12 +0700, John B. wrote:


> Assuming that Android is similar in operation to Linux the "su"
> problem is a bit more complex then just having the app "su" loaded in
> the operating system. You would also require a "root" account and
> password established. Which is, I would guess, the reason for the so
> called "rooted" rom.

Well, there's always a UID 0.  I don't need /root/Desktop  ;-)

[toc] | [prev] | [next] | [standalone]


#45371

FromWhiskers <catwheezel@operamail.com>
Date2017-07-21 12:54 +0100
Message-ID<slrnon3qs9.2c7.catwheezel@ID-107770.user.individual.net>
In reply to#45342
On 2017-07-20, Charles T. Smith <cts.private.yahoo@gmail.com> wrote:
> On Thu, 20 Jul 2017 20:44:27 +0100, Whiskers wrote:
>
>> On 2017-07-20, Charles T. Smith <cts.private.yahoo@gmail.com> wrote:
>>> On Thu, 20 Jul 2017 14:10:29 +0100, Whiskers wrote:
>>>
>>>> On 2017-07-20, Charles T. Smith <cts.private.yahoo@gmail.com> wrote:

[...]

>>> All the web pages I read on the web imply that you have to flash the rom.
>>> Is that really necessary?  
>> 
>> I believe so.  There's more to it than just copying 'su'.
>
> But most people say, su is in /storage/xbin - but it's not on my phone.
> It seems that most vendors supply it but it doesn't work when the phone
> is locked?  Or does superSu move it there?
>
> In the end, in this first step, all I want is a working su.  The rom is
> okay.  Why would I need to flash anythng?  How is this linux different
> from other liinuxes?  Why can't I just enter directories I want to enter
> or look at files I want to see?

Android as installed by manufacturers appears to be set up so that there
is no way for a non-root user to gain root privileges.  That's a fairly
fundamental security feature.  The easiest way to get root privileges is
to install an operating system that isn't restricted in that way - ie,
'flash a new rom' in the Android jargon.  To do that, you need to
'unlock the bootloader' first, ie allow the device to boot from some
operating system that isn't the one it shipped with.

Su doesn't grant root privileges, it just lets you 'substitute user' -
ie do something as someone else, to the extent that the system is set up
to allow you to do that.  It will only give a user 'root powers' if the
system is already set up to allow such powers to that user.  If you
haven't got root power, you can't access the settings you need to give
yourself root powers.  Those settings are normally made as part of the
installation process.


-- 
-- ^^^^^^^^^^
--  Whiskers
-- ~~~~~~~~~~

[toc] | [prev] | [next] | [standalone]


#45374

From"Charles T. Smith" <cts.private.yahoo@gmail.com>
Date2017-07-21 12:22 +0000
Message-ID<oksrld$tto$14@dont-email.me>
In reply to#45371
On Fri, 21 Jul 2017 12:54:48 +0100, Whiskers wrote:


> 
> Su doesn't grant root privileges, it just lets you 'substitute user' -
> ie do something as someone else, to the extent that the system is set up
> to allow you to do that.  It will only give a user 'root powers' if the
> system is already set up to allow such powers to that user.  If you
> haven't got root power, you can't access the settings you need to give
> yourself root powers.  Those settings are normally made as part of the
> installation process.

I don't think that's an accurate description.  Su substitutes the user
as UID 0 and in any system that calls itself unix/linux, that user has
special permissions.

Now, there may be extra, explicit mechanisms designed to curtail that -
I'm trying to circumscribe those.

[toc] | [prev] | [next] | [standalone]


#45377 — Re: True? Unlocked phone + su == rooted?

From"Carlos E.R." <robin_listas@es.invalid>
Date2017-07-21 15:12 +0200
SubjectRe: True? Unlocked phone + su == rooted?
Message-ID<56b94e-1hc.ln1@Telcontar.valinor>
In reply to#45374
On 2017-07-21 14:22, Charles T. Smith wrote:
> On Fri, 21 Jul 2017 12:54:48 +0100, Whiskers wrote:
> 
> 
>>
>> Su doesn't grant root privileges, it just lets you 'substitute user' -
>> ie do something as someone else, to the extent that the system is set up
>> to allow you to do that.  It will only give a user 'root powers' if the
>> system is already set up to allow such powers to that user.  If you
>> haven't got root power, you can't access the settings you need to give
>> yourself root powers.  Those settings are normally made as part of the
>> installation process.
> 
> I don't think that's an accurate description.  Su substitutes the user
> as UID 0 and in any system that calls itself unix/linux, that user has
> special permissions.

No.

'su' substitutes the user as ANY other user you wish, not only as UID 0.

However, if you do not specify an user, "root" is assumed by default.


-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#45378 — Re: True? Unlocked phone + su == rooted?

From"Charles T. Smith" <cts.private.yahoo@gmail.com>
Date2017-07-21 13:27 +0000
SubjectRe: True? Unlocked phone + su == rooted?
Message-ID<oksvfj$tto$16@dont-email.me>
In reply to#45377
On Fri, 21 Jul 2017 15:12:05 +0200, Carlos E.R. wrote:

> On 2017-07-21 14:22, Charles T. Smith wrote:
>> On Fri, 21 Jul 2017 12:54:48 +0100, Whiskers wrote:
>> 
>> 
>>>
>>> Su doesn't grant root privileges, it just lets you 'substitute user' -
>>> ie do something as someone else, to the extent that the system is set up
>>> to allow you to do that.  It will only give a user 'root powers' if the
>>> system is already set up to allow such powers to that user.  If you
>>> haven't got root power, you can't access the settings you need to give
>>> yourself root powers.  Those settings are normally made as part of the
>>> installation process.
>> 
>> I don't think that's an accurate description.  Su substitutes the user
>> as UID 0 and in any system that calls itself unix/linux, that user has
>> special permissions.
> 
> No.
> 
> 'su' substitutes the user as ANY other user you wish, not only as UID 0.
> 
> However, if you do not specify an user, "root" is assumed by default.



Oh, okay, you're right.

[toc] | [prev] | [next] | [standalone]


#45379 — Re: True? Unlocked phone + su == rooted?

FromChris Green <cl@isbd.net>
Date2017-07-21 14:42 +0100
SubjectRe: True? Unlocked phone + su == rooted?
Message-ID<6vc94e-32g.ln1@esprimo.zbmc.eu>
In reply to#45377
Carlos E.R. <robin_listas@es.invalid> wrote:
> On 2017-07-21 14:22, Charles T. Smith wrote:
> > On Fri, 21 Jul 2017 12:54:48 +0100, Whiskers wrote:
> > 
> > 
> >>
> >> Su doesn't grant root privileges, it just lets you 'substitute user' -
> >> ie do something as someone else, to the extent that the system is set up
> >> to allow you to do that.  It will only give a user 'root powers' if the
> >> system is already set up to allow such powers to that user.  If you
> >> haven't got root power, you can't access the settings you need to give
> >> yourself root powers.  Those settings are normally made as part of the
> >> installation process.
> > 
> > I don't think that's an accurate description.  Su substitutes the user
> > as UID 0 and in any system that calls itself unix/linux, that user has
> > special permissions.
> 
> No.
> 
> 'su' substitutes the user as ANY other user you wish, not only as UID 0.
> 
> However, if you do not specify an user, "root" is assumed by default.
> 
... and, as the top bit above says, if you don't have the privileges
required to become root you won't be allowed to become root, you'll
just see an error message of some sort.

In fact if you just type 'su' at the command prompt it will (as
stated) assume you want to do 'su root' and will ask for the root
password.  Some (linux) systems such as the Ubuntu family don't have a
root account which you can log in to so 'su' by itself doesn't do
anything useful, it will ask for a password but no password is set up
so it won't work.

-- 
Chris Green
·

[toc] | [prev] | [next] | [standalone]


#45381 — Re: True? Unlocked phone + su == rooted?

From"Carlos E.R." <robin_listas@es.invalid>
Date2017-07-21 20:06 +0200
SubjectRe: True? Unlocked phone + su == rooted?
Message-ID<mes94e-a9r.ln1@Telcontar.valinor>
In reply to#45379
On 2017-07-21 15:42, Chris Green wrote:
> Carlos E.R. <robin_listas@es.invalid> wrote:
>> On 2017-07-21 14:22, Charles T. Smith wrote:
>>> On Fri, 21 Jul 2017 12:54:48 +0100, Whiskers wrote:
>>>
>>>
>>>>
>>>> Su doesn't grant root privileges, it just lets you 'substitute user' -
>>>> ie do something as someone else, to the extent that the system is set up
>>>> to allow you to do that.  It will only give a user 'root powers' if the
>>>> system is already set up to allow such powers to that user.  If you
>>>> haven't got root power, you can't access the settings you need to give
>>>> yourself root powers.  Those settings are normally made as part of the
>>>> installation process.
>>>
>>> I don't think that's an accurate description.  Su substitutes the user
>>> as UID 0 and in any system that calls itself unix/linux, that user has
>>> special permissions.
>>
>> No.
>>
>> 'su' substitutes the user as ANY other user you wish, not only as UID 0.
>>
>> However, if you do not specify an user, "root" is assumed by default.
>>
> ... and, as the top bit above says, if you don't have the privileges
> required to become root you won't be allowed to become root, you'll
> just see an error message of some sort.
> 
> In fact if you just type 'su' at the command prompt it will (as
> stated) assume you want to do 'su root' and will ask for the root
> password.  Some (linux) systems such as the Ubuntu family don't have a
> root account which you can log in to so 'su' by itself doesn't do
> anything useful, it will ask for a password but no password is set up
> so it won't work.

But in ubuntu you can do instead (unless they have changed things since
I last tried):

sudo su

which does work. Once there, you create a root password, and from then
on "su" does work. This is possible because "sudo" exists and works, and
the "sudo" binary has the appropriate permissions (has the suid bit).


-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#45383 — Re: True? Unlocked phone + su == rooted?

FromWhiskers <catwheezel@operamail.com>
Date2017-07-21 21:48 +0100
SubjectRe: True? Unlocked phone + su == rooted?
Message-ID<slrnon4q44.c6f.catwheezel@ID-107770.user.individual.net>
In reply to#45381
On 2017-07-21, Carlos E.R. <robin_listas@es.invalid> wrote:
> On 2017-07-21 15:42, Chris Green wrote:
>> Carlos E.R. <robin_listas@es.invalid> wrote:
>>> On 2017-07-21 14:22, Charles T. Smith wrote:
>>>> On Fri, 21 Jul 2017 12:54:48 +0100, Whiskers wrote:
>>>>
>>>>
>>>>>
>>>>> Su doesn't grant root privileges, it just lets you 'substitute user' -
>>>>> ie do something as someone else, to the extent that the system is set up
>>>>> to allow you to do that.  It will only give a user 'root powers' if the
>>>>> system is already set up to allow such powers to that user.  If you
>>>>> haven't got root power, you can't access the settings you need to give
>>>>> yourself root powers.  Those settings are normally made as part of the
>>>>> installation process.
>>>>
>>>> I don't think that's an accurate description.  Su substitutes the user
>>>> as UID 0 and in any system that calls itself unix/linux, that user has
>>>> special permissions.
>>>
>>> No.
>>>
>>> 'su' substitutes the user as ANY other user you wish, not only as UID 0.
>>>
>>> However, if you do not specify an user, "root" is assumed by default.
>>>
>> ... and, as the top bit above says, if you don't have the privileges
>> required to become root you won't be allowed to become root, you'll
>> just see an error message of some sort.
>> 
>> In fact if you just type 'su' at the command prompt it will (as
>> stated) assume you want to do 'su root' and will ask for the root
>> password.  Some (linux) systems such as the Ubuntu family don't have a
>> root account which you can log in to so 'su' by itself doesn't do
>> anything useful, it will ask for a password but no password is set up
>> so it won't work.
>
> But in ubuntu you can do instead (unless they have changed things since
> I last tried):
>
> sudo su
>
> which does work. Once there, you create a root password, and from then
> on "su" does work. This is possible because "sudo" exists and works, and
> the "sudo" binary has the appropriate permissions (has the suid bit).

That'll only work if your user is already permitted to use sudo to get
root permissions.  Otherwise you're still stuck on the outside of that
circle.

Android installations do have a root user (or 'superuser' to use another
term); usually, it's Google or Motorola or HTC or whoever.  Ubuntu also
has a user with access to root powers; usually, whoever installed the
system decides who that will be.  Install your own system, and you too
can be root.

-- 
-- ^^^^^^^^^^
--  Whiskers
-- ~~~~~~~~~~

[toc] | [prev] | [next] | [standalone]


#45389 — Re: True? Unlocked phone + su == rooted?

FromChris Green <cl@isbd.net>
Date2017-07-22 08:43 +0100
SubjectRe: True? Unlocked phone + su == rooted?
Message-ID<eacb4e-dvv.ln1@esprimo.zbmc.eu>
In reply to#45381
Carlos E.R. <robin_listas@es.invalid> wrote:
> On 2017-07-21 15:42, Chris Green wrote:
> > Carlos E.R. <robin_listas@es.invalid> wrote:
> >> On 2017-07-21 14:22, Charles T. Smith wrote:
> >>> On Fri, 21 Jul 2017 12:54:48 +0100, Whiskers wrote:
> >>>
> >>>
> >>>>
> >>>> Su doesn't grant root privileges, it just lets you 'substitute user' -
> >>>> ie do something as someone else, to the extent that the system is set up
> >>>> to allow you to do that.  It will only give a user 'root powers' if the
> >>>> system is already set up to allow such powers to that user.  If you
> >>>> haven't got root power, you can't access the settings you need to give
> >>>> yourself root powers.  Those settings are normally made as part of the
> >>>> installation process.
> >>>
> >>> I don't think that's an accurate description.  Su substitutes the user
> >>> as UID 0 and in any system that calls itself unix/linux, that user has
> >>> special permissions.
> >>
> >> No.
> >>
> >> 'su' substitutes the user as ANY other user you wish, not only as UID 0.
> >>
> >> However, if you do not specify an user, "root" is assumed by default.
> >>
> > ... and, as the top bit above says, if you don't have the privileges
> > required to become root you won't be allowed to become root, you'll
> > just see an error message of some sort.
> > 
> > In fact if you just type 'su' at the command prompt it will (as
> > stated) assume you want to do 'su root' and will ask for the root
> > password.  Some (linux) systems such as the Ubuntu family don't have a
> > root account which you can log in to so 'su' by itself doesn't do
> > anything useful, it will ask for a password but no password is set up
> > so it won't work.
> 
> But in ubuntu you can do instead (unless they have changed things since
> I last tried):
> 
> sudo su
> 
> which does work. Once there, you create a root password, and from then
> on "su" does work. This is possible because "sudo" exists and works, and
> the "sudo" binary has the appropriate permissions (has the suid bit).
> 
Well it will work only if 'you' (the user who issued the 'sudo su')
has root privileges in the sudo configuration.  ... and there are endless
arguments about whether having a root account is a good idea or not.

-- 
Chris Green
·

[toc] | [prev] | [next] | [standalone]


#45399 — Re: True? Unlocked phone + su == rooted?

FromWhiskers <catwheezel@operamail.com>
Date2017-07-22 15:08 +0100
SubjectRe: True? Unlocked phone + su == rooted?
Message-ID<slrnon6n24.43l.catwheezel@ID-107770.user.individual.net>
In reply to#45389
On 2017-07-22, Chris Green <cl@isbd.net> wrote:
> Carlos E.R. <robin_listas@es.invalid> wrote:
>> On 2017-07-21 15:42, Chris Green wrote:
>> > Carlos E.R. <robin_listas@es.invalid> wrote:
>> >> On 2017-07-21 14:22, Charles T. Smith wrote:
>> >>> On Fri, 21 Jul 2017 12:54:48 +0100, Whiskers wrote:
>> >>>
>> >>>
>> >>>>
>> >>>> Su doesn't grant root privileges, it just lets you 'substitute
>> >>>> user' - ie do something as someone else, to the extent that the
>> >>>> system is set up to allow you to do that.  It will only give a
>> >>>> user 'root powers' if the system is already set up to allow such
>> >>>> powers to that user.  If you haven't got root power, you can't
>> >>>> access the settings you need to give yourself root powers.
>> >>>> Those settings are normally made as part of the installation
>> >>>> process.
>> >>>
>> >>> I don't think that's an accurate description.  Su substitutes the
>> >>> user as UID 0 and in any system that calls itself unix/linux,
>> >>> that user has special permissions.
>> >>
>> >> No.
>> >>
>> >> 'su' substitutes the user as ANY other user you wish, not only as
>> >> UID 0.
>> >>
>> >> However, if you do not specify an user, "root" is assumed by
>> >> default.
>> >>
>> > ... and, as the top bit above says, if you don't have the
>> > privileges required to become root you won't be allowed to become
>> > root, you'll just see an error message of some sort.
>> > 
>> > In fact if you just type 'su' at the command prompt it will (as
>> > stated) assume you want to do 'su root' and will ask for the root
>> > password.  Some (linux) systems such as the Ubuntu family don't
>> > have a root account which you can log in to so 'su' by itself
>> > doesn't do anything useful, it will ask for a password but no
>> > password is set up so it won't work.
>> 
>> But in ubuntu you can do instead (unless they have changed things
>> since I last tried):
>> 
>> sudo su
>> 
>> which does work. Once there, you create a root password, and from
>> then on "su" does work. This is possible because "sudo" exists and
>> works, and the "sudo" binary has the appropriate permissions (has the
>> suid bit).
>> 
> Well it will work only if 'you' (the user who issued the 'sudo su')
> has root privileges in the sudo configuration.  ... and there are
> endless arguments about whether having a root account is a good idea
> or not.

... or whether to have a 'root' who is not permitted to log in.

-- 
-- ^^^^^^^^^^
--  Whiskers
-- ~~~~~~~~~~

[toc] | [prev] | [next] | [standalone]


#45348

Frommicky <NONONOmisc07@bigfoot.com>
Date2017-07-20 22:42 -0400
Message-ID<peq2ncpgf454ahbcncjrrffqgkll0ldan5@4ax.com>
In reply to#45322
In comp.mobile.android, on Thu, 20 Jul 2017 12:36:58 -0000 (UTC),
"Charles T. Smith" <cts.private.yahoo@gmail.com> wrote:

>Hi,
>
>I have successfully unlocked my motorola phone using the motolora support page.
>
>Unfortunately, the motorola device does not have su(1) on it.
>
>If I were to get an su binary from somewhere (like, compile it myself), and
>store it on the sd-card or in some download directory, would I effectively
>have rooted my device?
>
>Without having to load some unknown binary from some hackers somewhere (like
>superSu) in order to do it?

So I assume su is a means to an end. 

What is it you want to accomplish with su? 

[toc] | [prev] | [next] | [standalone]


#45358

From"Charles T. Smith" <cts.private.yahoo@gmail.com>
Date2017-07-21 07:45 +0000
Message-ID<oksben$tto$4@dont-email.me>
In reply to#45348
On Thu, 20 Jul 2017 22:42:00 -0400, micky wrote:

> In comp.mobile.android, on Thu, 20 Jul 2017 12:36:58 -0000 (UTC),
> "Charles T. Smith" <cts.private.yahoo@gmail.com> wrote:
> 
>>Hi,
>>
>>I have successfully unlocked my motorola phone using the motolora support page.
>>
>>Unfortunately, the motorola device does not have su(1) on it.
>>
>>If I were to get an su binary from somewhere (like, compile it myself), and
>>store it on the sd-card or in some download directory, would I effectively
>>have rooted my device?
>>
>>Without having to load some unknown binary from some hackers somewhere (like
>>superSu) in order to do it?
> 
> So I assume su is a means to an end. 
> 
> What is it you want to accomplish with su?

Specifically, I want to find files, like Google Keep entries, that normal
users are locked out of.  Some of those things may be encrypted, but perhaps
not everything.

and de-install bloatware.  And, and, and.

In general, I want to have control of my phone just as I have control of my
linux laptop, rather than having Google be in control of it.

That's what root-ing is all about.  I'd like to understand what the
difference is between *being* root and rooting.

[toc] | [prev] | [next] | [standalone]


#45354

FromBob Martin <bob.martin@excite.com>
Date2017-07-21 08:20 +0100
Message-ID<etdoafFndllU1@mid.individual.net>
In reply to#45322
in 45527 20170720 133658 "Charles T. Smith" <cts.private.yahoo@gmail.com> wrote:
>Hi,
>
>I have successfully unlocked my motorola phone using the motolora support page.
>
>Unfortunately, the motorola device does not have su(1) on it.
>
>If I were to get an su binary from somewhere (like, compile it myself), and
>store it on the sd-card or in some download directory, would I effectively
>have rooted my device?
>
>Without having to load some unknown binary from some hackers somewhere (like
>superSu) in order to do it?

Without "hackers" no phone would ever have root.
Manufacturers try their hardest to prevent people rooting their phones.
Every new phone needs some clever person to work out how to do it.
The su binary is merely the method of exploiting root.

[toc] | [prev] | [next] | [standalone]


#45363

From"Charles T. Smith" <cts.private.yahoo@gmail.com>
Date2017-07-21 07:59 +0000
Message-ID<oksc8r$tto$7@dont-email.me>
In reply to#45354
On Fri, 21 Jul 2017 08:20:48 +0000, Bob Martin wrote:


> Without "hackers" no phone would ever have root.

Kudos to them.

> Manufacturers try their hardest to prevent people rooting their phones.

Motorola (Lenovo) supplies the necessary key - to unlock the bootloader...

...

> The su binary is merely the method of exploiting root.

Do you mean SuperSu?  The su(1) program is as old as unix.

And, it is in the googlesource android source tree.  Unfortunately,
Motorola decided not to include it.
Perhaps because it's a pre-Lenovo phone?

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.mobile.android


csiph-web