Re: [q] make modules_install as non-root?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2005/12/2, Peter Williams <[email protected]>:
> Coywolf Qi Hunt wrote:
> > Hello people,
> >
> > I wrote my own installkernel so I can do `make install' as non-root
> > with the help of sudo. But how can we get to do `make modules_install'
> > as non-root with sudo as well?
> >
> > The works of modules_install seem scattered over several places.  Is
> > it a nice idea to factor out an *installmodules* script for `make
> > modules_install' to invoke?
> >
> > ps:
> > Linus recommend us to build as non-root and install as root.
> > I ask if we should install as non-root too.
>
> Personally, I just use "sudo make install" or "sudo make
> modules_install" to do installations as an ordinary user.  No need for
> special scripts or modifications to the build procedure.

That's rather insecure. You have to add /usr/bin/make in your sudoers,
then an malicious Makefile could do harm. I'm being paranoid. But we
all are since we avoid to use root.
--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux