You are not logged in.

#1 2012-07-25 04:49:35

rascas
Member
Registered: 2010-11-02
Posts: 22

Compiling vmware modules without root password

Hi there!

Well i have a machine running arch that i use for a lot of things and it is always on.
But i like to keep it updated, and some times i reboot it especially to update the kernel.

The thing is, that i have a friend of mine who lives with me, that sometimes needs to program in Visual Studio. I have a windows VM and he can use it for that. But after a kernel update, the vmware modules needs to be compiled against the new kernel. And to do that, one person needs the root password.
For me, to use vmware i just run:

sudo vmware-modconfig --console --install-all && sudo sh /etc/rc.d/vmware-USBArbitrator restart && sudo sh /etc/rc.d/vmware restart

and type the root password.

What i would like is a way to do this (command), but without the need of typing the root password, so my friend can use it without my assistance.

I think this can be achieved fairly easily, just dont know how and i dont want to compromise the system security.

Hope someone can help me

Thanks

Offline

#2 2012-07-25 07:31:11

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Compiling vmware modules without root password

You just need to configure sudo correctly for those commands. The sudoers and visudo man pages have all the details, and the default /etc/sudoers file has examples.

Last edited by tomk (2012-07-25 07:32:58)

Offline

Board footer

Powered by FluxBB