Questions tagged [root]

On Unix-like systems, a special user account used for system administration.

root is the conventional name of the powerful user with id 0 on Unix-like systems such as Linux . Many administrative commands and system calls are reserved to root.

Use if your question is not about the user, but simply about a device that has been rooted.

Root is a system user. It is rare to log in directly as root, but rather, users who are privileged enough gain root access for one command with sudo , or log into a temporary root shell with su .

In the world of (which runs on an Linux kernel), a rooted device is one where OS protections have been disabled, allowing processes to run as root, and thus do things they would normally be prevented from doing, such as reading all files on the device.

Not to be confused with CERN's ROOT framework for statistical analysis in C++, see .

See also:

3340 questions
16
votes
1 answer

Authenticating GTK app to run with root permissions

I have a UI app (uses GTK) for Linux that requires to be run as root (it reads and writes /dev/sd*). Instead of requiring the user to open a root shell or use "sudo" manually every time when he launches my app, I wonder if the app can use some…
Thomas Tempelmann
  • 11,045
  • 8
  • 74
  • 149
16
votes
2 answers

How to modify AOSP to allow specific apps to get root access?

I'm working on AOSP. I've successfully added my apk to build. Now I want to give root access to my app. I don't want to provide root access to other apps or to install the Superuser app in my build. I just want to add my app to get root access. How…
Neji
  • 6,591
  • 5
  • 43
  • 66
15
votes
5 answers

How to set the DOCUMENT_ROOT and site root in my local PHP dev setup?

I'm doing a job for a guy with a site online. It's an alien site to me, and I'm slowly working through the strange code. I have MAMP locally and my http://localhost/ has many client folders coming off from that. Inside this code there is a lot of…
James
15
votes
2 answers

Install APK using root, handling new limitations of "/data/local/tmp/" folder

Background So far, I was able to install APK files using root (within the app), via this code: pm install -t -f fullPathToApkFile and if I want to (try to) install to sd-card : pm install -t -s fullPathToApkFile The problem Recently, not sure from…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
15
votes
1 answer

Root Privileges for iOS App

I am developing an app targeted at jailbroken iOS devices. It is to assist in automating some tasks. I need to create a simple text file (actually a .lua file) in /private/var/mobile/Library. Obviously, the debugger throws an access denied…
Kikootwo
  • 360
  • 2
  • 14
15
votes
9 answers

Getting "Received too large SFTP packet" when logging in with Root using WinSCP to Google Compute Engine virtual machine instance

Hi I can login to the GCE VM with WinSCP using my own username, cannot login as root...this is by default according to Google, and can be changed. Changed like this: Step 1: Login SSH and Su Root # sudo su root Step 2: Change password Root #passwd…
Eric
  • 179
  • 1
  • 1
  • 6
15
votes
4 answers

How to use rvm (ruby version manager) with root account?

The whole point of rvm is to be able to install multiple rubies and access them from a user account. What do you do when you need to access any of those rubies from root? Or use gems installed in one of those rvms? Is there an elegant (or even…
Jade
  • 1,790
  • 2
  • 18
  • 22
14
votes
3 answers

Is the "--no-scripts" option enough to account for the security concerns about running composer as root?

I would like to make .sh file for automatic deploy web pages from github to production. I need to run composer install in it but as I run it, it throws me a warning: "Do not run composer install as root super user!" I found out this is because of…
Čamo
  • 3,863
  • 13
  • 62
  • 114
14
votes
4 answers

ADB Fastboot error when flasing rom 'FAILED remote unknown command'

I'm trying to flash Google factory image file on nexus 6P but it always stops at the same point. USB debugging is enabled, MTP mode also. Bootloader is unlocked and communicating with ADB Fastboot etc, is there something I'm missing? I've downloaded…
Zach89
  • 183
  • 1
  • 1
  • 8
14
votes
1 answer

Build Android with Superuser

Does anyone know how to include super-user privileges when building android from source (AOSP)?
Kevin Parker
  • 16,975
  • 20
  • 76
  • 105
14
votes
4 answers

How can I check for root when a user runs a perl script

I am working a script to generate a config file that I want to store in /etc/solignis. When I run the script as a limited user it does not allow me to create the directory or write the file. So the script will have to run as sudo or a root user, how…
AtomicPorkchop
  • 2,625
  • 5
  • 36
  • 55
14
votes
3 answers

Storing credentials in the Android app

How can we safely storing credentials data for access to the smtp-server in Android app? These data are constants and only the developer should know them. At the moment they are stored in the code, but this is not safe, because they can be seen by…
14
votes
2 answers

How to Root an Android Emulator?

I know there are quite a few question like this around but none of them really seems to work for me. I am writing a program that automatically updates and installs itself, however to install the update it requires user confirmation but I do not want…
wootank
  • 477
  • 1
  • 5
  • 18
14
votes
1 answer

How does TeamViewer take screenshots and allow remote control without root?

Background TeamViewer allows to remote control other android devices . it's quite slow, but it does the job. it requires 2 apps being installed. one that controls (link here), and one for being controlled (link here) . I'm not sure if it has any…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
14
votes
3 answers

How to change the group id of a file on rooted android device?

I am trying to give access to a file I have written in one app to another app. chgrp is not available in the adb shell (command 'chgrp' not found) I have installed BusyBox but in order to get access to chgrp. For example I use the command chown…
Matt
  • 985
  • 2
  • 9
  • 22