local rooted shell access?

Discussion in 'Motorola Droid 2 Development' started by Bense, Jan 31, 2011.

  1. Bense

    Bense Member

    Joined:
    Jan 19, 2011
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Hi, I have a rooted D2G (I've tested this with wireless tether 206.apk) and all I want to do is get a shell with root access to a r/w filesystem.

    I've been using linux for about 10 years now. So I understand the potential risks, etc etc. I've searched but all the pages that I've found are either:
    *outdated
    *instructions on how to do linux console commands
    *shell scripts with console commands

    I come from a background where you used to be able to choose your root password upon initial startup. And then when you wanted a shell you hit the power button on your computer (as it was the first thing that the computer booted into). Then when you wanted root access, you logged in as 'root' and typed the password that you chose. I guess it seems so archaic and rudimentary nowadays to imagine a time period like this.


    Sent from my DROID2 GLOBAL using DroidForums App
     
  2. cron666

    cron666 Member

    Joined:
    Jan 22, 2011
    Messages:
    116
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Get a terminal emulator and invoke the su command.
    U shud b able to use the passwd command to set the root password. The su command switches you to the root shell. There is no password set on root account after "rooting". I'm not sure if passwd will work to set one.

    $ent from a DeRezzed Droid2
     
  3. Bense

    Bense Member

    Joined:
    Jan 19, 2011
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Then how do you mount the file system so that it's not read only?
     
  4. Bense

    Bense Member

    Joined:
    Jan 19, 2011
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    I figured it out. I don't know why this isn't more publicized.

    once in the terminal, after becoming the super user type 'su' to remount the file system as read write

    busybox mount -o rw,remount /system

    then to remount it as read only

    busybox mount -o ro,remount /system

    By the way, I also installed bash. The Bourne Again SHell. Not the QDB crap. And I feel at home. :)
     
  5. VirtualCLD

    VirtualCLD Member

    Joined:
    Sep 5, 2010
    Messages:
    84
    Likes Received:
    14
    Trophy Points:
    8
    Ratings:
    +16
    Bense, what terminal emulator did you use and how did you install bash?

    Sent from my DROID2 using DroidForums App
     
  6. pool_shark

    pool_shark Active Member

    Joined:
    Mar 28, 2010
    Messages:
    1,395
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Ohio
    Ratings:
    +7
    I originally used the terminal emulato by Jack Pal(something or other).

    Now I use better terminal emulator. It comes with bash and it's own version of busybox.

    I wrote a shell script to mount the filesystem rw so I wouldn't have to type it in every time.
     
Search tags for this page
access android shell
,
android desde la shell passwd root
,
android local shell
,

android root password

,
android root shell access
,
android shell access root password
,
android shell root password
,
android shell script password
,
get root shell access on android
,
localroot shell