su howto

Dominic Ringuet dringuet at
Sat Nov 7 11:20:30 PST 2009

My personal workaround is to run the script as root since root doesn't need
any password to become the new user. Though, it may be dangerous and you
need to know what you are doing.

Otherworldly, you can have something like this:

chown whatever ./file
su - lfs -c
do_some_rootly_tricks argsX
chroot ...
do_some_rootly_tricks argsY
revisedchroot ...

Maybe I should post my experimental bashish lfs autobuild one of these days.

Good luck,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the blfs-support mailing list