Setting the root password

Discussion in 'Android Forum' started by sidww2, Jun 15, 2010.

  1. sidww2
    Offline

    sidww2 New Member

    Joined:
    Jun 15, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hey,

    Does anyone know how to set the root password on Android 2.1? I'm using a Motorola Droid.

    Thanks
    Sid
  2. kristoff125
    Offline

    kristoff125 New Member

    Joined:
    Dec 30, 2009
    Messages:
    596
    Likes Received:
    0
    Trophy Points:
    0
    What exactly is a root password?
  3. masters
    Offline

    masters New Member

    Joined:
    Nov 7, 2009
    Messages:
    195
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    94565
  4. sidww2
    Offline

    sidww2 New Member

    Joined:
    Jun 15, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    The password for the root/ super user account.(I have a rooted droid) Right now when I su, it doesn't ask me for a password.
  5. INSANENEIVIESIS
    Offline

    INSANENEIVIESIS New Member Developer

    Joined:
    Jan 18, 2010
    Messages:
    1,288
    Likes Received:
    0
    Trophy Points:
    0
    it wont it doesnt need to.
  6. droidman101
    Offline

    droidman101 New Member

    Joined:
    Feb 25, 2010
    Messages:
    711
    Likes Received:
    0
    Trophy Points:
    0
    thats sorta the reason that it makes the popup come up for all su commands unless you hit remember :)
  7. MajickMan
    Offline

    MajickMan New Member

    Joined:
    Jul 27, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Has anyone found a way to set the root password? For those wondering why we want to set a password just google iPhone Rick Roll. That was basically a proof of concept attack that could have been much worse. I'd like to protect my phone from such things and I'm sure you would too.


    Thanks,

    MajickMan
  8. Backnblack
    Offline

    Backnblack Premium Member Premium Member

    Joined:
    Nov 18, 2009
    Messages:
    11,263
    Likes Received:
    5
    Trophy Points:
    0
    Then Unroot. As it has been said, you cannot add a password to Root.
  9. christim
    Offline

    christim DF Super Moderator Rescue Squad

    Joined:
    Jan 23, 2010
    Messages:
    5,112
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    New England
    Much like newer versions of windows will ask if you want to run an exectuable, even when logged on with an administrator account, your phone does the same thing with busybox, mm, root explorer, setcpu, and more.

    If you really want to step things up a notch then you don't run your OS as root/admin. By rooting our phones we set ourselves at risk. By allowing to install from unknown sources we set ourselves at risk. By just installing an app from the market because it looks cool we also set ourselves at risk.

    When we install an app that has lots of press coverage that lots of folks have already used we are acting in a more secure manner. The dev might be better known, others would have uncovered something wrong etc.

    Any of the apps you install that say they can collect network, browser, and keyboard info could possibly be gathering and sending info you don't want sent. The community is what is keeping things safe.

    I'd be interested in knowing what other sorts of safeguards are on the market to prevent keystroke capturing type code from being present in apps. Root isn't needed for that.

    All that being said...there's a ton of phones out there. not so many viruses. I feel pretty safe with what I've done with my phone, as well as with my pc. But you never can be 100% sure.
  10. noobkiller
    Offline

    noobkiller New Member

    Joined:
    Feb 15, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Let's clarify ths

    Okay, *****cat, let's see why you're noob ;)

    I used linux as a developer and administrator of a huge system for the last ten years, but I have to tell that I use android for 3 days, and never had before.
    Through these 3 mere days I discovered that android is fundamentally an _exact_ linux and, as such, it does impiles the possibility of using unix user accounts and passwords.
    The former (user accounts) is a natural part of the system, every app installed to the droid is given an exclusive one. (i must stop here to admit this is a strike of genius, a beautiful way to separate applications' workspace and permissions in such a way as we usually do on web servers hosting multiple domains, virtual hosts). It must be mentioned, that the files which control user accounts under linux (like /etc/passwd) are absent under android, because there is a stub for mapping the android_id to passwd structure. So there are no physical files for this purpose, the stub should populate the values. BUT this behaviour may be altered (i wouldn't like to describe how, it's your fight to figure out).
    The latter one is a bit tricky, because android has no system authentication method (like PAM, or such) built in it, hence the only way to change the UID or EUID is to call the corresponding kernel call from a C program. BUT you are welcome to these C programs (including PAM itself), from any of the linux distros around, and after a (really-really) minimal modification they will work on android perfectly.

    Thank you for your kind attention :D
  11. kristoff125
    Offline

    kristoff125 New Member

    Joined:
    Dec 30, 2009
    Messages:
    596
    Likes Received:
    0
    Trophy Points:
    0
    Noobkiller first and foremost welcome to the forums. Not sure where you get off calling people noobs when you show up in a forum and resurrect a dead three year old thread to drop worthless knowledge. There is no way to set a root password on Android. Go away troll.
  12. noobkiller
    Offline

    noobkiller New Member

    Joined:
    Feb 15, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi!

    At first I have to say sorry about my behaviour. I was googling for hours, visiting tons of android forums concerning the topic, knowing it has to be possible. This was the last stop of my desperate trip towards the solution and a huge anger overcame my politeness. I think everybody has committed such a fault at least once on a time. Again, I am really sorry, I did not want insult anyone.
    Anyway,
    I did it on the weekend. I compiled the PAM library, openssh server, and other neccessary tools gathered from Gentoo Linux and installed them on my android system. After configuration (and a bit of magic, of course :) ), both publickey and keyboard-interactive authentication was being supported on my device (Galaxy S) through ssh. Additionally, the good ol' /bin/login is available, that is, password authentication is also possible directly on the phone.

    If somebody feels this achievement of mine usable, I gladly share the binaries or the "androidized" source codes. Please contact me on the e-mail address
    geza@mine.hu

    Best regards,
    G├ęza

    PS: I hope this knowledge is not in fact worthless for the community...
  13. MR.bean
    Offline

    MR.bean New Member

    Joined:
    Mar 8, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    As your asking i think yoou are taking a big risk because if u put password for ur root then it may led you to losse few of your apps
Search tags for this page

android change root password

,
android default root password
,
android how to change root password
,

android root password

,
android root set password
,
android set root password
,
android su password
,
default administrator password for android
,
how to set root password on android
,
password root android
,
root password android
,
set root password android