jhalfs: why su - (user)

Dan Nicholson dbn.lists at gmail.com
Fri Aug 4 16:10:58 PDT 2006

On 8/4/06, George Boudreau <georgeb at linuxfromscratch.org> wrote:
>    ..Dan's work made me think of this..
>    If we can pick and our user/group and all looks well is there a
> reason we should keep ... su - $(LUSER)... at all. You will still need
> root priv or sudo to build the final stages so privileges are not an
> issue. As usual it is easier to state than code and gremlins pop up in
> the least likely places.

The reason why switching to the unprivileged user is so important is
so you don't inadvertantly mangle the host during the temp stage.
Obviously, a scripted build guards against that, but if there are bugs
in the book or script... Is that what you were asking?


More information about the alfs-discuss mailing list