appears, become root and run the following commands:
chmod 0666 /dev/nvidia*
chown root /dev/nvidia*
To prevent the problem from reappearing, it may help to reconfigure the security module of the PAM system.
In most cases this security system works, but it can get confused. 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). 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.