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.
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.
To get around the "permission denied" error, you must run the command as the "root" user:
To return out of "root" user mode, just type exit .Code:[user@machine ~]$ su - Password: Your-root-password [root@machine ~]# your-command-here
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:
Will become:Code:[user@machine ~]$ nano /etc/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.Code:[user@machine ~]$ sudo nano /etx/X11/xorg.conf
Last edited by CraigWatson; 27th January 2008 at 05:32 PM.
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
try to change premissions to that file:
Now, you'll be able to run this file like a normal userCode:su -c chmod 777 $path_to_your_file.run
Last edited by jazzfan; 27th January 2008 at 05:57 PM.
Robi
Woodworking ideas
"Fedora -- All my bits are free, are yours?" - Jasse Keating
"Because open sorce matters" - Joomla!
"Be free" - KDE
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:
which will only give permissions to read and execute file, but not permit writing anything.Code:su -c chmod a+rx $path_to_your_file.run
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.
Last edited by jazzfan; 27th January 2008 at 05:51 PM.
Robi
Woodworking ideas
"Fedora -- All my bits are free, are yours?" - Jasse Keating
"Because open sorce matters" - Joomla!
"Be free" - KDE
[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?
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
[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
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
Lol this is nuts I been trying to figure this out for awhile.
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
[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
No not working still get a permission denied
[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 06:13 PM.
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
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
Last edited by jazzfan; 2nd April 2008 at 05:18 PM.
Robi
Woodworking ideas
"Fedora -- All my bits are free, are yours?" - Jasse Keating
"Because open sorce matters" - Joomla!
"Be free" - KDE