sudo and HOME

Willy K. Hamra w.hamra1987 at
Tue Jun 9 13:59:22 UTC 2009

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?
Willy K. Hamra
Manager of Hamra Information Systems
Co. Manager of Zeina Computer & Billy Net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the kubuntu-users mailing list