How do I create a kernel module without the use of sudo? I know the normal way(sudo insmod, sudo rmmod), but we're not allowed to use sudo in school.
|
First off, what module do you want to insert and why? Normally there is no need to manually remove / insert modules. By the way, creating a module is a different story, insmod and rmmod are for loading / unloading a particular module (created by someone else). Once you got your reasons straight, and are sure that there is no other way... then go to your system administrator and ask politely. Explain clearly your reasons, and you have a chance to succeed. No joke: unless you want to go against all rules (and some laws, probably) and hack the machine belonging to your school, you will not acquire privileges granting you such a low level operation. |
|||||||
|
|
Perhaps an easier way forward is to do the kernel development inside a virtual machine; I use virt-manager + kvm-qemu, but there are other options such as VirtualBox. This allow can then allow you to do all the development in a safe virtualized environment and maybe allowed by your system administrator. |
|||
|
|