LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-21-2003, 01:06 PM   #1
frog-newbie
LQ Newbie
 
Registered: Sep 2003
Location: dallas tx
Distribution: redhat 9
Posts: 23

Rep: Reputation: 15
Question NVIDIA Permission Prblems In Application


every time i run America's army, I get this Crazy error, I am a newbie, any advice on how to fix the permission?

[frog@localhost armyops]$ ./armyops
NV: could not open control device /dev/nvidiactl (Permission denied)
Error: Could not open /dev/nvidiactl because the permissions
are too resticitive. Please see the FREQUENTLY ASKED QUESTIONS
section of /usr/share/doc/NVIDIA_GLX-1.0/README for steps
to correct.
[frog@localhost armyops]$
 
Old 09-21-2003, 03:54 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
and did you read what it told you to read?
i know i easily found it in that file ::
Quote:
Q: OpenGL applications exit with the following error message:

Error: Could not open /dev/nvidiactl because the permissions
are too restrictive. Please see the FREQUENTLY ASKED QUESTIONS
section of /usr/share/doc/NVIDIA_GLX-1.0/README for steps
to correct.

A: It is likely that a security module for the PAM system may be
changing the permissions on the NVIDIA device files. In most cases
this security system works, but it can get confused. To correct this
problem it is recommended that you disable this security feature.
Different Linux distributions have different files to control this;
please consult with your distributor for the correct method of
disabling this security feature. As an example, if your system has
the file
/etc/security/console.perms
then you should edit the file and remove the line that starts with
"<dri>" (we have also received reports that additional references to
<dri> in console.perms must be removed, but this has not been verified
by NVIDIA). If instead your system has the file
/etc/logindevperms
then you should edit the file and remove the line that lists
/dev/nvidiactl. The above steps will prevent the PAM security system
from modifying the permissions on the NVIDIA device files. Next,
you will need to reset the permissions on the device files back
to their original permissions and owner. You can do that with the
following commands:
chmod 0666 /dev/nvidia* chown root /dev/nvidia*
 
Old 12-02-2004, 01:47 PM   #3
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Rep: Reputation: 34
Just a reminder...

The file permissions for /dev/nvidiactl and /dev/nvidia0 must be set every time you re-install the kernel. ( I'm posting that because I was confused as to why it wasn't working for me after a kernel/nVidia driver update).
 
Old 12-02-2004, 02:19 PM   #4
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
You can change the permissions on the /dev/nvidiactl and /dev/nvidia*, but rather than doing this, go into /dev and type:
ls -l | grep nvidia
Look at the file's group, if it's "root", than just change the permissions, but if it's something else like say "video" (what mine is), then instead of changing the permission, just open up /etc/group and find the line that starts with the group name (in my case, video) and at the very end (After the last ":" on that line) add your username.. eg. video:x:12:tom
You'll now be part of the video group, and can use it without allowing just anybody access to your video card. This may not seem important, but if you use tools like nvclock, a malicious hacker could very easily kill your card as a regular user, which makes hackers not only a headache, but an actual expense. You should also do this if you use Udev which auto adds devices as they are detected, as opposed to always being there.

Last edited by 95se; 12-02-2004 at 02:20 PM.
 
Old 01-30-2005, 08:28 AM   #5
toshh
LQ Newbie
 
Registered: Jan 2005
Location: SJC, SP - Brasil
Distribution: Mandrake 10.1
Posts: 6

Rep: Reputation: 0
Cool

oh thank you so much for the
chmod 0666 /dev/nvidia* chown root /dev/nvidia*
i dont know what that is but it was the last thing i had to do to get cedega working
now ill play some Cube!
 
Old 01-31-2005, 11:58 AM   #6
toshh
LQ Newbie
 
Registered: Jan 2005
Location: SJC, SP - Brasil
Distribution: Mandrake 10.1
Posts: 6

Rep: Reputation: 0
huh hi that thing from above worked but only for one boot
next time i boot mandraka i would still get the same permissions error
wtf?
 
Old 02-01-2005, 01:29 PM   #7
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
Hey, does your mandrake use Udev? Check if the directory /etc/udev exists. If your mandrake uses Udev you can set up the permissions the device is given. In /etc/udev open up udev.conf, inside this file you should have a line like this
udev_permissions="/etc/udev/permissions.d/"
The path may be different. It should be a directory or maybe a file. If it's a directory, go to that directory, if a file, open up the file. If it was a directory create a file with a .permissions extension... ex. nvidia.permissions Or just edit a file already in there. Now add this line (either in the new file, or an existing one in the permissions directory):

nvidia*:root:root:0666

Or if a file already has an entry with nvidia* you can just edit to look like that. Everytime it boots up, it should have proper permissions.

Oh ya.... man udev

Last edited by 95se; 02-01-2005 at 01:31 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Two nics, one with prblems... One nic is accepting UDP only... bagreda Linux - Networking 1 03-06-2005 02:38 AM
Os Prblems!!! Steven Brown Linux - General 3 12-15-2004 03:47 PM
Nvidia problem on Slackware. Permission denied to use 3d(?) RHLinuxGUY Slackware 5 11-30-2004 12:24 PM
Permission Denied while installing new jar library for my new application lavinal Linux - Software 1 09-02-2004 04:47 AM
Lot of Hardware prblems MrMuffles Linux - Hardware 4 01-30-2003 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration