Differences between gksudo/kdesudo, sudo, and su

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
User avatar
Level 24
Level 24
Posts: 22096
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Differences between gksudo/kdesudo, sudo, and su

Post by xenopeek » Sat Sep 16, 2017 2:40 am

vladtepes wrote:Perhaps for the sake of clarity you could more precisely define what you mean by "graphical programs" please?

(Do you mean any programs that have a GUI, and if so why would you be running these from the command line anyway?)
Programs with a graphical user interface, as opposed to programs that only output text on the terminal window.

Sometimes you may need to run a graphical program as root, for example your file manager to be able to move files in system directories. You could start such a program from the terminal with a command like "gksudo program" to run it as root. Unfortunately some people obliviously use, or recommend others to use, "sudo program" to run graphical programs as root. As explained above, using "sudo program" to run a graphical program as root can change ownership of files in your how directory to root, which can then lead to problems if you run the program normally (not as root). See the forums for examples :wink:

This topic summarizes the differences and can be linked to as explanation.

Level 3
Level 3
Posts: 122
Joined: Sat Feb 25, 2012 7:48 am
Location: Brisbane, Australia

Re: Differences between gksudo/kdesudo, sudo, and su

Post by vladtepes » Tue Sep 19, 2017 1:52 am

Thank you. :)
Keep Calm
Impale Your Enemies

Post Reply

Return to “Tutorials”