LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-17-2014, 02:54 PM   #1
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
"Permission denied when trying to build mono on slack 14.1


First of all, I have the pre-req's installed.

Quote:
ls -l /var/log/packages | grep libgdiplus
-rw-r--r-- 1 root root 1036 Dec 17 14:33 libgdiplus-2.10.9-i486-2_SBo
The error I get:

Code:
mono-3.2.3/aclocal.m4
patching file data/config.in
./mono.SlackBuild: line 56: ./configure: Permission denied

root@duelie:/home/cliff/src/mono# ls -l
total 79924
-rw-r--r-- 1 cliff users      385 Nov 26  2013 README
-rw-r--r-- 1 cliff users      990 Dec 14  2013 doinst.sh
-rw-r--r-- 1 cliff users      713 Sep  5 12:28 libgdiplus-libdir.patch
-rw-r--r-- 1 cliff users 81810387 Dec 17 15:36 mono-3.2.3.tar.bz2
-rwxr-xr-x 1 cliff users     2947 Sep  5 12:28 mono.SlackBuild*
-rw-r--r-- 1 cliff users      316 Dec 14  2013 mono.info
-rw-r--r-- 1 cliff users      912 Nov 26  2013 slack-desc
I have looked at the slackbuild, however I have no idea why I get permission denied. I have 'su -' to run the slackbuild. I have also tried to run it from the sbopkg gui, and I tried the qfile for mono. All fail with permission denied.

Your thoughts on this?
 
Old 12-17-2014, 03:20 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
check your /tmp/SBo permission
 
Old 12-17-2014, 04:15 PM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Permission on /tmp/SBo

Quote:
ls -ld /tmp/SBo
drwxr-xr-x 6 root root 120 Dec 17 15:37 /tmp/SBo/
and the dir's inside /tmp/SBo

Quote:
ls -l
total 0
drwxr-xr-x 6 root root 580 Jan 31 2012 libgdiplus-2.10.9/
drwxr-xr-x 19 root root 940 Sep 13 2013 mono-3.2.3/
drwxr-xr-x 2 root root 40 Dec 17 15:27 package-libgdiplus/
drwxr-xr-x 2 root root 40 Dec 17 15:37 package-mono/
Root has write permission.
 
Old 12-17-2014, 05:49 PM   #4
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Is /tmp a mounted filesystem, with the noexec option?
 
Old 12-17-2014, 06:31 PM   #5
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Yes, it is mounted with the noexec option.

Your question got me thinking. I had made a change in /etc/fstab because I ran out of /tmp space compiling.

Here are the two lines I switched.

Quote:
tmpfs /dev/shm tmpfs defaults,nodev,nosuid,noexec 0 0
#tmpfs /tmp tmpfs defaults,nodev,nosuid,noexec 0 0
The first one is the one I'm running now, the "permission denied" problem is gone. I had the second one in use. I wanted tmpfs on the HDD. However, with this line I got permission denied.

I don't know what is wrong with this line. Your thoughts?
 
Old 12-18-2014, 03:58 AM   #6
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
In case it isn't obvious what 'noexec' does, it suppresses execution permission for the relevant filesystem where otherwise it would be permitted. This is for people who worry about what's on USB sticks or what might happen if an attacker could write to /tmp.

Quote:
Originally Posted by camorri View Post
tmpfs /dev/shm tmpfs defaults,nodev,nosuid,noexec 0 0
This mounts a ramdisk on /dev/shm to provide 'shared memory', it doesn't go anywhere near /tmp

Quote:
Originally Posted by camorri View Post
tmpfs /tmp tmpfs defaults,nodev,nosuid,noexec 0 0
This mounts a ramdisk on /tmp. You asked for noexec on /tmp, and noexec on /tmp is what you got :P
 
Old 12-18-2014, 02:49 PM   #7
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I have removed the 'noexec' parameter. I was able to compile mono, so I'm marking this thread solved.
Thank-you to those who helped.
 
  


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
[SOLVED] ./build.sh - permission denied CollieJim Linux - General 5 02-15-2014 11:51 PM
mkdir -v ../binutils-build' : Permission denied mich04 Mandriva 3 12-18-2011 02:27 PM
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
mkdir ../binutils-build gives me "Permission Denied"!!! matthewa Linux From Scratch 16 06-29-2005 07:00 AM
mkdir ../binutils-build permission denied TheBman Linux From Scratch 11 02-16-2004 08:39 AM

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

All times are GMT -5. The time now is 10:16 AM.

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