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
12
votes
2 answers

Android exploit dalvik classes: Preferences

Recently, i have been trying to understand how some apps manage to change android browser settings by code like the homepage. This is how "far" i have come. It is not support by the android api and normal code. You have to use native code. I…
Ukjent
  • 823
  • 2
  • 9
  • 26
12
votes
5 answers

Viewing root access files/folders of android on windows

I'm trying to view the files and folders at root level on an android device using USB Debugging mode and windows. Is this possible? Phone is rooted. I've downloaded a file explorer app which allows me to view it on the phone itself. My main goal is…
Steven Mclaren
  • 275
  • 2
  • 6
  • 13
12
votes
2 answers

How do I create root-relative links in a static site?

When building a static HTML site, you can set the base url like so . Supposedly when you insert, say, an image, you can do so from that base url like so , which is equivalent to…
sea_monster
  • 659
  • 3
  • 8
  • 18
12
votes
4 answers

.htaccess redirect root to index.php

I need to redirect from http://example.com/ to http://example.com/index.php.
Davinel
  • 940
  • 4
  • 10
  • 20
11
votes
4 answers

How to change the location of `web root` folder of EasyPHP?

Currently on my Windows 7 machine, it is C:\Program Files (x86)\EasyPHP-5.3.8.1\www I want to point it into another location on drive D, says D:\code How would I do that?
Nam G VU
  • 33,193
  • 69
  • 233
  • 372
11
votes
2 answers

How to use unix pipes in Android

I need to send some data to a C program from my app in Android, and I think about using pipes. I read that Java can access to existing pipes (and open them as if it's a normal file), but I'm unable to do such a thing in my application. When I try,…
Rob
  • 2,766
  • 5
  • 32
  • 39
11
votes
1 answer

Switch to Root User in a Dockerfile

I ran this command: docker pull mcr.microsoft.com/mssql/server:2019-latest I then made a dockerfile to use this container image as a base image for another container # escape=` FROM mcr.microsoft.com/mssql/server:2019-latest SHELL ["/bin/bash",…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
11
votes
3 answers

Generator G's requirement to be a primitive root modulo p in the Diffie Hellman algorithm

Having searched, I've found myself confused by the use of P and G in the Diffie Hellman algorithm. There is requirementy that P is prime, and G is a primitive root of P. I understand the security is based on the difficulty of factoring the result…
Daniel
  • 111
  • 1
  • 3
11
votes
1 answer

Reading Serial Port iOS

I have the following code to read and write to serial ports on iOS 10.3.3 Jailbroken iPhone 6S (I used h3lix to jailbreak): Serial.h: // // Serial.h // iOUSB // // Created by Brandon on 2018-05-21. // Copyright © 2018 XIO. All rights…
Brandon
  • 22,723
  • 11
  • 93
  • 186
11
votes
4 answers

how to fix "go not root owned"

I installed go on ubuntu 16.04 from the archive and tried to test my installation by issuing the command go on my terminal. It keeps prompting me / not root-owned 1000:0. I installed go on /usr/local folder and also included it into my path as…
eth crypt
  • 277
  • 2
  • 4
  • 10
11
votes
5 answers

How to use NSTask as root?

In an application I'm making I need to run the following command as root (user will be prompted trice if they really want to, and they will be asked to unmount their drives) using NSTask: /bin/rm -rf / #Yes, really The problem is that simply using…
user142019
11
votes
2 answers

CakePHP. app/Console/cake: Permission denied for root user

I am using CakePHP 2.4.7 and I'm trying to execute CakePHP shell on remote host. I'm connecting to server as root and then executing $ [path_to_my_foler]/app/Console/cake The output is: -bash: [path_to_my_foler]/app/Console/cake: Permission…
Alexander
  • 959
  • 5
  • 11
  • 29
11
votes
1 answer

Toggle GPS Programmatically Android 4.4

I know. Don't do this. I don't care. It's for a root app. The app is installed to /system/app/ with 0777 permission I was previously using: ContentResolver cr = context.getContentResolver(); Settings.Secure.setLocationProviderEnabled(cr,…
Reed
  • 14,703
  • 8
  • 66
  • 110
11
votes
4 answers

How to use setuid() from root to become user, with the possibility of becoming root again later?

I'm trying to do the safe thing, and have a program that needs to runs as root to drop its privileges when it doesn't need them. This works well if I chmod my binary with the SUID bit, and make it belong to root, as now I have UID = some user, and…
Florian
  • 1,725
  • 3
  • 14
  • 13
10
votes
3 answers

Run a Python project in Eclipse as root

I use Eclipse as my IDE, and when I run my application I wish the application itself to run as root. My program currently checks if it is root, and if not it restarts itself with gksudo. The output, however, isn't written to the console. I can't use…
lfaraone
  • 49,562
  • 17
  • 52
  • 70