LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-02-2008, 02:53 PM   #1
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Permission denied


Can I have your thoughts about this;

Code:
alan@easys:~$ su -
Password:
root@easys:~# cd /home/alan/gcc-4.2.3-i486-1/install
root@easys:/home/alan/gcc-4.2.3-i486-1/install# ./doinst.sh
-su: ./doinst.sh: Permission denied
root@easys:/home/alan/gcc-4.2.3-i486-1/install#
Thank you.
 
Old 05-02-2008, 02:57 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Make sure the script you are trying to execute is executable (as in 'chmod +x scriptname')

Sasha
 
Old 05-02-2008, 04:23 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Or try `sh ./doinst.sh` if you don't want to make it executable (though I don't know why you wouldn't).
 
Old 05-02-2008, 09:29 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Why are you doing it that way anyhow?
It's wrong, for at least two reasons:
1. You should use installpkg(8) to install packages.
2. If you elect to extract the package contents manually, you would need to do it something like this:
Code:
tar xzf package.tgz -C /
cd /
sh install/doinst.sh
Note that doing it the second way is dumb, but it's your system.
 
Old 05-02-2008, 10:40 PM   #5
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
If after taking the advice from rworkman you still want to execute that script there is a possibility that your home directory is mounted with the "noexec" option.

Code:
mount
will show the current mount points and their options.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM
Permission Denied Old Timer Programming 4 12-15-2005 03:23 PM
how is it that su - can be denied permission??? Lleb_KCir Linux - General 10 03-24-2004 10:47 PM
permission denied . . . zthomasz Linux - Newbie 1 06-21-2003 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration