After you root the Nook Color, how do you set or change the root password? Is it similar to how it is done in linux with the passwd command? What is the default root login and password?
thanks
I think you're confused on what rooting is. There is no root password.
tunwear said:
I think you're confused on what rooting is. There is no root password.
Click to expand...
Click to collapse
Actually, there is on Linux but I believe android lacks the feature. Just type su in terminal to get root access if you are rooted.
Sent from my SPH-D700 using XDA App
phfaty said:
After you root the Nook Color, how do you set or change the root password? Is it similar to how it is done in linux with the passwd command? What is the default root login and password?
thanks
Click to expand...
Click to collapse
This sounds like something you had to do after jailbreaking an iDevice maybe you're mixing them up
I think he's comming from the apple world where you have to change the ssh password from alpine to something else.
There is no password to change because there is no ssh or telnet service running in the background. Hense no one can access the device remotely. If you install a remote access server and run it as a service (deamon, running all the time) then yes you need a password for that service. Most of these services in android are apps and only run when you turn them on. The one I use asks you to create a password before it even runs. Wireless adb doesn't ask for a password but then you are only using it for a short time and I seriously doubt hackers would be scanning for open adb ports since it is such a small number of devices using it.
But...
Hello, I have a question about this: what about other apps can access system files by accessing with root priveleges to install software that collect our information ?
Thanks
MikiBroki said:
Hello, I have a question about this: what about other apps can access system files by accessing with root priveleges to install software that collect our information ?
Thanks
Click to expand...
Click to collapse
Only if you click 'allow' for that app.
I am looking for a SU binary that has password protection. Does it exist? Can someone compile that into the SU binary?
Just a simple text file like /data/system/passwd ?
If not set it will not ask (like now)
I you want to set it use /system/xbin/su --setpwd ***** where ***** is the password stored in /data/system/passwd (rw-rw---- root.root)
Only factory reset will clear it.
Then if password is set then /system/xbin/su will ask for a password in the shell.
Just my 2 cents.
Thx.
tweakradje said:
I am looking for a SU binary that has password protection. Does it exist? Can someone compile that into the SU binary?
Click to expand...
Click to collapse
I personally have one, actually, but I'm not about to publish it (I'm not confident enough in my setuid-program-writing skills to promise anyone else security, and the code I have actually requires compiling the password hash into the binary). That said, you don't actually want my personal su, because it breaks pretty much every root-using Android app out there by prompting for a password via standard input.
It's certainly possible to do this "correctly" -- you'd need to move the password prompt into the Android UI (the Superuser app or equivalent). That would further complicate code that's already far too busy for comfort, though (seriously, who links SQLite into a setuid root binary??!?).
Thanks for your feedback. Nice to know there is a need for this. I only want security when adb is on.
You can detect if su request is from the shell? Then only ask for password if request is from the shell.
Else SuperUser.apk is not compatible? Or devs like Chainfire needs to change that too.
Cheers
gedster314 said:
I think he's comming from the apple world where you have to change the ssh password from alpine to something else.
There is no password to change because there is no ssh or telnet service running in the background. Hense no one can access the device remotely. If you install a remote access server and run it as a service (deamon, running all the time) then yes you need a password for that service. Most of these services in android are apps and only run when you turn them on. The one I use asks you to create a password before it even runs. Wireless adb doesn't ask for a password but then you are only using it for a short time and I seriously doubt hackers would be scanning for open adb ports since it is such a small number of devices using it.
Click to expand...
Click to collapse
I just installed cm10.1 and saw their is built in ssh.... I configured it without authentication and allowed root login and its asking me for my android root password -.-
Using any ssh of the market works. But this thing comes with ssh.. Whats the password its asking for lol
leathan said:
I just installed cm10.1 and saw their is built in ssh.... I configured it without authentication and allowed root login and its asking me for my android root password -.-
Using any ssh of the market works. But this thing comes with ssh.. Whats the password its asking for lol
Click to expand...
Click to collapse
Type "su" and then after it asks for root type "passwd" in terminal emulator without the quotes. It will ask you to enter a new password as one has not yet been set up.
Changing root passwd android 2.3.3
tunwear said:
I think you're confused on what rooting is. There is no root password.
Click to expand...
Click to collapse
I beg to differ there is a way to do it however i found this on someone elese thread and figured id share.....i got as far as making a new user however i still can but cant change the root passwd.
mount -o remount,rw /dev/block/mtdblock3 /system
now type:
cd /system/bin
ls
Do you see su or your username listed?
If so type:
chmod 4755 (type su or your username here, without parantheses)
now open terminal emulator on your phone and try your superuser command again.
If you did not see su or your username in the output of ls type the following to get a setuid shell:
cat sh > (username or su whichever you want)
chmod 4755 (username or su whichever you want)
now open terminal emulator on your phone and try your superuser command again.
That should get you going.
Related
Ok i have an g1 thats unregistered and i kow how to activate it through wifi but i cant because i dont have an router i was wonder if someone could explain to me how to bypass this without activating my g1 it said or how i send these commands with adb
Now, copy a busybox binary to /data/local/busybox with adb push, and then connect to your phone with adb shell, and give the busybox binary execute permissions (i.e. chmod 755 /data/local/busybox)
busybox has a telnet applet, so you can do:
busybox telnet 127.0.0.1
to get a telnet session with root access.
- If you don't want to register the phone at all, you can set the app.setupwizard.disable property to 0 to prevent registration. Once you have an adb shell session open, type the following:
setprop app.setupwizard.disable 1
and then reboot. once it loads back up, it should bypass the registration screen all-together
but i am so confused thanks for the help
Do you have root? Most custom ROMs give you an option to skip.
i was in the process of rooting my g1 when i had downgraded it but i couldnt finish it because i had to activate it when i got it it was already activated
charles20212 said:
i was in the process of rooting my g1 when i had downgraded it but i couldnt finish it because i had to activate it when i got it it was already activated
Click to expand...
Click to collapse
It's been so long since I rooted that I can't remember if there are any other options. I think when first I got mine, there was no way to root with wifi. I couldn't even register while roaming, and had to drive 40 miles (nearest T-Mo tower) just to use my G1 for the first time. That sucked!
is there a way to bypass it without using wifi or can i install a new rom or something
If you are rooted, then try a new rom. Most of them will have the option to skip.
how i know if im rooted
Alright, so I've used the SuperOneClick application to root my phone, which tells me was done successfully, however, I don't seem to be able to access files in the system folder through adb.
Is there some way I can positively confirm whether my phone is or isn't actually rooted? Like I said I was using adb to push a file into the system folder, and was given a permission denied message. At this time the only thing I'm attempting to do to the phone is this:
/showthread.php?t=820749&page=3
It seems pretty basic and it's my first android phone, so I'm starting off small here..
Using the leaked 2.2 FW, other than the being rooted (attempted), the phone is stock 2.2..
cryo.burned said:
Alright, so I've used the SuperOneClick application to root my phone, which tells me was done successfully, however, I don't seem to be able to access files in the system folder through adb.
Is there some way I can positively confirm whether my phone is or isn't actually rooted? Like I said I was using adb to push a file into the system folder, and was given a permission denied message. At this time the only thing I'm attempting to do to the phone is this:
/showthread.php?t=820749&page=3
It seems pretty basic and it's my first android phone, so I'm starting off small here..
Using the leaked 2.2 FW, other than the being rooted (attempted), the phone is stock 2.2..
Click to expand...
Click to collapse
Do you have the "superuser" app on your phone?
cryo.burned said:
Alright, so I've used the SuperOneClick application to root my phone, which tells me was done successfully, however, I don't seem to be able to access files in the system folder through adb.
Is there some way I can positively confirm whether my phone is or isn't actually rooted? Like I said I was using adb to push a file into the system folder, and was given a permission denied message. At this time the only thing I'm attempting to do to the phone is this:
/showthread.php?t=820749&page=3
It seems pretty basic and it's my first android phone, so I'm starting off small here..
Using the leaked 2.2 FW, other than the being rooted (attempted), the phone is stock 2.2..
Click to expand...
Click to collapse
If you type:
adb shell
su (after hitting enter, you should get a popup on your phone asking for superuser permission, click allow)
If you see this:
C:\Users\*yournamehere*>adb shell
$ su
su
#
Then you have root permissions.
TheRomero09 said:
Do you have the "superuser" app on your phone?
Click to expand...
Click to collapse
Yes, I have it on my phone
miztaken1312 said:
If you type:
adb shell
su (after hitting enter, you should get a popup on your phone asking for superuser permission, click allow)
If you see this:
C:\Users\*yournamehere*>adb shell
$ su
su
#
Then you have root permissions.
Click to expand...
Click to collapse
I have the app on my phone, but when I try this, I do not get a prompt for super user permissions, and the CL shell returns permission denied
EDIT: I was going to look at the superuser app to see what was in it to give you more info, but it the "app" that I assume is actually my computer had denied permissions. After changing it back to allow, the shell returns
Code:
su
#
Head over here and root your phone normally, no webtop open, undocked.
Make sure ADB is Enabled (settings > applications > development, check usb debugging)
dock your phone on the laptop dock
open a cmd prompt on your pc
adb shell
su (accept on phone interface)
passwd (choose a password and confirm it)
sulogin (enter the password you created above)
There ya have it, root access on the webtop! you should see "[email protected]"
Sorry for my ignorance but will this allow me to mirror the screen on a monitor or tv using the hdmi cable?
Sent from my MB860 using XDA App
That's cool, just wondering what we can do with this!
yokozuna82 said:
Sorry for my ignorance but will this allow me to mirror the screen on a monitor or tv using the hdmi cable?
Click to expand...
Click to collapse
Not yet, altough progress on it is being made.
Doubbbbleee Root! Combooo breaker!
I love this forum. Don't even have my Atrix yet, but the excitement is killing me.
I would really not recommend changing the root password just in case moto has scripts or processes that have the password built in. A easier way to achieve [email protected] is
su
/osh/bin/bash
"root" on the webtop
From my understanding the webtop and android are running the same kernel and have access to the same shells (i.e. I can run the webtop bash from within the android terminal), users and other data. Where the webtop differs from android is the use of an actual X11 server, but the server is actually running in android. Try running ps | grep X while the webtop is running but in a android shell, you will see /usr/bin/X as a running process, now run /osh/bin/bash and ps aux | grep X, you will see the same process number associated with /usr/bin/X. We can see that X is running with hdmi out.
wealeat said:
I love this forum. Don't even have my Atrix yet, but the excitement is killing me.
Click to expand...
Click to collapse
Same! Get mine on my birthday, March 19th. Can't wait to see what's possible then!
kjbreil said:
I would really not recommend changing the root password just in case moto has scripts or processes that have the password built in. A easier way to achieve [email protected] is
su
/osh/bin/bash
"root" on the webtop
From my understanding the webtop and android are running the same kernel and have access to the same shells (i.e. I can run the webtop bash from within the android terminal), users and other data. Where the webtop differs from android is the use of an actual X11 server, but the server is actually running in android. Try running ps | grep X while the webtop is running but in a android shell, you will see /usr/bin/X as a running process, now run /osh/bin/bash and ps aux | grep X, you will see the same process number associated with /usr/bin/X. We can see that X is running with hdmi out.
Click to expand...
Click to collapse
Thats not full root access to the ubuntu side tho, that is just root over the android side(ubuntu side is inside the android side). Now we can properly access root inside the ubuntu environment.
So far nothing has failed to run from changing that. Start up, use, shutdown, there are no errors related to sulogin.
designgears said:
Thats not full root access to the ubuntu side tho, that is just root over the android side(ubuntu side is inside the android side). Now we can properly access root inside the ubuntu environment.
Click to expand...
Click to collapse
That doesn't really make sense, you are either uid 0 or you are not.
Sent from my MB860 using XDA App
designgears said:
Thats not full root access to the ubuntu side tho, that is just root over the android side(ubuntu side is inside the android side). Now we can properly access root inside the ubuntu environment.
So far nothing has failed to run from changing that. Start up, use, shutdown, there are no errors related to sulogin.
Click to expand...
Click to collapse
It would usually be bad practice to presume a known root password when coding something like this. Scripts needing root should get suid set on them, and thus no plain text password would be involved.
So I don't really envisage any issues with a changed root pw
So with root everywhere, can we add an option that shows up when docked,
ie. if i just dock my atrix and i can HD entertainment and listen to music show photos, etc.
if i dock with hdmi, i get the webtop experience in ubuntu, which i love, But being the g33k i am, if i had an addition option that let me load fedora, i would smile very g33ky, and say Look what i can do!...
i guess this is a dev request.
i am using the atrix as my daily driver, but do have a backup phone, so if a dev wants me to test something out with my setup, i would be glad to do anything to better the dev of this device.
regards,
Killster
forgive my ignorance here, but if I am docked into the laptop dock, my microusb port is being used in the laptop dock. How exactly will i be able to sync to my pc (with USB debugging enabled) to run adb? are running some kind of splitter cable?
tchan012 said:
forgive my ignorance here, but if I am docked into the laptop dock, my microusb port is being used in the laptop dock. How exactly will i be able to sync to my pc (with USB debugging enabled) to run adb? are running some kind of splitter cable?
Click to expand...
Click to collapse
adb wireless i think
What does this get me?
So what does root access on Webtop grant me that I wouldn't have access to before?
If you have root on your phone you have root on webtop, you are uid 0, so it doesn't gain you anything that you don't already have.
Sent from my MB860 using XDA App
Okay..I Know this is simple but its not somthing to do at 5am I frogot what I entered as the password..
Pulled a
Su
Passwd
********
Sulogin
********
Passwd not found:
Tried every old pass I had on it nothing, any way to spare the phone reset and redo the root password?
Update: Ive tried reseting the phone, re flashing the retail sbf and I am still having problems with this its bugging the hell outta me used the OP preps:
su
# passwd *****
passwd ******
passwd: not found
# sulogin
sulogin
Give root password for maintenance
(or type Control-D to continue): ******
Login incorrect.
Give root password for maintenance
(or type Control-D to continue):
Any ideas?
kennethpenn said:
Doubbbbleee Root! Combooo breaker!
Click to expand...
Click to collapse
LOL Nice!
kennethpenn said:
Doubbbbleee Root! Combooo breaker!
Click to expand...
Click to collapse
LOL that made my morning. And the original post of course.
Is this working still?
Psneuter exploit is working on IS, but because /system is locked on s-on phones, we can't copy su and superuser.apk into /system, apps required root access can't work.
The following procedure uses psenuter exploit to gain adb shell root, and then copy su (without privilege control ) and busybox into /sbin (which is on rootfs and in the global PATH list) to gain root access for apps.
The procedure:
1. Unzip the attached .zip into a directory (like c:\adb)
2. Open a command prompt and cd to the directory where you extracted the .zip (like cd \adb)
3. run pushroot.bat (simply type pushroot)
4. adb shell /data/local/tmp/getroot
5. adb shell
6. you are now in # prompt. Type /data/local/tmp/pushroot
You have to redo steps 4,5,6 once you reboot your phone.
The procedure will have all apps gaining root access.
!!USE ON YOUR OWN RISK!!
Known working programs: Root explorer, Titanium backup, gscript lite, trasproxy 2.04, ...
Some apps check existence of su in /system/xbin , and reject to proceed if the su binary is not exist (like transproxy 3.08). For this kind of apps, this procedure won't help.
Nice but old news mate...
Sent from my HTC Incredible S using XDA Premium App
Good job...thanks
Thanks for writing this up, might quell the thirst for S-OFF a little longer
/system/ is writeable btw, if you remount it, but after reboot everything u done will be changed to the way it were before.
so a temp root in xbin is possible also, only it will be gone afterwards (atleast i never tried this, but should work also...)
Yes. /system could be remount in rw with root. However, the files you wrote will be gone after you remount ro, and then you won't be able to copy the same filename into the same location again before next reboot ( I don't know why, actually!!). This is why I put su in sbin instead of /system/xbin.
thanks to your files 非常感谢你的工作。
Does anyone know whether steps 4, 5 and 6 can be run from the device itself?
Can I put these commands into some sort of script and run it everytime I need temp root or would I need to do this from a computer every time?
faf said:
Does anyone know whether steps 4, 5 and 6 can be run from the device itself?
Can I put these commands into some sort of script and run it everytime I need temp root or would I need to do this from a computer every time?
Click to expand...
Click to collapse
I believe you can do it from a terminal emulator but haven't got the chance to try it myself though.
Sent from my HTC Incredible S using Tapatalk
pushroot error
c:/adb>adb shell ln /data/local/tem/busybox /data/local/tmp/cp
Link failed File exists
and
c:/adb>adb shell /data/local/tmp/getroot
mmap<> failed. operation not permitted
Why??THX....
itandy said:
I believe you can do it from a terminal emulator but haven't got the chance to try it myself though.
Sent from my HTC Incredible S using Tapatalk
Click to expand...
Click to collapse
Definitely, this is the way to go.
Unfortunately, the root exploit I know could run on device itself, including
rageagainstthecage (ratc) and local root exploit (hotplug) both failed on IS.
The solution will be nearly perfect if we can get temp root on IS without a computer link.
Any input will be welcome.
sky1212 said:
pushroot error
c:/adb>adb shell ln /data/local/tem/busybox /data/local/tmp/cp
Link failed File exists
and
c:/adb>adb shell /data/local/tmp/getroot
mmap<> failed. operation not permitted
Why??THX....
Click to expand...
Click to collapse
Please then type adb shell.
If you see # but not $, do
cd /data/local/tmp
rm ./cp
ln busybox cp
./pushroot
Then you finished the install.
If you see $, please do all over again.
You can also add ShootMe (screen capture app) and SetCPU to the list of working apps. SetCPU will only allow you underclock for now due to the kernel, but it is a nice touch if you are worried about battery life. Adfree doesn't appear to work
l0st.prophet said:
You can also add ShootMe (screen capture app) and SetCPU to the list of working apps. SetCPU will only allow you underclock for now due to the kernel, but it is a nice touch if you are worried about battery life. Adfree doesn't appear to work
Click to expand...
Click to collapse
Adfree is working for me. Are you getting some type of error message?
MetaMorph, screenshot and MyBackup Root are also working.
I had to mount system, then push su to /system/xbin. Then install BusyBox Installer from Market.
No erro, still got the ads. I've tried rebooting & rerooting, still no luck
l0st.prophet said:
No erro, still got the ads. I've tried rebooting & rerooting, still no luck
Click to expand...
Click to collapse
What site/app are you going to so I can see if I get the ads.
the anti-ads actually tries to modify the current host file... which is not allowed in your state as far as i know
what you can do is replace it by pushin it to the right spot
but after reboot gone,but sure u know
Adfee is working for me, you can also add Droidwall.
@eddycyf, did you test adfree with apps? Since it aint working for prophet...
Sent from my HTC Incredible S using XDA Premium App
Mhm AdFree isnt working for me. The App states that everything is okay, and that my hosts file is up to date, but I see ads everywhere.
But I am kinda happy now, because i can use Titanium Backup
Hey guys! I accidentally "forgotten" access to the ADB Shell on my Super SU. I am really scared now. How do I manually re-enable it? I don't want to flash my phone and stuff if possible.
P.S. If this is the wrong topic/thread please feel free to direct me to the proper area.
zeron824 said:
Hey guys! I accidentally "forgotten" access to the ADB Shell on my Super SU. I am really scared now. How do I manually re-enable it? I don't want to flash my phone and stuff if possible.
P.S. If this is the wrong topic/thread please feel free to direct me to the proper area.
Click to expand...
Click to collapse
Regranting su access is an extremely quick and simple process. All you have to do to be able to use root from adb shell is to start and and shell on the device again, call su and grant root from the SuperSU access prompt that will appear on the device, regranting access to apps is simple too, simply open the app and when it calls for su, SuperSU will bring up the access prompt for any app/uid that it hasn't got any stored settings for already
mmonaghan34 said:
Regranting su access is an extremely quick and simple process. A you have to do to be able to use root from adb shell is to start and and shell on the device again, call su and grant root from the SuperSU access prompt that will appear on the device, regranting access to apps is simple too, simply open the app and when it calls for sure, SuperSU will bring up the access prompt for any app/uid that it hasn't got any stored settings for already
Click to expand...
Click to collapse
Thank you very much!