How to Open Nautilus as Root in Fedora 15 using sudo or Beesu

June 7, 2011

Quite often you will find yourself the need to write files that does not location within your home folder. In this case, you need root access to do it. There are two methods of open Nautilus (File Manager) with root privileges. The first method is to use sudo command from the terminal. The second method is to install and use Beesu with Nautilus.

Method 1: Using sudo

User must belong to the Administrators Group in order to use sudo command. If you have not add the current use to the Administrators group during the system setup, then you could add user to Administrators Group via User Account Settings.

Add Normal User to Administrator Group

Under your username, select System Settings >>  User Accounts (as shown below). Click unlock using root password and change the “Account type” from “Standard” to “Administrator”.

Opening Nautilus from Terminal

Open a terminal and issue the command:

$sudo nautilus

If you want to be able to continue using the terminal, you can start the Nautilus command in the background as follows:

$sudo nautilus &

Method 2: Using Beesu

Installing Beesu

Open a terminal and install the following packages:

$sudo yum install beesu
$sudo yum install nautilus-beesu-manager

Configuring Beesu

After you have installed the packages above, you run $nautilus-beesu-manager to configure how you want to use Beesu.

The most useful settings are:

  • Edit with gEdit
  • Execute/Execute Application
  • Files and Folders/Delete Selected Files
  • Files and Folders/New File Here
  • Files and Folders/New Folder Here
  • Open Terminal Here

Using Beesu

  • Open up Nautilus (under Applications >> Accessories >> Files)
  • Navigate to the file or folder you want to manage, Right-Click the mouse, select Scripts >> beesu and a list of options which you have configure earlier was available.
  • Please note that some options worked on folders and some options worked on files while some worked on both.



Install and Using Beesu on Fedora 12

December 16, 2009
A common utility for running GNOME application using root privileges is gksu and gksudo. Currently these 2 applications are under reviewed by Fedora. Therefore, these packages are not available in the Fedora repository. For Fedora user there is an alternative package called Beesu. Beesu is the alternative package to use to open GNOME application such as Nautilus using root privileges.

Installing Beesu

  • Open a terminal window with root access (su-)
  • Use the following command to install Beesu
    • #yum install beesu
    • #yum install nautilus-beesu-manager

Using Beesu

  • To use Beesu to open Nautilus with root access, use the following procedure:
  • Open a terminal window with normal access, use the following command (use either one)
    • #beesu nautilus
    • #beesu nautilus –browser

Configuring Nautilus with Beesu

The above method is workable. However, it is very cumbersome to open a terminal window every time you want to open Nautilus with root access. Using the package Nautilus Beesu Package, we can configure Nautilus by installing some scripts that uses Beesu function. The procedure for installing such scripts is as follows:

Configuring Nautilus with Beesu

  • Open a terminal windows
  • Run the Nautilus Beesu configuration program with the command
  • $nautilus-beesu-manager
  • A Window will pop-up and you have to choose which script to install. At least choose “Open Nautilus here”. It is also recommended to install the script “Open with gEdit”

Using Nautilus with Beesu Script

  • After installation is done, you can open the normal file browser and navigate to any system folder you might need to access with root privileges.
  • Right-click the system folder and select Scripts >> beesu >> Open Nautilus here
  • Another Nautilus window will appear with root privileges.
  • If you want to be able to edit any script file or configuration file freely, install the script “Open with gEdit”.
  • After the installation, point to any script or configuration file you want to modify with root privileges, right-click and select Scripts >> beesu >> Open with gEdit.
  • gEdit will open the selected script file or configuration file with root access. You don’t have to open a new Nautilus window


How to Open Nautilus as Root

December 16, 2009

There are basically 2 ways to open nautilus as root

Using sudo Command

The simple way is to configure current user to use sudo.

The procedure of configuring sudo is as follows:

  1. Open a terminal window with root privileges using the command below:
  2. #su –
  3. After entering password proceed with the following command to open the sudo file
  4. #visudo
  5. This vi utility will check if your entry is correct. Use visudo instead of vi /etc/sudoers
  6. In the sudo file, remove the # from the statement %wheel  ALL=(ALL)       ALL
  7. Next, open the group file using vi as follows:
  8. #vi /etc/group
  9. Under the entry wheel:x:10:root, append the current login name after root as follows:
  10. wheel:x:10:root,username
  11. Save the file. Now the current user can perform sudo command
  • To open Nautilus as root use the command from the terminal without root access,
  • $sudo nautilus
  • or
    • $sudo nautilus --browser.
  • File browser will open with root access.
  • You can perform the above command in the background as follows (use either command):
    • $sudo nautilus &
    • $sudo nautilus --browser &
  • The other way is to install and use the software package Beesu. Check out this post for details: Installing and Using Beesu on Fedora 12