Randy McMurchy wrote:
How are you guys becoming root? Simply doing 'su' inherits the
environment.
I tested it two ways. I didn't trust myself to type it all in without typos at
the command prompt so I put all the commands in two scripts, one run as a user,
one run as root. The exports were in the users script so they were not exported
into the environment and were not set when the root script was run.
Then I rebooted into my host LFS system and chrooted into the LFS build. Then I used su to become a user and ran the users commands (copy and paste) but when I tried to su and become root I got
andy:/$ su
su: must be run from a terminal
andy:/$
So to become root again I had to use `exit' and once again the exports were
lost from the environment. There's lots of ways idiots like me can screw it
up...
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page