Fwd: Another reason to prefer a real root over sudo

Pierre Frenkiel pierre.frenkiel at laposte.net
Thu Feb 5 08:35:56 UTC 2009


On Mon, 2 Feb 2009, Jeff Henson wrote:

> You should be able to use 'su -p username'. I'm at work and can't test
> it right now though.

    thanks, it works ... but it just preserves the environment.
    and curiously, "su - -p user" executes your .profile,
    and not the user's one. A bug ?
    So, if you need to execute the login scripts "sux - user" is better.
    (it even executes them twice!)

-- 
Pierre Frenkiel




More information about the ubuntu-users mailing list