LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2007, 12:33 PM   #1
GavB
Member
 
Registered: Nov 2006
Posts: 54

Rep: Reputation: 15
env: ./configure: Permission denied


Hi,

I have come across a problem that I've not known before - when trying to install rrdtool (or anything else for that matter) and run ./configure I get the following error:

env: ./configure: Permission denied

I am logged in as root so there should be no problem. The server has cPanel/WHM installed and uses Fedora.

Any help or suggestions would be great, thanks.
 
Old 02-11-2007, 01:12 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
It could be that the configure script does not have execute permissions, or the partition that you're running it from was mounted with the noexec option. What is the output of these commands?
Code:
ls -l configure
mount
 
Old 02-11-2007, 01:18 PM   #3
GavB
Member
 
Registered: Nov 2006
Posts: 54

Original Poster
Rep: Reputation: 15
Hi thanks for the reply.

Here are the outputs to those commands.

# ls -l configure
/bin/ls: configure: No such file or directory

# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw,usrquota)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0)
/tmp on /var/tmp type none (rw,noexec,nosuid,bind)
 
Old 02-11-2007, 01:27 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Did you run ls -l configure from the directory where it's located? If not, you'll need to use the path to the command ls -l /some/path/to/configure.

Is it located somewhere under /usr/tmpDSK or /tmp? Both of those are mounted noexec so you can't execute programs from under there.
 
Old 02-12-2007, 06:32 AM   #5
GavB
Member
 
Registered: Nov 2006
Posts: 54

Original Poster
Rep: Reputation: 15
Ah thats it then, it is under /tmp which seems strange because I've done this exactly the same before on a different server.

Thanks for your help
 
Old 02-12-2007, 01:22 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Since anyone can write to /tmp, it used to be a common way to get vulnerabilities onto a system, although I've no idea how popular it is now. Mounting it noexec stopped any nasty executables from being run out of there.
 
Old 02-12-2007, 02:43 PM   #7
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Quote:
Originally Posted by gilead
Since anyone can write to /tmp, it used to be a common way to get vulnerabilities onto a system, although I've no idea how popular it is now. Mounting it noexec stopped any nasty executables from being run out of there.
I have no idea either how popular that particular trick is? I am no way a security guru but i've got a noexec on /tmp on my public webserver. Actually, I've got two lines in fstab for /tmp, one with default mount options and other with noexec option. The second option is used almost all the time. I just switch to the first option whenever I need to compile new programs...I use slackbuilds that run from /tmp.

Tux,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
./configure - permission denied Odan Linux - General 14 03-31-2013 10:04 AM
./configure: Permission denied munkie_poo Slackware 31 07-15-2012 02:55 AM
/usr/bin/env: bad interpreter: Permission denied Master Fox Linux - Software 8 02-09-2012 08:25 AM
./configure: Permission denied Qing Feng Linux - Newbie 3 11-16-2004 11:08 AM
./configure --> permission denied mrosati Linux - Software 3 05-13-2004 02:48 PM


All times are GMT -5. The time now is 04:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration