* [q] make modules_install as non-root?
@ 2005-12-02 2:23 Coywolf Qi Hunt
2005-12-02 2:46 ` Peter Williams
2005-12-02 3:11 ` Keith Owens
0 siblings, 2 replies; 6+ messages in thread
From: Coywolf Qi Hunt @ 2005-12-02 2:23 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: torvalds, sam
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.
Thanks
--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [q] make modules_install as non-root?
2005-12-02 2:23 [q] make modules_install as non-root? Coywolf Qi Hunt
@ 2005-12-02 2:46 ` Peter Williams
2005-12-02 2:59 ` Coywolf Qi Hunt
2005-12-02 3:11 ` Keith Owens
1 sibling, 1 reply; 6+ messages in thread
From: Peter Williams @ 2005-12-02 2:46 UTC (permalink / raw)
To: Coywolf Qi Hunt; +Cc: Linux Kernel Mailing List, torvalds, sam
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.
Peter
--
Peter Williams pwil3058@bigpond.net.au
"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [q] make modules_install as non-root?
2005-12-02 2:46 ` Peter Williams
@ 2005-12-02 2:59 ` Coywolf Qi Hunt
2005-12-02 3:04 ` Peter Williams
2005-12-02 14:21 ` Horst von Brand
0 siblings, 2 replies; 6+ messages in thread
From: Coywolf Qi Hunt @ 2005-12-02 2:59 UTC (permalink / raw)
To: Peter Williams; +Cc: Linux Kernel Mailing List, torvalds, sam
2005/12/2, Peter Williams <pwil3058@bigpond.net.au>:
> 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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [q] make modules_install as non-root?
2005-12-02 2:59 ` Coywolf Qi Hunt
@ 2005-12-02 3:04 ` Peter Williams
2005-12-02 14:21 ` Horst von Brand
1 sibling, 0 replies; 6+ messages in thread
From: Peter Williams @ 2005-12-02 3:04 UTC (permalink / raw)
To: Coywolf Qi Hunt; +Cc: Linux Kernel Mailing List, torvalds, sam
Coywolf Qi Hunt wrote:
> 2005/12/2, Peter Williams <pwil3058@bigpond.net.au>:
>
>>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.
Only if you run it with sudo.
> I'm being paranoid. But we
> all are since we avoid to use root.
> --
> Coywolf Qi Hunt
> http://sosdg.org/~coywolf/
--
Peter Williams pwil3058@bigpond.net.au
"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [q] make modules_install as non-root?
2005-12-02 2:23 [q] make modules_install as non-root? Coywolf Qi Hunt
2005-12-02 2:46 ` Peter Williams
@ 2005-12-02 3:11 ` Keith Owens
1 sibling, 0 replies; 6+ messages in thread
From: Keith Owens @ 2005-12-02 3:11 UTC (permalink / raw)
To: Coywolf Qi Hunt; +Cc: Linux Kernel Mailing List, torvalds, sam
On Fri, 2 Dec 2005 10:23:49 +0800,
Coywolf Qi Hunt <coywolf@gmail.com> 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.
make INSTALL_MOD_PATH=<somewhere> modules_install
Then use sudo to move from <somewhere>/lib/modules/<version> to /lib/modules/<version>.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [q] make modules_install as non-root?
2005-12-02 2:59 ` Coywolf Qi Hunt
2005-12-02 3:04 ` Peter Williams
@ 2005-12-02 14:21 ` Horst von Brand
1 sibling, 0 replies; 6+ messages in thread
From: Horst von Brand @ 2005-12-02 14:21 UTC (permalink / raw)
To: Coywolf Qi Hunt; +Cc: Peter Williams, Linux Kernel Mailing List, torvalds, sam
Coywolf Qi Hunt <coywolf@gmail.com> wrote:
> 2005/12/2, Peter Williams <pwil3058@bigpond.net.au>:
[...]
> > 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.
Oh, come on. If somebody can mess with your kernel sources, you are toast
anyway. No need to doctor a Makefile for that at all.
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-12-02 15:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-02 2:23 [q] make modules_install as non-root? Coywolf Qi Hunt
2005-12-02 2:46 ` Peter Williams
2005-12-02 2:59 ` Coywolf Qi Hunt
2005-12-02 3:04 ` Peter Williams
2005-12-02 14:21 ` Horst von Brand
2005-12-02 3:11 ` Keith Owens
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.