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

learn more… | top users | synonyms

72
votes
17answers
12k 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. ...
44
votes
9answers
19k 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!
38
votes
3answers
6k 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 ...
32
votes
4answers
29k 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 ...
28
votes
4answers
44k 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 ...
26
votes
5answers
5k 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 ...
26
votes
2answers
27k views

How can I install a package without root access?

I have no root access on this machine. I would like to know if there is a way I can download Ubuntu packages and install them as non-root? Probably in my ~/bin or ~/usr/share or something like that? ...
24
votes
14answers
8k 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?
22
votes
7answers
50k 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
6answers
78k 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.
21
votes
2answers
19k views

How do I run WireShark, with root-privileges?

A standard installation of WireShark doesn't give the program permission to address the network interface. I suppose I have to run the program with SUDO, but do not know how to add it to the icon - if ...
19
votes
8answers
47k views

How do I recover my root password?

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
3answers
23k 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 ...
18
votes
2answers
23k 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?
15
votes
8answers
139k 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 - ...
15
votes
3answers
6k 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 ...
13
votes
4answers
22k 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 ...
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 ...
13
votes
3answers
27k 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 ...
12
votes
2answers
793 views

Wrong mv command

I have an Ubuntu Desktop used as a Server. This morning I accidentally moved all my root to ../ mv /* ../ mv: cannot move "/dev" to "../dev": Device or resource busy mv: cannot move ...
12
votes
1answer
1k 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
3answers
9k 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 ...
10
votes
3answers
788 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
2answers
7k 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 ...
9
votes
5answers
3k 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
3answers
11k 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 ...
9
votes
3answers
26k 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 ...
8
votes
6answers
4k 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
3answers
5k 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
1k 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
4answers
107k 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: ...
8
votes
2answers
10k 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 ...
8
votes
2answers
10k 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
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 ...
8
votes
1answer
389 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
63k 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, ...
7
votes
3answers
9k 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 ...
7
votes
3answers
83k 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 ...
7
votes
2answers
4k 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: ...
7
votes
1answer
715 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
3answers
18k views

How do I install root-cern?

Cern's ROOT environment installs fine on 10.10, and is even available in the Software Center, but it will not install or compile on Natty because the x11 directories are in new locations. I can ...
6
votes
2answers
516 views

Why I'm not asked to set a password for Root when Installing Ubuntu?

When I install Ubuntu, it never shows an option to set a password, yet there is a password when trying to log in to the admin account and when I try to install packages. I can't change the password in ...
6
votes
3answers
411 views

Custom GNOME applet in Python needs to have root privileges

I've written a custom GNOME panel applet in Python that needs to write to some root-owned files. Is there a way to make it start with root privileges without using suid?
6
votes
1answer
1k views

Get root privileges for nautilus on sftp connection

I use "Connect to server" option to sftp to remote computers, as a user which has sudoer privileges. But then, I cannot get root privileges to modify system files. How can I do this? (I know i can ...
6
votes
2answers
130 views

When running `ll`, what does `root root` mean in an entry?

I'm curious what the meaning is for the two root entries on terminal when you enter the ll command. I know one is the user but not sure which one. What do both mean and in which order? For example, ...
6
votes
4answers
3k views

Is it safe to resize root partition?

My HDD is partitioned into two equal sized partitions. First is being used for Windows and Second for Ubuntu. Everything is working fine. But now I want to remove Windows and use the disk completely ...
6
votes
1answer
7k views

xrandr as root cannot find displays

I have the following rule call my script when I dock or un-dock my ThinkPad: # /lib/udev/rules.d/81-thinkpad-dock.rules KERNEL=="dock.0", ATTR{docked}=="0", RUN+="/usr/bin/think-dock-hook off" ...
6
votes
5answers
7k views

my admin password is rejected [duplicate]

I am the administrator and original user of our 11.04 server with GUI. (my name, my password were all given when installing). But it frequently rejects my password (and every other user's password) ...
6
votes
3answers
4k views

Run script as root at login (no sudoer user, shell session)

Much like /etc/profile and ~/.profile but ran by root instead of the user is doing login. /etc/rc.local runs after boot but I need running the script before login. The user is not a sudoer one. ...
6
votes
1answer
186 views

How can Firefox install WebApps without root privileges?

When visiting a supported site Firefox shows a pop-up message asking if you want to install a WebApp (for instance facebook, pandora, etc). If you accept, the corresponding package is installed (for ...