Alan Pope wrote:
On 16/02/06, Chris Green chris@areti.co.uk wrote:
I can thing of various nasty scripting ways of doing it but su is so close to what I want it seems a pity to re-invent an almost invented wheel.
can't you just do
$ sudo su - otheruser
Certainly can. To do that without passwords, one needs to a) be in the wheel group, and b) have the following line in the /etc/sudoers file:
%wheel ALL=(ALL) NOPASSWD: ALL
Cheers, Laurie.