View Full Version : Permission denied trying to install .run extension file
k13pt0
27th January 2008, 04:19 PM
Can anyone gimme guide lines to running a file with a .run extension. Im new to linux cant seem to find much on the subject doing searches. I keep getting a permmision denied in the terminal.
CraigWatson
27th January 2008, 04:25 PM
To get around the "permission denied" error, you must run the command as the "root" user:
[user@machine ~]$ su -
Password: Your-root-password
[root@machine ~]# your-command-here
To return out of "root" user mode, just type exit :).
Edit
The above command will elevate you to root-user status until you exit. To run a specific command with elevated permissions, just tag "sudo" to the start of your command, so for example:
[user@machine ~]$ nano /etc/X11/xorg.conf
Will become:
[user@machine ~]$ sudo nano /etx/X11/xorg.conf
For some commands like fdisk or lspci you need to have the root user's environment as well as the privileges, so use the "su -" command.
jazzfan
27th January 2008, 04:42 PM
try to change premissions to that file:
su -c chmod 777 $path_to_your_file.run
Now, you'll be able to run this file like a normal user
jazzfan
27th January 2008, 04:47 PM
but that's not always smart: this above (both my and Watson's solutions) will give the x.run file full permissions to write over your files. So it would be smarter for you to first do:
su -c chmod a+rx $path_to_your_file.run
which will only give permissions to read and execute file, but not permit writing anything.
If you now run the .run file from terminal , you will see what and where is program trying to copy files.
After you're sure it won't hurt you, do the command from my first post.
k13pt0
27th January 2008, 04:50 PM
[K13pt0@ip68-2-59- ~]$ su -
Password:
[root@ip68-2-59- ~]# /home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run
-bash: /home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run: Permission denied
[root@ip68-2-59- ~]#
Am i running doing this right?
jazzfan
27th January 2008, 04:52 PM
Have you made what I said you in my post?
k13pt0
27th January 2008, 04:56 PM
[K13pt0@ip68-2-59-24 ~]$ sudo -c chmod 777 $/home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run
sudo: illegal option `-c'
usage: sudo -h | -K | -k | -L | -l | -V | -v
usage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value]
{-i | -s | <command>}
usage: sudo -e [-S] [-p prompt] [-u username|#uid] file ...
[K13pt0@ip68-2-59-24 ~]$ /home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run
bash: /home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run: Permission denied
[K13pt0@ip68-2-59-24 ~]$
I gotta be typing something wrong
jazzfan
27th January 2008, 04:58 PM
sorry, my bad :(
look now, I correct it
k13pt0
27th January 2008, 05:03 PM
Lol this is nuts I been trying to figure this out for awhile.
jazzfan
27th January 2008, 05:04 PM
so, it works now?
k13pt0
27th January 2008, 05:05 PM
[K13pt0@ip68-2-59-24 ~]$ su - c chmod 777 $/home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run
su: user c does not exist
[K13pt0@ip68-2-59-24 ~]$ su -c chmod 777 $/home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run
su: user 777 does not exist
k13pt0
27th January 2008, 05:06 PM
No not working still get a permission denied
k13pt0
27th January 2008, 05:08 PM
[K13pt0@ip68-2-59-24 ~]$ su -
Password:
[root@ip68-2-59-24 ~]# c chmod 777 $/home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run
-bash: c: command not found
[root@ip68-2-59-24 ~]# chmod 777 $/home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run
chmod: cannot access `$/home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run': No such file or directory
Your code worked Minus the "$" in fromt of my directory Thnks for your help :D
[root@ip68-2-59-24 ~]# chmod 777 /home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run
[root@ip68-2-59-24 ~]# /home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run
STUBBED: ftell is 32 bit!
at /home/timo/Build/mojosetup/fileio.c:246
CraigWatson
27th January 2008, 05:09 PM
take the dollar out before the filename :)
jazzfan
27th January 2008, 05:10 PM
without the $ sign:
su -c "chmod 777 /home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run"
/home/K13pt0/ETQW-demo-client-1.1-full.r5.x86.run
JohnVV
28th January 2008, 06:35 AM
oh that is what it is
Enemy Territory: Quake Wars
if you have not got it to run yet give this a try
in bash run
cd /home/K13pt0
then type in
su ( hit the enter button )
type in your password ( hit the enter button )
then run
chmod +x *.run
then run
exit
then run
sh *.run
if sh *.run as a normal user dose not work then try it as root
su and password then " sh *.run '
this is how i install the nivida driver on my box so it should install the game
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.