sudo and HOME
stevenvollom at sbcglobal.net
Tue Jun 9 12:56:39 UTC 2009
On Tuesday 09 June 2009 09:59:22 am Willy K. Hamra wrote:
> hi all, i was wondering, specially after all the discussions about sudo
> and kdesudo in the past few weeks. now sudo preserves the HOME vriable
> when it runs the application, kdesudo doesn't, it changed it to the
> correct /root directory. changing sudo's behaviour is not difficult at
> all. anyone with very little knowledge in the sudoers syntax can change
> it. we basically want to add the line "Defaults always_set_home" in
> the file, and voila, the HOME variable becomes that of the target user
> whenever we sudo an application. the env_keep can be used to keep an
> variable we want to preserve, and of course, use env_reset to wipe out
> the rest.
> but the question here, is there ANY need to preserve HOME? kdesudo seems
> to wrok just fine. any reason as to why always_set_home is not a default
> in ubuntu systems?
Does this keep the permissions correct? The only reason I can see to prefer
the use of sudo is the number of key strokes.
More information about the kubuntu-users