Fwd: Another reason to prefer a real root over sudo

Pierre Frenkiel pierre.frenkiel at laposte.net
Fri Feb 6 13:18:45 UTC 2009


On Thu, 5 Feb 2009, Rashkae wrote:

> No, not a bug, but exactly what you asked for with that combination of
> options.

   no. cf "man su"
   ==============================================================
    -, -l, --login
            Provide an environment similar to what the user would expect had the user logged in
            directly.

     -m, -p, --preserve-environment
            Preserve the current environment.
   ==============================================================


   so, the 2 options seem contradictory, but actually, -p doesn't preserve variables
   that are set by any login script (.profile, ...)

-- 
Pierre Frenkiel




More information about the ubuntu-users mailing list