Discussion:
[lfs-support] Partial explanation for a test fail in sudo
Hazel Russman
2018-03-05 15:16:12 UTC
Permalink
For the last three BLFS versions, I have noticed a single failure in the check tests for sudo. The test that fails is testsudoers/test3.

I have now discovered that this failure only occurs if the tests are carried out by root in chroot. For an unprivileged user, all tests pass.

Because of the usefulness of sudo in installing packages, it often gets built as an appendix to LFS using the chroot environment. If you do this, you can expect the failure.
--
Hazel
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/
Paul Rogers
2018-03-06 01:04:35 UTC
Permalink
Post by Hazel Russman
Because of the usefulness of sudo in installing packages, it often gets
built as an appendix to LFS using the chroot environment. If you do
this, you can expect the failure.
I have never built sudo and plan never to do so. I'm the only one that uses my computers, so who am I protecting it from? I use root. One must be just as careful when using sudo anyway. Have I screwed up? Once or twice since I built my first LFS in 2004, but that's what backups are for.
--
Paul Rogers
***@fastmail.fm
Rogers' Second Law: "Everything you do communicates."
(I do not personally endorse any additions after this line. TANSTAAFL :-)
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.or
Bruce Dubbs
2018-03-06 02:54:23 UTC
Permalink
Post by Paul Rogers
Post by Hazel Russman
Because of the usefulness of sudo in installing packages, it often gets
built as an appendix to LFS using the chroot environment. If you do
this, you can expect the failure.
I have never built sudo and plan never to do so. I'm the only one that uses my computers, so who am I protecting it from? I use root. One must be just as careful when using sudo anyway. Have I screwed up? Once or twice since I built my first LFS in 2004, but that's what backups are for.
Your distro, your rules.

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wi
Hazel Russman
2018-03-06 10:44:34 UTC
Permalink
On Mon, 5 Mar 2018 20:54:23 -0600
Post by Bruce Dubbs
Post by Paul Rogers
Post by Hazel Russman
Because of the usefulness of sudo in installing packages, it often gets
built as an appendix to LFS using the chroot environment. If you do
this, you can expect the failure.
I have never built sudo and plan never to do so. I'm the only one that uses my computers, so who am I protecting it from? I use root. One must be just as careful when using sudo anyway. Have I screwed up? Once or twice since I built my first LFS in 2004, but that's what backups are for.
Your distro, your rules.
-- Bruce
I can now be more specific. It isn't doing the tests in chroot that causes the error, it's doing them as the root user. If I su from root to myself and do the build and tests like that, they all pass.

Hazel
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thin
Loading...