On Fri, 02 Mar 2007 00:45:20 -0000, Shawn <[EMAIL PROTECTED]> wrote: > On March 1, 2007, Brian wrote: >> Please could someone spell out the reason for building software as an >> unprivileged user? This is recommended in the BLFS book and elsewhere >> (though not in LFS), but I can't find a full explanation. >> >> If running 'make' as root could (accidentally? maliciously?) trash my >> system, doesn't the same apply when I have to run 'make install' as >> root? Is there any qualitative difference in security risk? >> >> (The reason I'm asking, in case you're interested, is that I'm >> automating the build using a simple bash script for each package, and >> it would be simpler to run everything as root rather than having to >> add 'sudo' to my system, which is the only other way I can see of >> doing it.) >> > Sorry Brian, I did not read your post closely enough. I think you have > no choice but to run such a script as root. However, maybe you could > build all the packages (as user) then, when they are all built, stop > and do a sudo/su and install everything at once.
Yes, I wondered about something along those lines, but I think it would fall down whenever building a package depends on something else having already been installed. -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page