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 ;)
(alternatively, you could frobble with the pam config so that you don't need to type a password)
Cheers, Brett.