[Q] Permission denied in Terminal after root running "free" - myTouch 4G Q&A, Help & Troubleshooting

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

Related

[Problem] Can't use su in ADB.

I've got a problem with my Wildfire.
I've rooted it with unrevolked 3, and in Android itself I've got root access for applications, but if I access the phone using ADB and type in su I only get permission denied.
Why does that happen?
Shouldn't a fully rooted phone provide access as su over ADB too?
And why can't I use Titanium to delete the HTC shipped apps, doesn't unrevolked unlock the NAND?
Thanks in advice
ChrBeck
What UID you have on adb shell ?
Use
Code:
adb shell
then
Code:
whoami
the wildfire atm only has full root via recovery, not full root access to the whole phone, soon it will get full root acess when alpharev releases their working patch for the wildfire.
Ok guys thanks for your answers.
I just found out the recovery thing yesterday evening too.
In ClockworkMod I mounted /system.
Then I was able to delete files.
After that I installed Wildpuzzle and now I have full root in the normal system too.
Anyways thanks for your help.
I rooted my wildfire with unrevoked and it worked good. In the shell: whoami
Root
Make sure the terminal is accepted by superuser
Sent from my Milestone using XDA App
And if you use adb from linux you need to setup android.rules add the vendorId, kill adb server, restart then type. /adb devices
Sent from my Milestone using XDA App
OK, I used adb under Linux and of course haven't added the Vendor ID.
So maybe that was my problem, but WildPuzzle is better anyways and doesn't cause these problems.
Has nothing to do with that. If Linux has no defined rules it will not be able to see your device.
http://menodev.com/mobile/debugging-your-android-device-on-linux/
Sent from my Milestone using XDA App
OK, then that wasn't my problem because I was able to see the device and access it, only su in adb wasn't working, but the simple things like cd and ls have been fine.
As far as i recall you need a rooted phone to su in the adb shell
Sent from my Milestone using XDA App

[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.

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

[Q] Superuser problem? MT4G

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

Rooted but s is on?

Alright im kinda of new to the mytouch 4g scene. However im have a good understanding of what is going on,just not with the 4g lol.here's my problem I bought this phone off ebay and I went to root it and it said already rooted. I get all super user permission even after turning phone of on and off. When I go to check if s is off it is on? What's going on is this phone only temp rooted? If so how do i perm root i know there are many methods just want to know the best. Its 2.2.1. Thanks in advance. If
Sent from my SGH-T959 using XDA App
Vjarndt said:
Alright im kinda of new to the mytouch 4g scene. However im have a good understanding of what is going on,just not with the 4g lol.here's my problem I bought this phone off ebay and I went to root it and it said already rooted. I get all super user permission even after turning phone of on and off. When I go to check if s is off it is on? What's going on is this phone only temp rooted? If so how do i perm root i know there are many methods just want to know the best. Its 2.2.1. Thanks in advance. If
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
It seems like your already perm rooted. But, s off is required for u to flash custom roms.
Sent from my HTC Glacier using XDA App
Thanks. I just pushed the root file and it turned it off. I was praying for a min. Lol
Sent from my SGH-T959 using XDA App
Vjarndt said:
Thanks. I just pushed the root file and it turned it off. I was praying for a min. Lol
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Good job
Sent from my HTC Glacier using XDA App
Vjarndt said:
Thanks. I just pushed the root file and it turned it off. I was praying for a min. Lol
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
How did you push the root file? I'm stuck on the same thing!
PostaHTC I see you made alot of posts I am guessing you just did TempROOT and you didn't invokes the sh command. Did you download the root.sh? If so after TempROOT to get PermROOT from console type in sh <file> make sure you have root dir under /sdcard
I've done it step by step and still nothing I just got it out the box 2days ago so I just did a hard reset I'm just waiting on someone to tell me what I am doing wrong
Can you tell me exactly what to do because I rooted my 1st myTouch but this one is acting crazy! I have all the files /sdcard my question is when you temp-Root the phone do you type the commands then perm-root? Like I'm lost
Well since you are up to the PermROOT I take it you have TempROOT, if so as you saying you have root.sh in root dir inside /sdcard so it would look like /sdcard/root/root.sh for the absolute path. Also you have console right? If not go download Terminal Emulator. Then type in "su" and press enter SU=Super User or @wheel,root permission base. Then use "cd /sdcard/root" press enter CD = Change Directory. Then do "sh root.sh" and press enter as sh is shall execute command. So it would look like this below:
su
cd /sdcard/root
sh root.sh
Now just do restart and make sure you have S=OFF as you will see it on top in HBoot screen. When you are back on go open Visionary+ and unclick TempROOT on boot and click TempROOT now. Then look below and click on Attempt PermROOT Now.
STHNS said:
Well since you are up to the PermROOT I take it you have TempROOT, if so as you saying you have root.sh in root dir inside /sdcard so it would look like /sdcard/root/root.sh for the absolute path. Also you have console right? If not go download Terminal Emulator. Then type in "su" and press enter SU=Super User or @wheel,root permission base. Then use "cd /sdcard/root" press enter CD = Change Directory. Then do "sh root.sh" and press enter as sh is shall execute command. So it would look like this below:
su
cd /sdcard/root
sh root.sh
Now just do restart and make sure you have S=OFF as you will see it on top in HBoot screen. When you are back on go open Visionary+ and unclick TempROOT on boot and click TempROOT now. Then look below and click on Attempt PermROOT Now.
Click to expand...
Click to collapse
I have everything I need the files and all...I have the files on the SD Card not the root folder When I turn it off it is still saying S-On
Well in that case from console type in
su
mkdir /sdcard/root
mv /sdcard/root.sh /sdcard/root/
cd /sdcard/root
sh root.sh
If you don't want to do it manually then you can do it easily via FileExp go use Astro or Root Explorer. From what you are saying I have my money on you didn't properly do TempROOT. I say go do TempROOT again then try what I suggested for PermROOT.
UPDATE: Here I found you Youtube videos how to do step by step.
TempROOT> http://www.youtube.com/watch?v=gylaXOCNzqU
PermROOT> http://www.youtube.com/watch?v=Sy_aqKoeev4
Use the howto from Theunlockr video posted above it maybe easier for you to follow.
sthns said:
well in that case from console type in
su
mkdir /sdcard/root
mv /sdcard/root.sh /sdcard/root/
cd /sdcard/root
sh root.sh
if you don't want to do it manually then you can do it easily via fileexp go use astro or root explorer. From what you are saying i have my money on you didn't properly do temproot. I say go do temproot again then try what i suggested for permroot.
Update: Here i found you youtube videos how to do step by step.
Temproot> http://www.youtube.com/watch?v=gylaxocnzqu
permroot> http://www.youtube.com/watch?v=sy_aqkoeev4
use the howto from theunlockr video posted above it maybe easier for you to follow.
Click to expand...
Click to collapse
i tried the unlockr it didn't work ugh
Same problem, my device is permanent rooted from visionary but still had s-off after this procedure.
Sent from my HTC Glacier using XDA App
onboard nand flash query for STHNS
Thank you STHNS you said Good news for you lol I looked in to it when I was comparing it with iPad and if I remember correctly the 16gb on Samsung GT is using NAND flash memory from SanDisk""""""
Can you please tell me the size , length, breadth and thickness of the sandisk 16gb inside storage,,
I'm S-On, And I Can Still Flash Custom Roms And Everything.
Slim6 Launcher And Open Gapps 6.0 Nano Are On My Device
Htc One M8
Glad to see something going on here. If you need any assistance, quote me. Have Rooted plenty of these devices
Sent from my One using XDA mobile app

Categories

Resources