Re: Bash testsuite should not be run as root

2005-12-22 Thread Ken Moffat
On Fri, 23 Dec 2005, Greg Schafer wrote: Ken Moffat wrote: 'su' from /tools. Neither CLFS nor LFS suppress this in the first build of coreutils. WARNING: insufficient access; not installing su NOTE: to install su, run 'make install-root' as root Sorry, you are right and I was wrong - so

Re: Bash testsuite should not be run as root

2005-12-22 Thread Greg Schafer
Ken Moffat wrote: > 'su' from /tools. Neither CLFS nor LFS suppress this in the first > build of coreutils. WARNING: insufficient access; not installing su NOTE: to install su, run 'make install-root' as root The temporary tools are (meant to be) built as non-root. Regards Greg -- http:/

Re: Bash testsuite should not be run as root

2005-12-22 Thread Ken Moffat
On Fri, 23 Dec 2005, Greg Schafer wrote: On Wed, 21 Dec 2005 11:34:22 -0800, Jim Gifford wrote: I posted a solution in lfs-support. Here is it In my testing with Cross-LFS, I have found that this works echo "dummy1:x:1000:" >> /etc/group echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd cd

Re: Bash testsuite should not be run as root

2005-12-22 Thread Greg Schafer
On Wed, 21 Dec 2005 11:34:22 -0800, Jim Gifford wrote: > I posted a solution in lfs-support. Here is it > > In my testing with Cross-LFS, I have found that this works > > echo "dummy1:x:1000:" >> /etc/group > echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd > cd tests > su dummy -c "sh run-al

Re: Bash testsuite should not be run as root

2005-12-21 Thread Jim Gifford
I posted a solution in lfs-support. Here is it In my testing with Cross-LFS, I have found that this works echo "dummy1:x:1000:" >> /etc/group echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd cd tests su dummy -c "sh run-all" sed -i '/dummy/d' /etc/passwd /etc/group rm /tmp/* -- -- [EMAIL

Re: Bash testsuite should not be run as root

2005-12-21 Thread Bryan Kadzban
Jeremy Herbison wrote: > I don't know how running as root skews the results, though. I know > the tests all pass as-is. It's possible that they do something that's maybe-unsafe when they get run as root. I don't know for sure, though; I haven't looked into it at all. Just saying that this is one

RE: Bash testsuite should not be run as root

2005-12-21 Thread Jeremy Herbison
> Archaic Wrote: > > Is it a warning or does it not run the tests? Or do the tests run and > fail? > They run anyhow... execscript for example simply has this in it: if [ $UID -eq 0 ]; then echo "execscript: the test suite should not be run as root" >&2 fi I don't know how running as ro

Re: Bash testsuite should not be run as root

2005-12-20 Thread Archaic
On Tue, Dec 20, 2005 at 07:26:17PM -0700, Jeremy Herbison wrote: > > execscript: the test suite should not be run as root > exec7.sub: the test suite should not be run as root > test-tests: the test suite should not be run as root Is it a warning or does it not run the tests? Or do the tests run

Bash testsuite should not be run as root

2005-12-20 Thread Jeremy Herbison
The Bash 3.1 testsuite (not sure about previous versions) gives the following warnings: execscript: the test suite should not be run as root exec7.sub: the test suite should not be run as root test-tests: the test suite should not be run as root A non-root user should be set up temporarily, much