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
19
votes
4 answers

java system preferences under different users in linux

I'm trying to run multiple jvms (including tomcat) under different users on one linux box. I'm not seeing too many issues, but in catalina.out I keep seeing this: May 30, 2014 1:16:16 PM org.apache.catalina.startup.Catalina start INFO: Server…
niken
  • 2,499
  • 3
  • 33
  • 56
19
votes
2 answers

Enable USB debugging through Clockworkmod with adb

So, a few days ago my Nexus 7 got dropped, and now there's a big crack in the screen. The touchscreen is broken. That is, I can still see what happens, but it is unresponsive. I have found a way to completely control it through adb, and through…
SharkWipf
  • 384
  • 1
  • 4
  • 12
18
votes
6 answers

Run a linux system command as a superuser, using a python script

I have got postfix installed on my machine and I am updating virtual_alias on the fly programmatically(using python)(on some action). Once I update the entry in the /etc/postfix/virtual_alias, I am running the command:sudo /usr/sbin/postmap…
Nanda Kishore
  • 2,789
  • 5
  • 38
  • 61
18
votes
3 answers

Running Python script as root (with sudo) - what is the username of the effective user?

I've recently began using ConfigParser() for my python scripts to add some functionality to them for config files. I know how to use it but I have a problem. My script needs to run as the root user, using sudo. The config files are in…
Jmariz
  • 235
  • 1
  • 3
  • 8
18
votes
3 answers

How to get the root package path using composer

I'm developing a PHP component called php-app-config using composer. This component, once required by another project, and installed using composer install, should look for config files inside the config folder of the root package, something like…
Menegazzo
  • 331
  • 1
  • 2
  • 7
18
votes
3 answers

Is there a way for a Java app to gain root permissions?

When running Files.walk(Paths.get("/var/")).count() as an unprivileged user, the execution might throw an exception as there are folders inside /var/ that need root permission to be traversed. I am not looking for a way to execute a bash command as…
Behrang
  • 46,888
  • 25
  • 118
  • 160
18
votes
7 answers

Run shell command in jenkins as root user?

I have recently started using Jenkins for integration. All was well until I was running jobs on master node without shell command but I have to run jobs on master as well as slave node which contains shell commands to. I am not able to run those…
Raj Gupta
  • 183
  • 1
  • 1
  • 6
18
votes
2 answers

Using wget to recursively fetch a directory with --no-parent

I am trying to download all of the files in a directory using: wget -r -N --no-parent -nH -P /media/karunakar --ftp-user=jsjd --ftp-password='hdshd' ftp://ftp.xyz.com/Suppliers/my/ORD20130908 but wget is fetching files from the parent directory,…
Karunakar
  • 2,209
  • 4
  • 15
  • 20
18
votes
3 answers

How to set root node name when XmlSerializing an array?

I have an array of objects which I want to serialize as XML. These objects are annotated to set XML node names but I was wondering how to set the name of the XML root node. The code looks like this: // create list of items List list = new…
paul
  • 13,312
  • 23
  • 81
  • 144
17
votes
5 answers

Runtime.exec() : Reboot in Android?

I'm looking for a solution which can be used to reboot a rooted device. I jknow that rebooting a device is very poor design for the user, as stated here, and it's not really for an application. The main purpose is to reboot the phone during my tests…
Rob
  • 2,766
  • 5
  • 32
  • 39
17
votes
3 answers

Give user permissions to htdocs in Ubuntu

I installed xampp with root permission to opt/lampp folder in Ubuntu.but i cant access htdocs folder and unable to start apache server since the lampp folder has only root permission.How can i solve this and are there any proper way to install xampp…
Sajith Herath
  • 1,002
  • 2
  • 11
  • 24
17
votes
3 answers

Genymotion: Edit /system/etc/hosts file

I am currently trying hard to modify my Genymotion Android emulator's hosts file. The well-known way of remounting, pulling and pushing does not seem to work at all when using Genymotion, as the filesystem is always read-only and remounting is…
arnekolja
  • 1,687
  • 5
  • 22
  • 29
17
votes
3 answers

How to run node.js as non-root user?

I'm running a node.js server, that will serve requests on port 80 amongst others. Clearly this requires the application running as root (on Linux). Looking at this post (http://syskall.com/dont-run-node-dot-js-as-root) as an example it's clear that…
user2208171
  • 183
  • 1
  • 1
  • 6
17
votes
6 answers

nginx change root folder for specific url

I have a configuration file like this one below: server { listen 80; server_name localhost; #charset utf-8; root html/laravel/public; index index.html index.php; #browse folders if no…
kabra
  • 1,306
  • 1
  • 17
  • 24
16
votes
2 answers

How to create Apps in android which can't be uninstalled? Can we make System apps?

We are providing one default app for our customers with android phone. Which user can not be uninstall. I have used Device Admin feature from this example But user can delete app by deactivate from settings. Another possible way I have found to…
Hardik Joshi
  • 9,477
  • 12
  • 61
  • 113