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

Storing web server images in windows C drive

I am running tomcat and I have some custom images which when I store on my C drive do not show up.If I move them to webapp root foder, they r fine but I do not want these images to end up in the war file.As I am using Windows symbolic link is not an…
madhuri reddy
1
vote
1 answer

How to let a program can be run by a specific user with owner's privilege on linux

I want a program can be run by a specific user (let's say tony) and the owner (root). I thought I could use setuid on the program: chmod u+s program1.sh But it returns out all other users can run program1.sh with owner's privilege. Instead of using…
Marcus Thornton
  • 5,955
  • 7
  • 48
  • 50
1
vote
0 answers

/dev/graphics/fb0 Device not found

I found a lot about /dev/graphics/fb0. It is fast. But It doesn't seems to be working. If i do manually. Neither programmatically. But I am sure that this feature works on my mobile as i have an application that works using same method. I have…
1
vote
2 answers

How do I save user uploaded files (images) to a specific file instead of the root directory with php?

Ok, in my website users can upload images as their profile photos and I save them as $username.jpg so all the image file names are unique. Problem is they all get saved in my root directory making everything there a big mess. So what kind of script…
Alien13
  • 558
  • 3
  • 8
  • 30
1
vote
3 answers

Any way to continue the running script in other shell

I created a script in which I login as a different user(superuser) during the execution of the script but the commands after this are put on hold until i logoff the other user. Is there any way that the script following the command to login(as…
Prateek
  • 139
  • 1
  • 11
1
vote
1 answer

htaccess redirect for root and subdomain

I want to change the URL structure of my site, and I need to make some redirects, basically i want: www.root.com/folder/second_folder/file.php to redirect to folder.root.com/second_folder/file.php Is there anyway that I could force to redirect the…
Alex898
  • 13
  • 2
1
vote
1 answer

copy system file without shell cp command

I need to read a 3rd party db file, so far i copyed the file to the sd card using shell su cp to copy the file to the sd card and read it from there using SQLiteDatabase but on android 4.1.2 I get a message saying the cp command is missing,…
ben or
  • 653
  • 5
  • 17
1
vote
1 answer

Declaring the ROOT folder when running HTML site locally

I have a simple static site, with HTML pages in different directories and often run the site locally by opening a file in a browser. The problem I'm having, is the browser doesn't recognize which folder is the ROOT, so any relative url that points…
1
vote
1 answer

Using an Eclipse plugin without root access

I have exhausted just about every link I could find on this topic --- my Google searches are pure purple links now. It's possible I overlooked something, but anyway... A user, who does not have root access, would like to use PyDev for Eclipse. We…
CptSupermrkt
  • 6,844
  • 12
  • 56
  • 87
1
vote
2 answers

how to eat up all the android memory in an android application?

recently, I am testing the performance of swap partition for android device. I need to eat up all the memory in a test application(can has root authority), so that some pages can swap out. how can I do this? thanks.
Sky
  • 23
  • 4
1
vote
1 answer

"sudo command" doesn't work, but "command" as root works

I'm trying to install Phusion Passenger on Ubuntu 12.04. When I try: sudo passenger-install-apache2-module ...I get: sudo: passenger-install-apache2-module: command not found However, when I omit the sudo, it works fine. Also, when I log in as root…
bevanb
  • 8,201
  • 10
  • 53
  • 90
1
vote
2 answers

Checking if root inside bash script

I want to check if the user running the script is root or not before running. But it doesn't seem to work. I'm currently logged in as root, but its something wrong with the syntax I think. if[[ $EUID -ne 0 ]]; then echo "Sorry, you are not root." …
romeo
  • 191
  • 2
  • 14
1
vote
1 answer

Python run a script as root and /home folder

I have a problem with /home folder as root. Here is my script: home = os.path.expanduser("~") print home # home is good: /home/guillaume # gksudo euid = os.geteuid() if euid != 0: print "Running sudo.." args = ['gksudo',…
Guillaume
  • 2,752
  • 5
  • 27
  • 42
1
vote
1 answer

De serialize an XML string from a Web API

I am using C# and have a question in relation to de serializing an XML string. Here is my code to de serialize: public object XmlDeserializeFromString(string objectData, Type type) { var serializer = new XmlSerializer(type); object result; …
user2985419
  • 553
  • 3
  • 9
  • 23
1
vote
0 answers

Execute chmod programmatically

I have a rooted device and I want to change the permission to the folder 'com.android.mms'. My app is system app. Is there a way to do it? I have already tried using process and checked this link as well. How to get File Permission Mode…
Ekta
  • 338
  • 2
  • 9
  • 26
1 2 3
99
100