SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2010-07-03 22:21:16

jollysnowman
#! CrunchBanger
From: Austin, TX
Registered: 2009-11-17
Posts: 223

Please clarify sudo vs. gksu/gksudo

sudo gedit file.txt

Offline

Help fund CrunchBang, donate to the project!

#2 2010-07-03 22:27:33

GuruX
#! Die Hard
Registered: 2009-01-18
Posts: 527

Re: Please clarify sudo vs. gksu/gksudo

I always use sudo or gksudo.
sudo for CLI apps and gksudo for the "run program" window (alt+F2 in default CB). gksudo is just the graphic version of sudo.

Offline

#3 2010-07-03 22:31:08

jollysnowman
#! CrunchBanger
From: Austin, TX
Registered: 2009-11-17
Posts: 223

Re: Please clarify sudo vs. gksu/gksudo

Last edited by jollysnowman (2010-07-03 22:32:41)

Offline

#4 2010-07-03 22:31:41

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,419

Re: Please clarify sudo vs. gksu/gksudo

Like GuruX said, sudo for CLI apps and gksu(do) for graphical apps.

Offline

#5 2010-07-03 22:49:37

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Please clarify sudo vs. gksu/gksudo

The difference is gksu/gksudo (one is an alias for the other) pops up a dialog for the password, so you can use it outside of a terminal emulator; if you try running `sudo someprogram` from gmrun, xfce4-verve-plugin, or another application launcher, you won't get a dialog box, so nothing will happen unless you've already entered a sudouser password within the timeout period.

Aside from how they capture the sudouser password (CLI vs. dialog box) sudo and gksu/gksudo work exactly the same.

Offline

#6 2010-07-04 01:50:42

omns
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,131

Re: Please clarify sudo vs. gksu/gksudo

Offline

#7 2010-07-04 02:05:03

winotree
#! Die Hard
Registered: 2010-03-26
Posts: 548

Re: Please clarify sudo vs. gksu/gksudo

Offline

#8 2010-07-04 02:34:05

Val_B
#! CrunchBanger
From: SE United States
Registered: 2010-01-25
Posts: 238

Re: Please clarify sudo vs. gksu/gksudo

well I don't use gksu but the kdesudo sourceforge page has always claimed it is a gui frontend for sudo, therefore no different in operation from the cli version, I doubt kdesudo works any differently than gksu.

Offline

#9 2010-07-04 03:00:34

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,419

Re: Please clarify sudo vs. gksu/gksudo

jollysnowman's explanation is correct. Using "sudo firefox" Firefox uses the profile in my home and using "gksudo firefox" will launch firefox as root. Both methods you will see Firefox with root's GTK theme however.

Offline

#10 2010-07-04 04:40:56

AnInkedSoul
#! CrunchBanger
Registered: 2010-06-30
Posts: 232

Re: Please clarify sudo vs. gksu/gksudo

Last edited by AnInkedSoul (2010-07-04 04:41:30)

Offline

#11 2010-07-04 07:25:55

omns
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,131

Re: Please clarify sudo vs. gksu/gksudo

Offline

#12 2010-07-04 07:37:40

jollysnowman
#! CrunchBanger
From: Austin, TX
Registered: 2009-11-17
Posts: 223

Re: Please clarify sudo vs. gksu/gksudo

Offline

#13 2010-07-04 07:39:12

AnInkedSoul
#! CrunchBanger
Registered: 2010-06-30
Posts: 232

Re: Please clarify sudo vs. gksu/gksudo

still waiting on you to test it wink

Offline

#14 2010-07-04 08:50:17

AnInkedSoul
#! CrunchBanger
Registered: 2010-06-30
Posts: 232

Re: Please clarify sudo vs. gksu/gksudo

Offline

#15 2010-07-04 13:29:36

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,419

Re: Please clarify sudo vs. gksu/gksudo

Actually I tested it on Arch. I will test on Statler later.

Offline

#16 2010-07-04 13:56:54

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,419

Re: Please clarify sudo vs. gksu/gksudo

Offline

#17 2010-07-04 15:35:48

AnInkedSoul
#! CrunchBanger
Registered: 2010-06-30
Posts: 232

Re: Please clarify sudo vs. gksu/gksudo

Offline

#18 2010-07-05 10:09:25

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Please clarify sudo vs. gksu/gksudo


I'm so meta, even this acronym

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo