You are not logged in.
Hi,
i want to write a wrapper script for virtualbox to load the modules when virtualbox starts and unload them when it exits.
is there a way to load those specific modules without root password? i could teach sudo to allow modprobe without password but that would be a security problem.
Last edited by jnhieber (2013-07-13 16:42:19)
Offline
You could have a script that will just either load or unload the specific module, and have that script in sudoers to not need a password.
But why do you want to do this?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I'm experiencing some problems with suspend to ram on my x230t. since kernel 3.10 i often get a kernel panic when i suspend.
i use an up to date system (no testing) with linux-ck-ivybridge and intel graphics. i wrote systemd scripts to unload third party modules before suspend (like vboxdrv).
that actually doesn't solve the problem but i thought it might be a good idea if only loading such modules when they are really needed, i don't use virtualbox often.
thanks for the reply, i think this can work. the script can only be changed by root so this would be no security problem.
so this is solved, i'm thinking about a new topic regarding my kernel panics, do you know where to get the kernel logs of the panic?
when i go to suspend the sleep led blinks fast and the screen is blank, so i have to rely on log files.
Offline
if this is solved, could you edit your first post and add [SOLVED] at the begining. ![]()
Offline