Root is the superuser of Ubuntu. Questions about the / or /root folder are better suited for the "filesystem" tag.

learn more… | top users | synonyms

81
votes
18answers
18k views

Why is it bad to login as root?

I've often come across posts on forums or other websites where you see people joking in such a manner about running/logging in as root as if it's something awful and everyone ought to know about it. ...
52
votes
8answers
25k views

What is the difference between “gksudo nautilus” and “sudo nautilus”?

I've been using gksudo nautilus and sudo nautilus through Alt+F2. What's the difference? They look very similar!
44
votes
4answers
70k views

Execute sudo without Password?

Inspired by this question.... I am the sole person using my system with 12.04. Every time I issue a sudo command; the system asks for the user password (which is good in its own way). However I was ...
44
votes
3answers
9k views

When to use pkexec vs. gksu/gksudo?

There are two general ways to run applications graphically as root (or, more generally, as another user). Programs like gksu, gksudo, and kdesudo are graphical frontends for sudo. In contrast, pkexec ...
38
votes
5answers
36k views

How are administrators supposed to read root's mail?

What is the Ubuntu way for system administrators to receive system notifications, which typically take the form of e-mail sent to the root account? Examples of such notifications are the output of ...
31
votes
1answer
35k views

How do I boot into a root shell?

When booting to the graphical desktop fails we sometimes are recommended to boot into a "root shell" or to boot in "recovery mode". How do I do that?
30
votes
6answers
148k views

How to enable root login?

I would like to enable the root account on my Ubuntu installation. I realize the security implications of this.
27
votes
5answers
7k views

How to NOT become a root user? Are administrators root?

I installed Ubuntu on my PC. To log in, I use the username and password I created during installation. Does this mean I am a root user? If yes, then how do I become non-root? It looks like non-root ...
27
votes
14answers
10k views

Why is there no option to login as root?

Why does Ubuntu not allow the GUI users to login as root at the time of system start up like administrator in Windows? Why they are restricting us to login only through the terminal?
27
votes
4answers
40k views

How do I copy files that need root access with scp?

I have an Ubuntu server to which I am connecting using SSH. I need to upload files from my machine into /var/www/ on the server, the files in /var/www/ are owned by root. Using PuTTY, after I log ...
23
votes
8answers
68k views

How do I get permissions to edit system configuration files?

I can't seem to edit and save config files in the root system (eg: /etc/dhcp/dhcpd.config); it just says "permission denied" or the save option is blocked in the text editor. I'm pretty sure I'm a ...
21
votes
8answers
58k views

How to find out root password for installing software

I'm trying to install the NetBeans IDE in my Ubuntu and in the process it's asking for my root password which I don't remember. I know my sudo user password. How can I recover my root password?
19
votes
8answers
198k views

“No root file system defined” error while installing ubuntu

I am new to linux/ ubuntu and just downloaded the v11 of ubuntu to learn linux. I faced this "No root file system is defined" error while trying to install it. This is how I was proceeding - ...
17
votes
7answers
8k views

How can a script check if it's being run as root?

I'm writing a simple bash script, but I need it to check whether it's being run as root or not. I know there's probably a very simple way to do that, but I have no idea how. Just to be clear: What's ...
16
votes
3answers
16k views

How do I disable remote SSH login as root from a server?

For security purposes my company wants me to not allow anyone to be able to log into our Ubuntu server as root remotely over SSH. We still want the root account to exist, we just do not want it to be ...
16
votes
4answers
30k views

Change owner of internal hard drive partition from root to user

I have a number of drives internal and external. Some are partitioned. Most mount automatically at boot (all did at one point). One partition is owned by root and therefore does not mount ...
16
votes
3answers
17k views

Disable root account in Ubuntu?

I was asked for root credentials to setup my printer in Ubuntu. This seemed to be caused by a bug. And the suggested workaround is to create a root password. Since it is default that no root password ...
15
votes
3answers
43k views

How to configure ADB access for Android devices?

I'm using Ubuntu 12.10 and I have installed Android SDK, set it's path in my user .bashrc and it works. The problem is that my phone requires adb to be ran by root for permissions, but running adb ...
14
votes
3answers
33k views

What is the difference between 'su -' , 'sudo bash' and 'sudo sh'?

I would like to know what is the difference between su - sudo bash sudo sh I cannot login as root while doing su - because I do not have the root password - I mean I have my user password with ...
13
votes
2answers
2k views

Why am I suddenly not a sudoer anymore? [duplicate]

I booted up Ubuntu 12.10 today, and when trying to sudo, I entered my password as usual but it had said I'm not a sudoer. So I go and check my account under User Accounts, and for some reason Im now a ...
12
votes
3answers
143k views

What is the default root password?

I installed Ubuntu 12.04 LTS (Precise Pangolin), 64 bit. Nowhere was I asked to set password for root. I just installed AccuRev SCM software. It was installed under the /root folder by default. Now I ...
12
votes
4answers
184k views

How do I login as root?

I want to login as root, but when I enter sudo -s and enter password, this message is shown: "you are not in sudoers file", and when I enter su and enter password, this is shown: ...
12
votes
1answer
2k views

Why do I have low FPS unless root?

Problem: Normal users aren't using the best graphics driver. I first noticed this playing Osmos from the HumbleBundle2, but I can observe it while running glxgears too. Maximised on a 1280x1024, ...
11
votes
2answers
10k views

openssh server: rejected send message

When I tried to restart the ssh server on my ubuntu box, I got me@me-one:~$ service ssh restart restart: Rejected send message, 1 matched rules; type="method_call", sender=":1.63" (uid=1000 pid=3354 ...
10
votes
3answers
796 views

How can I make everything just assume I'm running as the superuser?

Is there a way I can make things just assume that when I run them I am running them as a privileged administrator (AKA root)? I know it could be dangerous and all, but its a risk I'm willing to take ...
10
votes
3answers
110k views

How do I set the root password so I can use su instead of sudo? [duplicate]

Possible Duplicate: How to know my root password? Instead of letting you set a password for root during install Ubuntu set it to * for no password and disables the actual account login, ...
10
votes
2answers
13k views

How do I start jobs as a non privileged user in Upstart?

I'm using last upstart version for ubuntu 10.4 LTS. upstart is launched with --debug kernel flag. I'm making a custom job configuration for nzbget daemon. Basically, this job has a pre-start script ...
10
votes
1answer
588 views

How can you know if executing a program requires root?

I understand that this is a bit fundamental and perhaps a silly question, but I haven't been able to find an answer. I understand that every file has the "Executable" bit. I assumed that programs ...
9
votes
5answers
4k views

Why does Ubuntu force users to create a password upon installation?

There's been one problem I've had since I installed Ubuntu to run alongside Windows, I assume this would also be the same if it was installed to replace the other operating system as well, the ...
9
votes
5answers
40k views

Get root access for copying files to /usr/share/…?

To be short, I want to copy a folder to a location /usr/share/screenlets/.... in Ubuntu 10.04 system. I tried by logging in as root from terminal giving su. I even changed my user account type to ...
9
votes
5answers
59k views

How to enable ssh root access on Ubuntu 14.04

I´d like to enable the ssh root access on Ubuntu 14.04. Editing the /etc/ssh_config (PermitRootLogin yes) didn't affect anything.
9
votes
3answers
1k views

When Ubuntu asks for an admin user's password, how does it decide which administrative user to ask for?

I am setting up an Ubuntu (10.10) machine that will be used by several people. It is a shared machine in a small office. Its primary roles are hosting virtual machines with VirtualBox and serving ...
9
votes
2answers
8k views

How do I set persistent environment variables for root?

To create persistent environment variables, I add the script file to /etc/profile.d directory, for example: # my script export MY_VAR=var_value This works properly for current user: ...
8
votes
6answers
67k views

How can I permanently grant root access to a user? [duplicate]

Possible Duplicate: How do I grant sudo privileges to an existing user? I've been searching for the answer to this but all I find is "It's not a good idea" or "We don't recommend it" and ...
8
votes
7answers
6k views

What are the benefits of sudo over su?

What is the actual benefit that ubuntu (or debian derivatives) achieve by disabling root user. Everywhere I read, its says to prevent unintentional damages for inexperienced users. I want to know ...
8
votes
5answers
73k views

How do I open a folder as root?

More specifically the /etc/apt/ folder. I need to delete some files and replace /etc/apt/sources.list with a newer version.
8
votes
3answers
6k views

Home folder in `root` and not in `home`… I'm confused!

I have an issue with my home folder and this are giving me some permission problems. I've installed an application that tells me that I have no permission to save in /home/username/Desktop, but in ...
8
votes
3answers
2k views

How to recover root user [duplicate]

I have accidentally changed the root user from administrator type to basic type in the user account page, and now i have no whatever root previligaes on the system, how i can switch back to ...
8
votes
2answers
14k views

How do I launch a GUI application as root on user login?

I would like to launch a Gnome application with root privileges at login. I have tried adding a script to launch using update-rc.d myscript.sh defaults. It looks like the application does launch, ...
8
votes
3answers
12k views

How to fix sudo after “chmod -R 777 /usr/bin”?

I enetered chmod -R 777 /usr/bin and now sudo is not working. It is giving error that sudo must be setuid root. On looking via Google, some advice said to run chown root:root /usr/bin/sudo chmod ...
8
votes
1answer
767 views

Script Execution at user logout (non root user)

I am in my university labs running ubuntu 12.10 with unity and I don't have root privilleges. I need to run a script at logout. Is this possible? Note: this is probably a duplicate of this question, ...
7
votes
3answers
33k views

How to create a user with root privileges in bash?

I have run the following commands: sudo groupadd -r testgroup sudo useradd -g testgroup -M -r testuser Notice the -r option, which according to the man page: -r ...
7
votes
1answer
1k views

How to prevent a file under user folder to be deleted?

How can I make some file impossible to be deleted by user even if it is under his/her home folder?
7
votes
5answers
52k views

How to change root password in ubuntu?

I am trying to change root password in my Ubuntu system. This is what I did: ashot@ashot-desktop:~$ sudo passwd root passwd: Authentication token manipulation error passwd: password unchanged ...
7
votes
1answer
11k views

Run command at boot as root

I need to run a bash script at boot-time as superuser in Xubuntu. I don't know where to start. I have to do something described in a Arch Linux guide. That guide says exactly: Add following at the ...
7
votes
1answer
882 views

Root tasks using dbus and policykit

At some point my application needs to do administrative tasks like creating a file in /etc or running commands with root priveleges. I know just could do a Q&D: os.popen("pkexec foo bar") But ...
6
votes
4answers
4k views

Is it possible to open directories as administrator?

I want to have a root privileges on some directories. How can I do this?
6
votes
2answers
5k views

Regain Sudo rights after removing from admin group [duplicate]

I accidentally removed myself from the admin group when editing the user. Now I can no longer use sudo. The error says: ber is not in the sudoers file. This incident will be reported. I booted up ...
6
votes
2answers
41k views

I Can't access the root folder

I do not have access to my root folder: Ubuntu says I do not have the necessary permissions to access it. I also cannot access lost + found, which gives me the same error message Is there anyone here ...
6
votes
1answer
1k views

How did this exploit allow write access to root owned files?

For a computer security assignment at my university I need to find and understand an exploit that works on ubuntu 10.04. I have already found and tested one on an Ubuntu 10.04 machine (that I own) ...