Run as root

From MEPIS Documentation Wiki

Jump to: navigation, search

What does "run as root" mean?

Running a program as root means to run the program with the root (administrator) credentials. Usually Linux users prefer to use a normal user for normal activities and use root (administrator) account only when they need to perform system wide changes. Running as root all the time is not recommended.

In Console

To run a program as root start the Konsole, type su, input the root password when prompted and then type the name of the program. Read this if you get XHost errors.

GUI program

To run a GUI program as root use kdesu. Kwrite (a text editor) is used as an example below:

  • Right-click on the desktop and choose "Run Command" (you can access "Run Command" from KDE Menu too). Type "kdesu kwrite" and type root password when prompted.
  • Right-click on the desktop and choose "Run Command" and enter kwrite. Click "Options". Select "Run as a different user". Type in "root" for username if necessary, and enter the password. Click "Run"
  • In Konsole type "kdesu kwrite" and input root password when prompted.
  • In the latest version of KDE (depending on customization) when you right-click on a file and go to Action you might have Run as root or Edit as root options available.
  • For programs frequently run as root, you could create a new KMenu entry and add "kdesu" in front of the program command.
Personal tools
In other languages