Granting root permissions to another user - Android Q&A, Help & Troubleshooting

First I have googled until my fingers bled knowing the answer is out there and apologize in advance if it has been covered in these forums elsewhere.
I have an android appliance running 4.3, I have root access via adb shell. What I want to do is grant root access to the standard users so I have root access using telnet. This is NOT a phone, it will NOT be on the internet so I do not need to worry about root being open to the world. I just need to be able to shell into it and be able to run any command needed via the normal user in telnet. Changing the user permissions seems like an easy way but all linux style sudo and user commands fail (it's a very cut down install in this machine).
Any help would be appreciated,
J

Bump, Anyone?

Related

[Q] adb shell $ instead of #, adb root cannot run

I've followed the following thread CF-root 4.1.
Everything went fine and the kernel is rooted.
I can use apps which require root, like TitaniumBackup.
I also can use su to gain root privileges and also adb shell and then su. To make this more clear. I first get $ (user priv) and then with "su" i get # (root priv).
For this reason i can't use the adb push method, because i'm not root directly.
adb root which is suggested in a couple of threads isn't helping me. I get the following output. "adbd cannot run as root in production builds".
How can i fix it, so i can have root privileges directly when connecting via the adb shell?
You need an "insecure kernel" for that.
There are several for download in a thread in the dev section.
Why do you need ADB to be running as root for pushing, if you don't mind asking?
bla
HellcatDroid said:
You need an "insecure kernel" for that.
There are several for download in a thread in the dev section.
Why do you need ADB to be running as root for pushing, if you don't mind asking?
Click to expand...
Click to collapse
Many thanks for illuminating people in this situation!
Cuz it's obviously more comfortable to do stuff using the computer's keyboard.

[Q] Disable ADB root login (cyanogenmod)

Now my phone is rooted, engineering boot ROM, with Cyanogenmod installed.
I'm wondering from a security standpoint, if someone happens to take my phone, and I happen to forget to disable USB Debugging, how can I make it harder to use ADB to reformat the phone?
By default, an ADB shell gives root access to the phone. How can you set the ADB shell to default to an unprivileged user that will have to 'su' in order to gain root access?
matkam said:
I'm wondering from a security standpoint, [...] How can you set the ADB shell to default to an unprivileged user that will have to 'su' in order to gain root access?
Click to expand...
Click to collapse
I'd really like to know this, too. :b

[Q]My Files.apk root access

Hey Guys,
Would it be possible to give Samsung's stock app "My Files" root access through su or perhaps modifying the code? I purchased root explorer but to be completely honest like the feel of the original app.
No.
Ability to access root must be built into the application. There are only a few that have it. Root Explorer is by far the most popular and most used.
Isn't android based on linux, and don't applications run like programs? So in theory couldn't you use a sudo or su like command that would give the program full rights?
I know it's got to be possible given the environment that it's running in and I feel like it would be relatively rudimentary.
With root access you can use android terminal emulator and the su command to get root access. Or you can use Android Debug Bridge (adb) from a Windows, Mac or linux computer. Since you are new to android, perhaps you should do some searching and reading so you can gain some general knowledge. In the guides linked in my signature you can find some directions for using adb and terminal emulator.
But still, installed applications will only function the way they are programed, and MyFiles does not have root access.
Thanks for your help, i'll look into adb. Inevitably I want to start developing on the kernel level but thought this would be a good place to start.
Have you tried ES File Explorer? It is free and has root access (must be enabled within app settings).
I also was not a fan of Root Explorer.

[Pls Help] How to run shell command from code in non-rooted Android phones?

Dear Sirs/Madams,
I'm new to Android development and I'm writing my very first Android apps but recently I have encounter the below problem:
I want to call reboot command in non-rooted phone but as you know, reboot command needs root permission.
I want my app to run in both rooted and non-rooted phones. For rooted phones there is no problem.
However for non-rooted phones, I am trying to find a way to restart it without root permission.
I have been thinking of calling shell command in non-rooted phones (E.g, adb shell reboot), but I don't know how to put the script file
to an apk file and excecute the script within java code.
Therefore I'd like to ask for your help to solve this problem.
Thank you very much

Can't get ADB root access - What else could I try?

Hi there
I fiddle largely with MTK based phones and when I tweak a phone, I normally only need ADB root access. So my general process has been to:
1. OEM Unlock the device
2. unpack the boot.img and change the default.prop values (ro.adb.secure etc) to allow ADB root access.
3. Use ADB to get temporary write access using adb Root, then ADB remount Rw. Then you can pull and push files.
However I have an MT8735b, Android 7.0, Alps based device that will simply not give me ADB root access. so when I run "adb remount rw" or any of the equivalent shell scripts you can use instead, it just won't give me write access.
So I heard that newer phones based on these chipsets and also ones like 6737M are locking the device up in other ways.
My question is, does anyone have any ideas or knows anything I could try to get root access?
Any help is much appreciated.

Categories

Resources