On Thu, Feb 16, 2006 at 02:33:32PM +0000, Brett Parker wrote:
On Thu, Feb 16, 2006 at 02:30:48PM +0000, Chris Green wrote:
On Thu, Feb 16, 2006 at 01:16:40PM +0000, Tim Green wrote:
On 2/16/06, Chris Green chris@areti.co.uk wrote:
In my role at work at the moment I frequently have to become other users (mostly build management logins rather than specific user logins). So is there any way to preserve the environment in the same way that would happen if I did an 'su newuser' but, on the other hand, allow me to login in without entering the password (as I can with rlogin)? 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.
If su (and sudo) are so close, what don't they do that you need?
If I 'su newuser' it asks for newuser's password, a hassle I'd rather avoid as I may do this dozens of times in a short period of time.
Not if you su to root first ;)
Er, yes, but I'd need to enter the password for root instead. My basic requirement is to be able to change from myself to a small number of other users frequently and without hassle. In addition (as I said) I 'd like to keep my own environment. Basically I simply want to take on the 'privilege mantle' of different users at will without affecting my environment.
I know this *could* be done by group and other settings but for historical and other reasons that's not a practical way to go at the moment.