LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 10-11-2003, 08:40 PM   #1
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Nvidia permissions causing login problems


I just ran into a strange problem this morning. I was able to fix it pretty easily (lucky guess) and just wanted to share in case anyone else runs into the same problem. I was unable to login to X, or into a console. KDM would simply restart whenever I tried logging in, and a login console would just reset and ask for my login again. Here's why it broke, and how I fixed it:

With Mandrake 9.0 and the latest Nvidia driver, I discovered some permission problems with /dev/nvidia and /dev/nvidiactl. Specifically, only one user was allowed write permissions to those devices, meaning that the other users could not use direct rendering (dri). Wine wanted to use dri; only one user could play games on Wine. Other users got a nice error:

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.

And according to NVIDIA's README file, this is because PAM (a security/authentication system) is messing with the permissions. Editing the file /etc/security/console.perms to remove the line beginning with "<dri>" will, according to them, fix the problem. Indeed it did, but as the README implies, it is also necessary to remove all other references to <dri> in that file. Nvidia has not confirmed this, but I have! When a user tries to login later on, there's that unknown reference to <dri>, with no line beginning "<dri>" to tell it what it is and what permissions it has. Apparently, since this is a security application, it just kicks you out of login to prevent possible problems.

Fortunately, I had another console already open with root, so I was able to edit the file and fix it. The short version: Edit /etc/security/console.perms and remove (or comment out) all lines with <dri> in them. If you do not use PAM, this may not help you, but if your situation sounds similar to mine above, it may be just what you're looking for. I hope this helps someone else!
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nvidia drivers causing X lockup? Gato Azul Slackware 14 09-19-2007 07:24 AM
nVidia driver causing small screen SchadeBoy SUSE / openSUSE 6 09-16-2005 07:57 PM
NVidia drivers not working, causing freezes? eurleif Debian 16 12-29-2004 11:57 PM
NVidia driver causing crashes? linuxpyro Linux - Software 3 10-13-2004 09:20 AM
nvidia causing tainted kernel aidankitch Linux - Hardware 1 04-26-2004 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 11:27 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