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
1
vote
3 answers

how to find a rooted device?

I was been trying to find whether a device is rooted or not and if the device is found rooted i do not want my application to get installed.I have tried two of the below methods private boolean isRooted() { return findBinary("su"); } public…
Arun Inbasekaran
  • 297
  • 1
  • 3
  • 14
1
vote
1 answer

Make restore of MySQL root user’s full privileges persistent after restart

When I log in with user root on localhost using MySQL WorkBench and click on Users and Privileges, I get the message 'The account you are currently using does not have sufficient privileges to make changes to MySQL users and privileges'. Following…
BioGeek
  • 21,897
  • 23
  • 83
  • 145
1
vote
2 answers

Get the root ViewController - Objective-C

Here's my problem: I've actually created a custom segue to manage in a different way the transitions between my UIViewControllers (I'm working on a Storyboard based project). I added some animations using CATransform3D to move the views...so...when…
Sara Canducci
  • 6,231
  • 5
  • 19
  • 24
1
vote
1 answer

Proper way to perform privileged tasks from wsgi app

I need to write a small wsgi app for manipulating iptables. I use nginx + uwsgi on Debian with python-iptables package. uwsgi runs as www-data user by default, so if I try to access iptables from my app I got iptc.ip4tc.IPTCError: can't initialize…
1
vote
1 answer

Executing python as root no module named

Since I need to create a raw socket inside my python code, I need to run it as root. When I do that I found out that my imported modules are no longer supported somehow: `No module named foo` (I used to run my scripts as sh myScript.sh option1…
NELOUNI
  • 593
  • 2
  • 6
  • 14
1
vote
0 answers

Reading directories and files as root on Android (Java)

I'm writing an App to backup data. Some data can just be read with a rooted phone. This is not a problem, of course, but I don't know how I can read a complete directory with all subdirectories and files... I know, that I have to create a Process…
1
vote
1 answer

More than one principal activity

I have 5 "main activities" A,B,C,D,E App start with A and now can call A,B,C,D or E. My problem is that when do A->B->C->A B and C call onDestroy() and when call newly to B or C start with onCreate() I need that A,B,C,D and E never call…
1
vote
1 answer

Task 'afterEclipseImport' not found in root project 'NEWGDL'

I'm trying to make a new project to work on in eclipse using libGDX. I managed to get a project working before, but after deleting some files the project became unusable. Now when I try to use libGDX project setup I'm told "Task 'afterEclipseImport'…
Adlez
  • 11
  • 1
1
vote
2 answers

How to perform multiple root operations in a row (batch root operations)?

Note: this question isn't necessary just for Android developers. It should be the same for Java developers that performed root operations on Linux too. Background My app allows the user the perform various root operations (an operation that can only…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
1
vote
0 answers

Eclipse C project not recognized as root

I have imported an Existing Code as Makefile (C) Project in Eclipse which I setup for debugging. Unfortunately I need to run the executable as root with sudo. When I start sudo eclipse the project seems to be a normal Java project or anything, but…
1
vote
2 answers

Run Redis or Memcached as root or non-root?

Does it matter if I run Redis or Memcached as root or non-root? I'm thinking of creating a non-sudo Redis/Memcached user, and running the cache as that user. I would make all files owned by that non-sudo user. What would be the pros and cons of such…
JeffLL
  • 1,875
  • 3
  • 19
  • 30
1
vote
2 answers

How do I avoid creating folders as root when running a python script under sudo?

The question title pretty sums it up. I'm running a Python script which has the os.mkdir() function in it under sudo (because other functions need it). When I run it with sudo, the folder created has root as the owner and the only one with access…
marlanbar
  • 167
  • 10
1
vote
1 answer

run pycharm and scapy with proper permissions

I want to develop with the scapy network package for python using PyCharm. It requires root access to craft certain packets and go over certain ports. I am currently running PyCharm as root but am wondering if there is a more secure way to do…
tpweb
  • 53
  • 9
1
vote
1 answer

Android how can I get screenshot bitmap?

To make screenshots I use this code: Process sh = Runtime.getRuntime().exec("su", null,null); OutputStream os = sh.getOutputStream(); os.write(("/system/bin/screencap -p " +…
kubaork
  • 161
  • 2
  • 12
1
vote
2 answers

Set MySQL root password with command prompt on WampServer

I have installed WampServer Version 2.5 on my computer. I have been trying to set the MySQL root password using command prompt but it will not recognize my commands. When I type the following: mysqladmin -u root status I get the following…
Stephane
  • 71
  • 2
  • 11