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
38
votes
18 answers

SSH EC2 asking for password

I've just setup my EC2 server following this video here exactly - http://www.youtube.com/watch?v=bBajLxeKqoY I even chose the same server type, everything went well until it asked for the root password to my EC2 server... Any suggestions?
Matt
  • 5,005
  • 10
  • 32
  • 39
38
votes
8 answers

how to debug application as root in eclipse in Ubuntu?

I'm programming application using libpcap. when I debug the application in normal mode, pcap cannot get the network device. it seems that I have to debug the application in root. How can I debug the application in root? I have the root password. I…
futang
  • 381
  • 1
  • 3
  • 3
38
votes
9 answers

Permanently hide Android Status Bar

I'm trying to hide the system Status Bar on an Android 4.4 device. This is for a kiosk-mode where my app will be the only app ever run on the device. The target device for now is a 2013 Nexus 7. The device is rooted, and I've been able to completely…
dtyler
  • 1,398
  • 2
  • 15
  • 21
37
votes
4 answers

Should I run things inside a docker container as non root for safety?

I already run my docker build and docker run without sudo. However, when I launch a process inside a docker container, it appears as a root process on top on the host (not inside the container). While it cannot access the host filesystem because of…
Guerlando OCs
  • 1,886
  • 9
  • 61
  • 150
37
votes
5 answers

Android ADB access to application databases without root

Can anyone tell me, is it possible to use the ADB to pull and push a database from an app, without root privileges on the phone? For example, I know the location on my rooted magic and dream is: /data/data/com.xxxx.xxxx/databases/xxxx I know that…
Scoobler
  • 9,696
  • 4
  • 36
  • 51
37
votes
9 answers

How to uninstall an android app from command line on the device

I can uninstall an app on the device from my computer using adb uninstall , but I'd like to do the same with a script on the actual device. I've also tried running an android.intent.action.DELETE intent using am but it prompts the user…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
35
votes
5 answers

C# How to know if a given path represents a root drive?

How can I know if a given directory is a root drive? (aside from checking if its path equals to "A:", "B:", "C:", etc.)
user356178
35
votes
5 answers

Import Certificate to Trusted Root but not to Personal [Command Line]

I am trying to import two certificates to my local machine using the command line. I have one certificate to add to the Personal Store of the local machine, and another one to add to the Trusted Root Certification Authorities. Here is the command to…
TiagoM
  • 3,458
  • 4
  • 42
  • 83
35
votes
4 answers

Document Root PHP

Just to confirm, is using: $_SERVER["DOCUMENT_ROOT"] the same as using: / in HTML. Eg. If current document is: folder/folder/folder/index.php I could use (in HTML) to start at the roort: /somedoc.html and to do the same in PHP I would have to…
Andrew
  • 489
  • 1
  • 7
  • 13
34
votes
7 answers

What Belongs to the Aggregate Root

This is a practical Domain Driven Design question: Conceptually, I think I get Aggregate roots until I go to define one. I have an Employee entity, which has surfaced as an Aggregate root. In the Business, some employees can have work-related…
jlembke
  • 13,217
  • 11
  • 42
  • 56
34
votes
2 answers

How do I request root access in Android?

I need to get root access for rooted devices, and I was wondering how I can request root access. I need the access for the file system. Thanks a lot.
Michell Bak
  • 13,182
  • 11
  • 64
  • 121
34
votes
3 answers

ANDROID: How to gain root access in an Android application?

I'm developing my first Android application, and I'm curious if there are any "standard" ways for executing privileged shell commands. I've only been able to find one way to do it, by executing su, and then appending my commands to stdin of the su…
Emma
  • 2,012
  • 5
  • 21
  • 30
34
votes
7 answers

Start app as root with pm2

I have a daemon that must be run as root on startup. I use pm2 to start other apps but can not figure out if it can start an app as root. Can it be done? If not, what are my options?
Martin Nilsson
  • 659
  • 1
  • 8
  • 17
34
votes
7 answers

How to programmatically gain root privileges?

I am writing some software (in C++, for Linux/Mac OSX) which runs as a non-privileged user but needs root privileges at some point (to create a new virtual device). Running this program as root is not a option (mainly for security issues) and I need…
ereOn
  • 53,676
  • 39
  • 161
  • 238
33
votes
5 answers

How to create android apps with root access?

I found out that there's so many apps out there which required root access. How were they able to create those apps? Where did they found all the resource? Is there any official document about the root access? Or will it need some hackish way? And…
Fugogugo
  • 4,460
  • 10
  • 36
  • 50