[Q] Superuser problem? MT4G - myTouch 4G Q&A, Help & Troubleshooting

When I type su into terminal emulator it says "unknown root user". How do I fix this, so i could get permission granted again?

Well, I am a noob, but when you rooted, it should have created a superuser program... run that, delete all permissions, and try again.... mine did that, and once I really approved it, it was fine
Sent from my HTC Glacier using XDA App

Related

Issues with ROM Manager and others

Ok bear with me, this is the only the second phone i have rooted. I am having issues with the rom manager and root explorer.
The rom manager works, it does not force close, but when i ask it to do something like backup or install a rom, it does nothing, litterally i can click something else and same thing, it does nothing. I tried uninstalling and even factory reset. Still dont work.
Also the root explorer, it says "Root explorer has not yet manage to obtain root access. " i get that every time i restart it, same issue.
I have froyo 2.2 and used easy root http://www.unstableapps.com/?p=35
You need they droid x bootstrapper from the market to get into recovery, and titanium backup from market, hit problems & download busybox.
Sent from my DROIDX using XDA App
thanks, i'll get them now and report back.
Now do i put the bootstrap in the root of the sd and use a app installer?
ok, titanium backup said it wont work because the root access failed and after i downloaded busybox it wont install
I'd try the one-click root or and root, both have to be downloaded by pc.if u got the free bootstrap use an app installer.
Sent from my DROIDX using XDA App
still having the same issue, maybe its 2.2? is there a Root ROm?
Yeah, in rom manager. You have to be rooted 2.1. Have you ever flashed a sbf. I'd try unrooting with easy root then using another method
Sent from my DROIDX using XDA App
Almost sounds like the root didn't take properly
Sent from my DROIDX using XDA App
hey guys, I flashed back to stock and rerooted. Everything works now. Thanks guys,
My only gripe is i dont have flash anymore T_T
Are you on 2.1 or 2.2, you can find flash apk. right here on xda.
Sent from my DROIDX using XDA App
ahh cool. Now what if i use the 2.2 guide on here? Is it the 2.2 or do u think it was the root?
I'd say it was the root. Easiest way to get back to 2.2 would be Rom Manager. Look in download rom,2.1 to 2.2 root. Just make sure you flash the latest recovery in rom manager & the current boot strap which is 1.0.0.3
Sent from my DROIDX using XDA App
ok i redid everything, went back to 2.2 using all the methods, and i am still having issues, i dont know whats up with this
What method did you use to root. I messed up theming yesterday, had to sbf. Reroot & went back to 2.2 through rom manager. It went fine. What's it doing now?
Sent from my DROIDX using XDA App
dbl post sry
i used one click root. its doing the same thing as last time.
edit-----
I did a google search for a good 15 minutes and found this
1.) Run "adb shell"
2.) Run "/system/xbin/su"
*****Watch your screen for Superuser app to prompt for permission and click "allow" (if you go from $ to # without being asked for permission, continue with the next step
3.) Run "mount -o remount,rw /dev/block/system /system"
4.) Run "cp /system/xbin/su /system/bin/su"
5.) Run "chmod 4755 /system/bin/su"
[optional] Run "mount -o remount,ro /dev/block/system /system"
Click to expand...
Click to collapse
Everything works like a charm! If you root at 2.1 then go to 2.2, this will fix your problem

[Q] ADB "Permission Denied"

hey guys need help so my Mytouch 4G updated and perm rooted, and i keeep gettin gthe permission denied everytime i try and execute a command thru adb thru my pc or on the Terminal Emulator. Did something not go thru on root or am i missing something simple? any help would be greatly appreciated. Thanks
mrpanic7 said:
hey guys need help so my Mytouch 4G updated and perm rooted, and i keeep gettin gthe permission denied everytime i try and execute a command thru adb thru my pc or on the Terminal Emulator. Did something not go thru on root or am i missing something simple? any help would be greatly appreciated. Thanks
Click to expand...
Click to collapse
You may have to run visionary and reboot a few more times to make root privileges stick.
My MyGlacier 4G MINE!!!
Try this:
: adb shell (this should give $)
:$ su (next line type su, this should give you prompt on Super user to allow permission)
:# ( once you get this your good)
Sent from my HTC Glacier using Tapatalk
Try to install visionary and then re install open click temp root then permoot super user should ask to approve click yes. After that restart
Sent from my HTC Glacier using XDA App
Please post questions in Q&A forum. Thank you
ok everytime i try adb shell in terminal emulator it says the permission denied, im gonna try the first reply again and then see....any other ideas?
also guys, when i try and run visionary again it says your device is already rooted, along with when i type su in TE, it gives # with superuser permissions quote showing on bottom of screen, but i was trying to run adb commands from pc or from te and they still show permission denied. SetCPU works.
mrpanic7 said:
also guys, when i try and run visionary again it says your device is already rooted, along with when i type su in TE, it gives # with superuser permissions quote showing on bottom of screen, but i was trying to run adb commands from pc or from te and they still show permission denied. SetCPU works.
Click to expand...
Click to collapse
Ok, go into adb shell and type su + enter. Watch your phone when you do this. Superuser should ask if you want to allow "unknown" root privileges. "unknown" is adb. Click allow and your problems should go away.
My MyGlacier 4G MINE!!!
So typing su works and the message terminal emulator is granted permissions, but then any other commands dont work
Sent via MyTouch 4G
Whats a test command I could try?
Sent via MyTouch 4G
mrpanic7 said:
So typing su works and the message terminal emulator is granted permissions, but then any other commands dont work
Sent via MyTouch 4G
Click to expand...
Click to collapse
I ran into this same issue and it drove me crazy. I would not get prompted by the phone to allow su permissions when going through ADB- kept getting "permission denied"
I did finally get SU permissions through ADB, but I dont recall exactly what I did to get prompted to allow access.
I will try to retrace what I did... believe I had ADB shell running (without su permissions "$"), but I also had terminal emulator running on my phone. I entered the su command on my phone, then I did the same from ADB shell.
Finally the phone prompted me to allow access - accepted - and no problems from that point.
Basically, I just had to keep f'n with it.
Yeah thats my problem exactly. Yeah I appreciate any assistance you can provide. I mean my pc reads my device when I adb devices command, but it wont allow nothing past that. Please keep me informed on anything I can try, also im not thag most fluent with using sdk/adb stuff so any additional info with using that is much appreciated thanks again fellow enthusiasts!
Sent via MyTouch 4G
Have you tried to bacup su, then uninstall su. Reinstall su, Then try it again. MIGHT work
Sent from my HTC Glacier using XDA App
yeah i re-installed su and didnt help, @dbiggs-what can i do thru adb to initiate the su permissions to the device like you did?
I wish I could help more specifically, but I dont remember exactly what I did that allowed me access- just kept trying
Maybe try this...(dont be offended if any of these steps are ones that you already know or have tried, I am just trying to be as thorough as I can from memory)
Open up super user, then go back to the terminal emulator and enter the "su" command to gain superuser permissions.
Plug the phone into the computer, select charge only, enter ADB through tools (probably "C:\Android\tools" if your Android folder is in the root of your harddrive).
from the prompt C:\Android\Tools, enter:
adb shell
then you will get the "$" that you mentioned.
enter the "su" command, and hopefully you will get prompted to allow superuser permissions for ADB.
I am pretty sure these are the steps that I took, just had to keep trying.
Lemme know how it works out.
I see some people here asking about getting su privileges in adb, however I do have SU and I can run su in adb shell. My problem is that I am trying to push some files and use Android Commander. I can't run "adb remount" (remount failed: Operation not permitted), I can't copy files in Android Commander (it's says that I do not have ROOT)
How can I get Read-Write in ADB ??
Edit: Oh, now I got it, I don't have root in ADB, when i type "adb root" it says "adbd cannot run as root in production builds"
Did anyone figure this out? I'm being denied on TE and PC also.
I have managed to be able to get around this issue by going into recovery mode on my phone.
If the end result that you are looking for is to adb push files, then the easier way to do this is to flash clockwork recovery to your phone, then start your phone into recovery mode, mount system and you should be able to push files no problem.
Lemke know if this helps.
Sent from my HTC Glacier using XDA App
mrpanic7 said:
hey guys need help so my Mytouch 4G updated and perm rooted, and i keeep gettin gthe permission denied everytime i try and execute a command thru adb thru my pc or on the Terminal Emulator. Did something not go thru on root or am i missing something simple? any help would be greatly appreciated. Thanks
Click to expand...
Click to collapse
I'm pretty sure your issue has nothing to do with SU access. Most likely, your phone is simply mounting as r/o (read only) when it boots up, so ADB is unable to change anything to the system folder. The easiest way to mount as r/w (Read/Write) is to go into Root Explorer and click the r/w button in the top right corner, and then go to ADB and see if it will allow you to do the same commands that it previously denied.
I have the same issue with my phone mounting as r/o by default, but I haven't been able to figure out how to automount as r/w on the MT4G. If anyone knows how, please share.
I had this same issue, on several android phones including MT4G. Here is how I fixed it.
1. Connect phone via usb (I was in "charge only" mode, not disk drive mode)
2. Open command prompt and navigate to the android tools folder
3. type "adb shell"
4. MAKE SURE YOUR PHONE SCREEN IS ON AND UNLOCKED
- The above step is very important otherwise you will not get the SU prompt
5. At the "$" prompt type "su"
6. Your phone should now display the SU screen asking you to allow the connection root access.
7. Once you allow it, you are golden.
I did this on a windows pc. Hope it helps.

[Q] Permission denied in Terminal after root running "free"

ok so i have my phone rooted
I have ADB working right
I go to the terminal in the phone and type "su" and it takes me to the # just fine, also works in ADB (after adb shell).
When i type "free" to see the memory it says "permission denied" on the phone, and in ADB. In ADB, I have tried it from the # which gives me "not found", and then tried it at the $ and that says "permission denied".
I can reboot my phone from ADB, but not in terminal on the phone.
I'm not real sure why i get "permission denied" if my phone is rooted right
any ideas and help would be great thanks
Similar issue Kinda
when I type in 'free' after 'su', I get:
free: not found
It worked just fine for me.
Sent from my HTC Glacier using XDA App
dustrho said:
It worked just fine for me.
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
when you rooted your phone .. did you use the visonary temp way .. or the new way thru ADB?
Also those who are or are not having the permission denied...was your root done pre or post update? Mine was post and do you have a recovery flashed?
Sent from my HTC Glacier using XDA App

How does one get su in ADB?

I am rooted with S-OFF on the phone. But, unlike the Vibrant, adb denies me su access when I enter "su" at the $ prompt. Anyone else see this?
Once you enter ADB through the SDK tools if I remember right, just start out with the 'su' command- I just caught it a couple days ago in one of the mt4g rom threads under the android development section- maybe a search for 'su' in those threads- I can't take the time to look right now- I'm @ work
Some roms connect by default as Su over adb... if you see a $ your regular user, # is root prompt...
If you have a $ and you get denied still, go to your Su app and confirm that adb has Su permission or at least isn't denied...
Sent from my Desire HD using XDA App
ESKIMOn00b said:
Some roms connect by default as Su over adb... if you see a $ your regular user, # is root prompt...
If you have a $ and you get denied still, go to your Su app and confirm that adb has Su permission or at least isn't denied...
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
Thanks for the replies so far. ADB is not listed in the su app. How do I add that? Wouldn't it be the daemon that needs root access?
EDIT: Got it. Duh! It would help if I look at the phone while requesting root access. Thanks!
yes it should.... i was wanting you to check that it was not in there with specific permission to deny...
youll need to hit allow on the phone just like any SU call BTW...
Editing my post while you posted. Thanks!
Confused me too the first time.... I got it figured out pretty quick tho....
Give a look at wireless adb its super sweet! Market wireless adb...
Sent from my Desire HD using XDA App

How to be sure you've rooted?

So I've successfully rooted with Burrito Root, pushed and installed Superuser.apk.
Can't yet load recovery being away from a windows machine currently.
Market is working, trying to get Calendar sync to work - noticed that Root Explorer won't allow me to "Mount R/W" in the root directory. Does this mean I'm not really rooted?
Nevermind - it seems to work now. Thanks!
Go market and download rootchecker
Sent from my Kindle Fire using xda premium
open terminal
su enter
Sent from my HTC Glacier using xda premium

Categories

Resources