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

How to install java locally - no root - on linux, if possible?

I need java 1.7 and server has only got 1.6. I have no root privileges. I tried to google out something but it seems like nobody was doing it. Can I somehow compile it or get ready binaries so I could put those into my PATH. Could you help? System…
Pawel Osipowski
  • 514
  • 1
  • 4
  • 8
32
votes
4 answers

How to rename root key in JSON serialization with Jackson

I am using Jackson for JSON serialization of a list of objects. Here is what I get: {"ArrayList":[{"id":1,"name":"test name"}]} But I want this : {"rootname":[{"id":1,"name":"test name"}]} // ie showing the string I want as the root name. Below is…
user2266861
  • 333
  • 1
  • 3
  • 6
31
votes
5 answers

Android: How to get kernel logs after kernel panic?

I am using an Android Custom ROM on my device, also with a custom boot.img (custom kernel + cmdline + ramdisk). I now want to be able to view the kernel logs immediately after a kernel panic, but unfortunately I can not use a serial console. The…
mreichelt
  • 12,359
  • 6
  • 56
  • 70
31
votes
5 answers

How do I redirect to root - public/index.html?

I wish to do a redirection to index.html in my application/public folder. def get_current_user @current_user = current_user if @current_user.nil? redirect_to root_path end end How do I achieve this ? I haven't modified the root in…
geeky_monster
  • 8,672
  • 18
  • 55
  • 86
31
votes
6 answers

Debugging in XCode as root

In my program I need to create sockets and bind them to listen HTTP port (80). The program works fine when I launch it from command line with sudo, escalating permissions to root. Running under XCode gives a 'permission denied' error on the call to…
Anton
  • 3,352
  • 3
  • 23
  • 15
29
votes
6 answers

Access denied when put bucket policy on aws s3 bucket with root user (= bucket owner)

I have an AWS root user which I used to create a S3 bucket on Amazon. Now I want to make this bucket public by adding following policy: { "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Principal": "*", "Action":…
Tijl .Reynhout
  • 901
  • 2
  • 9
  • 24
29
votes
0 answers

How to run adb push as root?

I want to use adb pull to pull a db file from Nexus 7 to PC. My nexus 7 has been rooted. If a use "adb pull /data/data/com.xx.xx/databases/xx.db .", it failed because of permission problem. But if I use ">adb shell; >su", but then I can't use "adb…
TianxiLiu
  • 367
  • 1
  • 3
  • 8
28
votes
6 answers

MariaDB installed without password prompt

I've installed mariadb from Ubuntu 15.04 repositories using the Ubuntu software center or at the command prompt (apt-get install maraidb-server), but no password is asked for root user. Now I'm able to connect to mysql on command line without…
mtoloo
  • 1,795
  • 3
  • 22
  • 28
27
votes
7 answers

Launch a script as root through ADB

I have created a script to mount partitions and do some stuff in my Android system. I saved the script as install.sh in the /bin folder of Android. I want to call the script from ADB, which is itself called from a batch file on Windows, but it needs…
ErGo_404
  • 1,801
  • 4
  • 18
  • 22
26
votes
3 answers

Cannot run on production devices

When I run my application, the message below is printed in the error log. I don't understand if the problem is from my application or if the message is printed by my Android device. E/NEW_BHD: Cannot run on production devices! I read this answer…
Yogesh Rathi
  • 6,331
  • 4
  • 51
  • 81
26
votes
2 answers

Install Android APK without prompt

We are writing an Android app that shows ads on large screens. We have a backend where advertisers can select the ads, so they are updated almost instantly. Because there will be a lot of Android boxes running (plugged into HDMI screens), we should…
TomCB
  • 3,983
  • 9
  • 40
  • 66
25
votes
7 answers

Openshift Nginx permission problem [nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)]

I am currently running into a problem trying to set up nginx:alpine in Openshift. My build runs just fine but I am not able to deploy with permission being denied with the following error 2019/01/25 06:30:54 [emerg] 1#1: mkdir()…
relief.melone
  • 3,042
  • 1
  • 28
  • 57
25
votes
3 answers

How can I get root permissions through the Android SDK?

I'm learning Android programming, and I want to make an application which has to run as root. The logical thing would be to add a root permission in the Android Manifest. I saw this link in the documentation, and especially noted the FACTORY_TEST…
Rob
  • 2,766
  • 5
  • 32
  • 39
25
votes
3 answers

How to have path alias in nodejs?

Let's say i have following codes: var mod1 = require('../../../../ok/mod1'); var mod2 = require('../../../info/mod2'); It's not pretty coding like above, i am wondering if there is a way to configure the root resolver just like webpack-resolve-root…
Howard
  • 4,474
  • 6
  • 29
  • 42
25
votes
7 answers

Google Cloud: Compute VM Instances

How do I get root access to my Google VM instance, and also how can I log into my VM Instance from my PC with a SSH client such as putty? I would also like to add that I have tried to do sudo for things that need root access to do those things, such…
Joseph
  • 291
  • 1
  • 3
  • 3