Re: sudo vs. gksu



Nils Kassube wrote:
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.

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.

Regards,
Tony.


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



Relevant Pages

  • Re: sudo vs. gksu
    ... start graphical applications, ... With sudo some applications access / modify the user's config files as ... From then on they are owned by root and the user can no longer ... Can you explain how this problem is avoided with gksu, ...
    (Ubuntu)
  • Re: sudo vs. gksu (was: Re: Nervous Mouse Syndrome)
    ... start graphical applications, ... With sudo some applications access / modify the user's config files as ... From then on they are owned by root and the user can no longer ... long time users can trace back to the permission problem. ...
    (Ubuntu)
  • Re: Dependency tracking application
    ... this with a regular dimension or parent-child ... required to actively Use the app. ... An app cannot exist sans a server. ... Baring that, I think the server would be at the root, and the apps ...
    (microsoft.public.sqlserver.olap)
  • Re: Converting ASP site to .NET
    ... you limit how and where your app ... > Previously I had my server set up so that the root folder of my web was ... > So I changed IIS to use "wwwroot" as my home directory and using VS ... > Should I just replace my absolute paths with relative paths? ...
    (microsoft.public.dotnet.general)
  • Re: su, sudo, ssh, permissions question
    ... > The app does hw and system file access, so needs root priviledge. ... > Remote login is provided using ssh for admin. ... > allows me to autologin as root (if root has no pwd), ...
    (alt.os.linux.redhat)