 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

27th January 2008, 04:19 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Posts: 17

|
|
|
Permission denied trying to install .run extension file
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.
|

27th January 2008, 04:25 PM
|
 |
Registered User
|
|
Join Date: Jan 2008
Location: Witham, Essex, UK
Age: 25
Posts: 341

|
|
To get around the "permission denied" error, you must run the command as the "root" user:
Code:
[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:
Code:
[user@machine ~]$ nano /etc/X11/xorg.conf
Will become:
Code:
[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.
__________________
Personal Website | Windows to Linux - Tips from Experience
Desktop - Galileo
Dual-Boot: Fedora 13 x64, Windows 7 x64
Intel Core2Quad Q6600 @3.6GHz, 8GB PC2-8500 DDR2, ATI HD4870, 23" @ 1920x1080 + 20" @ 1600x900 (both DVI-D), 2TB ICH10R RAID0 array, Custom Watercooling
Laptop - MacBook 5.1 ('08 Aluminium)
Dual-Boot: Fedora 13 x64, Apple OS X
Intel Core2Duo, 2GB 1066MHz DDR3, nVidia 9400M, 13" LCD @ 1280x800, 160GB SATA
Last edited by CraigWatson; 27th January 2008 at 04:32 PM.
|

27th January 2008, 04:42 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 153

|
|
try to change premissions to that file:
Code:
su -c chmod 777 $path_to_your_file.run
Now, you'll be able to run this file like a normal user
__________________
Robi
Woodworking ideas
"Fedora -- All my bits are free, are yours?" - Jasse Keating
"Because open sorce matters" - Joomla!
"Be free" - KDE
Last edited by jazzfan; 27th January 2008 at 04:57 PM.
|

27th January 2008, 04:47 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 153

|
|
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:
Code:
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.
__________________
Robi
Woodworking ideas
"Fedora -- All my bits are free, are yours?" - Jasse Keating
"Because open sorce matters" - Joomla!
"Be free" - KDE
Last edited by jazzfan; 27th January 2008 at 04:51 PM.
|

27th January 2008, 04:50 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Posts: 17

|
|
|
[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?
|

27th January 2008, 04:52 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 153

|
|
|
Have you made what I said you in my post?
__________________
Robi
Woodworking ideas
"Fedora -- All my bits are free, are yours?" - Jasse Keating
"Because open sorce matters" - Joomla!
"Be free" - KDE
|

27th January 2008, 04:56 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Posts: 17

|
|
|
[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
|

27th January 2008, 04:58 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 153

|
|
sorry, my bad 
look now, I correct it
__________________
Robi
Woodworking ideas
"Fedora -- All my bits are free, are yours?" - Jasse Keating
"Because open sorce matters" - Joomla!
"Be free" - KDE
|

27th January 2008, 05:03 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Posts: 17

|
|
|
Lol this is nuts I been trying to figure this out for awhile.
|

27th January 2008, 05:04 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 153

|
|
|
so, it works now?
__________________
Robi
Woodworking ideas
"Fedora -- All my bits are free, are yours?" - Jasse Keating
"Because open sorce matters" - Joomla!
"Be free" - KDE
|

27th January 2008, 05:05 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Posts: 17

|
|
|
[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
|

27th January 2008, 05:06 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Posts: 17

|
|
|
No not working still get a permission denied
|

27th January 2008, 05:08 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Posts: 17

|
|
[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
[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
Last edited by k13pt0; 27th January 2008 at 05:13 PM.
|

27th January 2008, 05:09 PM
|
 |
Registered User
|
|
Join Date: Jan 2008
Location: Witham, Essex, UK
Age: 25
Posts: 341

|
|
take the dollar out before the filename
__________________
Personal Website | Windows to Linux - Tips from Experience
Desktop - Galileo
Dual-Boot: Fedora 13 x64, Windows 7 x64
Intel Core2Quad Q6600 @3.6GHz, 8GB PC2-8500 DDR2, ATI HD4870, 23" @ 1920x1080 + 20" @ 1600x900 (both DVI-D), 2TB ICH10R RAID0 array, Custom Watercooling
Laptop - MacBook 5.1 ('08 Aluminium)
Dual-Boot: Fedora 13 x64, Apple OS X
Intel Core2Duo, 2GB 1066MHz DDR3, nVidia 9400M, 13" LCD @ 1280x800, 160GB SATA
|

27th January 2008, 05:10 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 153

|
|
without the $ sign:
Code:
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
__________________
Robi
Woodworking ideas
"Fedora -- All my bits are free, are yours?" - Jasse Keating
"Because open sorce matters" - Joomla!
"Be free" - KDE
Last edited by jazzfan; 2nd April 2008 at 05:18 PM.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 11:08 (Friday, 24-05-2013)
|
|
 |
 |
 |
 |
|
|