sudo vs. gksu

Michael R. Head burner at suppressingfire.org
Sun Apr 6 07:37:07 UTC 2008


On Sat, 2008-04-05 at 15:28 +0200, Mario Vukelic wrote:
> On Sat, 2008-04-05 at 14:11 +0100, Tony Arnold wrote:
> > Can you explain how this problem is avoided with gksu, or gksudo? So far
> > as I can see using one of these causes the application to run with UID
> > of 0, i.e., root. The app has no knowledge of how it was invoked, so any
> > files is creates will be owned by root.
> > 
> > Your explanation applies to running any app, not just graphical ones.
> 
> http://www.psychocats.net/ubuntu/graphicalsudo 

That page says that "sudo nano /etc/apt/sources.list"  is a good idea.
It isn't, and for the same reason graphical apps shouldn't be run
through sudo -- nano will create/edit extra files in your home
directory. In fact, there's a command called "sudoedit" which solves the
problem.

> 
-- 
Michael R. Head <burner at suppressingfire.org>
http://www.cs.binghamton.edu/~mike/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3259 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080406/6cd9cc32/attachment.bin>


More information about the ubuntu-users mailing list