LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Nvidia Driver Permission denied (https://www.linuxquestions.org/questions/slackware-14/nvidia-driver-permission-denied-806637/)

SavoTU 05-08-2010 07:25 AM

Nvidia Driver Permission denied
 
I have just updated to the latest current and am unable to install the Nvidia driver.

It was working before on the 2.6.33.2 kernel but am getting permission denied now.

Quote:

root@home:~# sh NVIDIA-Linux-x86-173.14.25-pkg1.run
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 173.14.25........................................................................................... .................................................................................................... ..............................................................................................
NVIDIA-Linux-x86-173.14.25-pkg1.run: line 958: ./nvidia-installer: Permission denied

mlangdn 05-08-2010 09:29 AM

Make sure X is not running.

SavoTU 05-08-2010 09:40 AM

Thanks its not and not even getting far enough to check.

H_TeXMeX_H 05-08-2010 10:57 AM

Make the installer file executable.

SavoTU 05-08-2010 12:25 PM

I tried that as well even though calling it with sh has saved me from having to do that in the past.

H_TeXMeX_H 05-08-2010 02:07 PM

That's unusual, it looks like you're running it as root. Are you sure it is not corrupt, try downloading again.

SavoTU 05-08-2010 02:28 PM

You are thinking along the same lines as me.

Things i have tried

reboot selecting huge kernel at lilo
checking i am root
older driver version (have a few)
re-downloaded

All give the same error its not even getting far enough to write an error log so i don't know where to go from here.

SavoTU 05-08-2010 02:56 PM

I don't know if this is relevant but i have just been trying to install mozilla-nss (3.12.4) from slackbuilds.org and getting another Permission denied problem.

If someone could try building the package under current and let me know if my system is screwed again that would be nice. Or if someone has any ideas that would be even better.

Quote:

cd ../coreconf ; make
make[1]: Entering directory `/tmp/SBo/nss-3.12.4-with-nspr-4.8/mozilla/security/coreconf'
cd nsinstall; make export
make[2]: Entering directory `/tmp/SBo/nss-3.12.4-with-nspr-4.8/mozilla/security/coreconf/nsinstall'
make[2]: Nothing to be done for `export'.
make[2]: Leaving directory `/tmp/SBo/nss-3.12.4-with-nspr-4.8/mozilla/security/coreconf/nsinstall'
cd nsinstall; make libs
make[2]: Entering directory `/tmp/SBo/nss-3.12.4-with-nspr-4.8/mozilla/security/coreconf/nsinstall'
true -m 775 Linux2.6_x86_glibc_PTH_OPT.OBJ/nsinstall ../../../dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/bin
make[2]: Leaving directory `/tmp/SBo/nss-3.12.4-with-nspr-4.8/mozilla/security/coreconf/nsinstall'
make[1]: Leaving directory `/tmp/SBo/nss-3.12.4-with-nspr-4.8/mozilla/security/coreconf'
../coreconf/nsinstall/Linux2.6_x86_glibc_PTH_OPT.OBJ/nsinstall -D ../../nsprpub/Linux2.6_x86_glibc_PTH_OPT.OBJ
make: execvp: ../coreconf/nsinstall/Linux2.6_x86_glibc_PTH_OPT.OBJ/nsinstall: Permission denied
make: *** [../../nsprpub/Linux2.6_x86_glibc_PTH_OPT.OBJ/config.status] Error 127

mozilla-nss:

H_TeXMeX_H 05-08-2010 03:10 PM

Make sure the permissions of /tmp are:

Code:

drwxrwxrwt  7 root root 1585152 2010-05-08 22:13 tmp

SavoTU 05-08-2010 03:28 PM

tmp is almost the same as yours has a 16 where you have 7 does that matter?

Quote:

drwxrwxrwt 16 root root 4096 2010-05-08 20:49 tmp/
Just thought i have been able to install other packages, i manage to build and install chrome with sbopkg which is why i now need the nss package

SavoTU 05-09-2010 01:48 PM

I have checked google again today for both the nvidia and nss problems and have come up with nothing.

Does anyone have any ideas where i should be looking or which packages from the last few updates could have caused this? I have tried reinstalling the kernel packages with no change and will no work back through the changelogs 1 by 1.

mlangdn 05-09-2010 02:20 PM

The permissions problem may be resolved by a change in ownership or group. I would make sure that the directories (excluding /home, of course) you are working out of have the correct owner and group. For example, /tmp should be owned by root and the group should be root. I feel that something has messed up your root ownership and possibly group thingy. That happened to me once before, and I had to change an entire directory and all subfolders to get it back. I have no clue as to what the cause was.

SavoTU 05-09-2010 02:26 PM

I have messed up permisons in the past a few time. Once with a poorly edited slackbuild script i changed half my home dir to root.

Thanks i will take a look and see if i can see any thing.

damgar 05-09-2010 02:28 PM

I re-installed the Nvidia driver when I upgraded to current so I don't think it's an inherent issue with -current.

pg99 05-09-2010 02:36 PM

Quote:

Originally Posted by damgar (Post 3962453)
I re-installed the Nvidia driver when I upgraded to current so I don't think it's an inherent issue with -current.

I also have the latest (updated yesterday) -current with 2.6.33.3 kernel and yesterday I re-installed nvidia driver with no problems. driver file was NVIDIA-Linux-x86-195.36.24-pkg1.run for GeForce 9500gt.

Also I just tried that mozilla-nss package from sbo and it built and installed just fine.

Sorry looks like a specific problem with your permissions rather than a general problem with current.

SavoTU 05-09-2010 02:43 PM

It seems you are onto something i have just copied a the file which was causing problems with the nss build to my home dir and it ran but if i try to run it from the tmp dir it fails even thought the permissions are fine

Quote:

-rwxr-xr-x 1 root root 19175 May 9 20:29 nsinstall

I think there is some thing in fstab which will stop things being run so will look into that later thanks again.

pg99 Thanks for that at least i now know its 100% me again!

mRgOBLIN 05-09-2010 04:53 PM

Do you get any output from
Code:

mount |fgrep noexec

SavoTU 05-10-2010 04:42 AM

I have commented out the line in fstab and everything is now working thanks for all the help. I will look into the correct fstab settings after i fix chrome as i dont know how i managed to use ff for so many years it seem terrible now.

etheriau 11-30-2011 03:31 PM

What worked for me was to run the NVidia script with a -x, then cd into the directory created and run the ./nvidia-installer directly.

midlis 12-16-2011 04:45 AM

Remove the noexec flag from tmpfs in /etc/fstab and remount /tmp
Code:

mount /tmp -o remount


All times are GMT -5. The time now is 03:53 AM.