On Thu, Feb 16, 2006 at 05:41:36PM +0000, Laurie Brown wrote:
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
Thanks all, I'll have to look into whether sudo is installed on our systems at work (they're Solaris rather than Linux). I have root access to the system I want to do this on so I can install it if necessary.