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


Groups > comp.mobile.android > #45381

Re: True? Unlocked phone + su == rooted?

From "Carlos E.R." <robin_listas@es.invalid>
Newsgroups comp.mobile.android
Subject Re: True? Unlocked phone + su == rooted?
Date 2017-07-21 20:06 +0200
Message-ID <mes94e-a9r.ln1@Telcontar.valinor> (permalink)
References (4 earlier) <okr53s$via$1@dont-email.me> <slrnon3qs9.2c7.catwheezel@ID-107770.user.individual.net> <oksrld$tto$14@dont-email.me> <56b94e-1hc.ln1@Telcontar.valinor> <6vc94e-32g.ln1@esprimo.zbmc.eu>

Show all headers | View raw


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.

Back to comp.mobile.android | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web