On Thu, Jul 10, 2003 at 12:30:18PM +1200, C Falconer wrote:
> On Thu, 2003-07-10 at 12:00, Matthew Gregan wrote:
> > 3.  The above line assumes the kernel and modules are built as root.
> >     This is needless.  You should build the kernel and modules under a
> >     non-privileged user and use root _only_ to install the kernel and
> >     modules.

> Whats wrong with that?

It's really, really simple:

Do not run anything as root that does not need root privileges.

It's a simple rule to follow most of the time, so there is no reason not
to adhere to it.

Off the top of my head, here's one example reason why you shouldn't
compile the kernel as root:  if the compile fills your filesystem, it
will fill the whole filesystem.  If you ran the compile as an
unprivileged user, the compile process would only be able to fill the
filesystem up to the point where any additional space is reserved for
root (which is 10% by default, and specified by the -m option to mkfs).

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                [EMAIL PROTECTED]

Reply via email to