Need Help! Other linux user accounts need sudo authority to access to GPU hardware

Hi everyone

I have a Ubuntu server for running cuda programs. The nvidia driver and cuda toolkit was installed on that server via using sudo xxxxx by the original account “aaa” which was built during the ubuntu installation . Later, I built another account “ccc” for other people who wanted to run cuda program on the server. However, user “ccc” always needs to run the program through the sudo command to have the authority to access to the gpu hardware. It is not safe at all. While, the user “aaa” does not need to.

I tried to add the admin, video, aaa and root group into the user “ccc” account. But it does not work!!!

So, if I have multiple users account in a linux server, how can I make them be able to access to the gpu hardware directly without sudo authority?

sudo chmod 0666 /dev/nvidia* is the easiest way to do it

even the nvidia device still belongs to root?

could you tell me some other ways?

Thanks

The OpenSuSE way:

[codebox]0 crw-rw---- 1 root video 195, 0 2010-07-17 08:57 /dev/nvidia0

0 crw-rw---- 1 root video 195, 1 2010-07-17 08:57 /dev/nvidia1

[/codebox]

Then add the user to group video. Using tmurray’s way you have to do that every time you reboot - I could not get this to work from an init script. The OpenSuSE way will be quite permanent.