Le 23/04/2012 18:45, Jeremy Huntwork a écrit : > This changelog entry on 2012-04-05 isn't quite correct. It reads: > > [matthew] - Use su from chapter 6 Coreutils in the Bash instructions, > instead of the one from chapter 5. Install su as su rather than su-tools > in chapter 5. Fixes #3057. > > coreutils in chapter 6 doesn't install su. So the su you're using for > tests all throughout chapter 6 is the one we explicitly install from > chapter 5 coreutils. su is installed in chapter 6 by the shadow package. > > I can't recall offhand why we chose to use su-tools originally. Probably > just as a nominal reminder that we were using the one in /tools. :) > > If I get a chance, just for curiosity, I'll see if I can look up that > thread. > > JH The reason is that /tools/bin/su cannot work for a normal user, because the setuid bit cannot be set at install in chapter 5 (if installing as user lfs). Hence the choice of naming it su-tools, to prevent it to run (and fail) if the lfs user (who has a PATH beginning with /tools/bin) runs su to become root.
Regards Pierre -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page