Ask Your Question

What is the difference between sudo and gksudo?

asked 2014-08-13 12:09:30 -0500

iMadhoob gravatar image

updated 2014-09-28 15:34:26 -0500

mether gravatar image

Major program for any newbie in Linux, or particularly Fedora. The command to use the Super User.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-08-13 12:12:09 -0500

iMadhoob gravatar image

updated 2014-08-13 12:14:02 -0500

On the command line, you have to do some operations, for security reasons, as a root user (a.k.a. administrator). Then you do not need to log-out to accomplish such tasks. Just type "sudo" before the command and enter the root password.

This is for the terminal. While in the Graphical User Interface (GUI) applications, we need a tool called "gksudo", but this is currently not available in Fedora releases. Then we can use something called "beesu". So to install it, just type:

# yum install beesu
edit flag offensive delete link more



I don't need to use the root password with sudo, I use my own user password, configured in /etc/sudoers.

skytux gravatar imageskytux ( 2014-08-13 13:53:14 -0500 )edit

gksudo is not needed. I mean is not mandatory. Lot of applications are using an internal policy (with polkit IIRC). For example gparted . gksudo is something optional, so it does not included in many Linux distributions by default.

NickTux gravatar imageNickTux ( 2014-08-20 03:10:17 -0500 )edit

answered 2014-08-19 18:22:46 -0500

davidva gravatar image

sudo execute a command as another user (also root); gksudo is a fronted o gui of su or sudo, but it is now obsolete and replaced for polkit. If you have a program and need permit as root, then a simple configuration, for your program using polkit is the best solution.

Read more about polkit here

Path to make you polkit configuration here:

edit flag offensive delete link more


Yeap, well said.

NickTux gravatar imageNickTux ( 2014-08-20 03:10:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-08-13 12:09:30 -0500

Seen: 1,433 times

Last updated: Aug 19 '14