make modules_install as non-root?
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/
Quoted 6 lines · Coywolf Qi Hunt
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 domakemodules_install' as non-root with sudo as well?
Quoted 7 lines
The works of
modules_installseem scattered over several places. Is it a nice idea to factor out an *installmodules* script for `makemodules_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
Signature · 4 lines
Peter Williams [email protected] "Learning, n. The kind of ignorance distinguishing the studious." -- Ambrose Bierce
2005/12/2, Peter Williams <[email protected]>:
Quoted 11 lines
Quoted 10 lines · Coywolf Qi Hunt
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 domakemodules_install' as non-root with sudo as well?The works of
modules_installseem scattered over several places. Is it a nice idea to factor out an *installmodules* script for `makemodules_install' to invoke?
Quoted 7 lines
Quoted 3 lines
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/
Quoted 18 lines · Coywolf Qi Hunt
2005/12/2, Peter Williams <[email protected]>:
Quoted 16 lines
Quoted 13 lines · Coywolf Qi Hunt
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 domakemodules_install' as non-root with sudo as well?The works of
modules_installseem scattered over several places. Is it a nice idea to factor out an *installmodules* script for `makemodules_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.
Quoted 7 lines
Quoted 3 lines
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/makein your sudoers, then an maliciousMakefilecould do harm.
Only if you run it with sudo.
Quoted 5 lines
I'm being paranoid. But we
all are since we avoid to use root.
--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/
Signature · 4 lines
Peter Williams [email protected] "Learning, n. The kind of ignorance distinguishing the studious." -- Ambrose Bierce
Quoted 1 line · Coywolf Qi Hunt
2005/12/2, Peter Williams <[email protected]>:
[...]
Quoted 7 lines
Quoted 3 lines
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/makein your sudoers, then an maliciousMakefilecould 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.
Signature · 4 lines
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
Quoted 6 lines · Coywolf Qi Hunt
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 domakemodules_install' as non-root with sudo as well?
Quoted 7 lines
The works of
modules_installseem scattered over several places. Is it a nice idea to factor out an *installmodules* script for `makemodules_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>.