You are not logged in.

#1 2013-07-13 13:20:23

jnhieber
Member
From: Germany
Registered: 2011-02-01
Posts: 23

[SOLVED] load VirtualBox modules without root pw

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

#2 2013-07-13 13:27:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,550
Website

Re: [SOLVED] load VirtualBox modules without root pw

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

#3 2013-07-13 14:07:49

jnhieber
Member
From: Germany
Registered: 2011-02-01
Posts: 23

Re: [SOLVED] load VirtualBox modules without root pw

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

#4 2013-07-13 16:27:24

zidarsk8
Member
Registered: 2011-12-06
Posts: 97

Re: [SOLVED] load VirtualBox modules without root pw

if this is solved, could you edit your first post and add [SOLVED] at the begining. smile

Offline

Board footer

Powered by FluxBB