Angel Tsankov wrote:
> I need to execute a bash script in a chroot'ed environment and as a
> different user. I also need to set some of the variables in the new
> environment based on values of variables in the current environment. How
> can I do this?
Is it NECESSARY the script runs inside the chroot? I.a.w. isn't it
possible the script runs in the current environment and operates on
files in the chroot ? That would deal with the env-var issue as well.
I would personally rather keep bash out of my chroot env.
Sh.
--
A prig is a fellow who is always making you a present of his opinions.
-- George Eliot