Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   sudo vs. gksu (was: Nervous Mouse Syndrome) (http://www.linux-archive.org/ubuntu-user/64590-sudo-vs-gksu-nervous-mouse-syndrome.html)

Markus Schönhaber 04-05-2008 08:40 AM

sudo vs. gksu (was: Nervous Mouse Syndrome)
 
Mario Vukelic wrote:

> No, gksu _is the right tool to use. sudo should never be used to start
> graphical applications, as this could cause problems:
>
> https://help.ubuntu.com/community/RootSudo (in the "Notes" section)

Since the above page only says "don't do it!" but doesn't explain what
might happen otherwise: what problems are to be expected if one starts a
graphical application with sudo?

Regards
mks

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Mario Vukelic 04-05-2008 09:01 AM

sudo vs. gksu (was: Nervous Mouse Syndrome)
 
On Sat, 2008-04-05 at 10:40 +0200, Markus Schönhaber wrote:
> Since the above page only says "don't do it!" but doesn't explain what
> might happen otherwise: what problems are to be expected if one starts
> a graphical application with sudo?

IIRC, it can leave a lock file (or something) with the wrong (root's)
permissions, which would prevent X from starting next time you reboot.


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Nils Kassube 04-05-2008 09:08 AM

sudo vs. gksu (was: Nervous Mouse Syndrome)
 
Markus Schönhaber wrote:
> Mario Vukelic wrote:
> > No, gksu _is the right tool to use. sudo should never be used to
> > start graphical applications, as this could cause problems:
> >
> > https://help.ubuntu.com/community/RootSudo (in the "Notes" section)
>
> Since the above page only says "don't do it!" but doesn't explain what
> might happen otherwise: what problems are to be expected if one starts
> a graphical application with sudo?

With sudo some applications access / modify the user's config files as
root. From then on they are owned by root and the user can no longer
access / modify them. That leads to unusual error messages which only
long time users can trace back to the permission problem. With gksu (or
kdesu if you use kde) this problem is avoided.


Nils

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


All times are GMT. The time now is 03:20 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.