...continua......
« Hi Willy,
Yes, sudu is very different on different distros! Completely different
in fact. The last time I counted (about a year ago), there were 5
different versions over the dozen or so distros we support. These
differences lie in the absolute base code. That is, they are actually
completely different programs not different versions of the same base
code.
So much for the bad news.
The best answer we have found is to use gksu. This separates the
privilege escalation from the actual execution stream, but note that the
user has to enter the privilege escalation password every time it is
invoked (which some consider to be "not a bad thing"). Since deciding
on that route, it has worked "almost" seamlessly on all our client's
distros with little support effort. I say "almost" because there is
something about older versions of ubunti that corrupt the use of su
(which is what gksu uses to initiate the execution thread).
gksu appears to us to be fairly desktop agnostic (within reason). gsudo
and its' (dare I say) inbred cousins don't seem to be so.
Since adopting that model, i.e. separating the privilege escalation from
the execution stream, we have had very few "help me" support calls for
the dozens of gambas Shell and Execute calls our stuff makes.
Also and without wanting to get into the age old su vs. sudo battle! I
just want to say one thing. At least su based utilities ....
(Oh bugger, that's just going to start it all again.)
Suffice to say, guess which side I'm on.
and finally, "gksu" - it works for me!
hth
Bruce »