LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-15-2014, 07:12 AM   #1
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Rep: Reputation: 28
./build.sh - permission denied


Hi,

I'm trying to build the Symbol Editor for Kxstitch. All permissions appear to be correct, but I get 'permission denied' when trying to execute build.sh.
Code:
SymbolEditor-1.0.0-KDE4 $ ./build.sh
bash: ./build.sh: Permission denied
SymbolEditor-1.0.0-KDE4 $ cat build.sh
#!/bin/bash

rm -rf build
mkdir build
if [ -d "build" ]; then
    cd build
    THREADS=`cat /proc/cpuinfo | grep processor | wc -l`
    cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .. && make -j${THREADS} && su -c 'make install'
else
    echo "Unable to create build directory. Build aborted\n"
fi

SymbolEditor-1.0.0-KDE4 $ ls -al
total 112
drwxr-xr-x  6 jim jim  4096 Apr 23  2012 .
drwxr-xr-x 24 jim jim  4096 Feb 15 20:57 ..
-rwxr-xr-x  1 jim jim   306 Apr 23  2012 build.sh
-rw-r--r--  1 jim jim  1489 Apr 23  2012 CMakeLists.txt
drwxr-xr-x  2 jim jim   110 Apr 23  2012 doc_images
-rw-r--r--  1 jim jim 66833 Apr 23  2012 Doxyfile.in
-rw-r--r--  1 jim jim   846 Apr 23  2012 hi32-app-symboleditor.png
drwxr-xr-x  2 jim jim    92 Apr 23  2012 icons
drwxr-xr-x  2 jim jim    25 Apr 23  2012 libraries
-rw-r--r--  1 jim jim   471 Apr 23  2012 lo16-app-symboleditor.png
-rw-r--r--  1 jim jim   846 Apr 23  2012 lo32-app-symboleditor.png
drwxr-xr-x  2 jim jim  4096 Apr 23  2012 src
-rw-r--r--  1 jim jim   342 Apr 23  2012 SymbolEditor.desktop
-rw-r--r--  1 jim jim  1275 Apr 23  2012 SymbolEditorui.rc
-rw-r--r--  1 jim jim   409 Apr 23  2012 SymbolEditor.xml
Is there a hidden permission blocking it?

Thanks
Jim
 
Old 02-15-2014, 08:43 AM   #2
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Original Poster
Rep: Reputation: 28
Problem solved, I think.

The directory is on a network drive with option noexec.
 
Old 02-15-2014, 03:32 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Yes, that would explain it, however, you could always run "bash build.sh" to get around this.
 
Old 02-15-2014, 04:35 PM   #4
pingwinowiewc
Member
 
Registered: Feb 2014
Location: Europe
Distribution: Debian, Mint, Arch (multiboot)
Posts: 90

Rep: Reputation: Disabled
or change privilledges on network drive....its even simpler than going through what @up suggested....
not to mention its one-time change.....
 
Old 02-15-2014, 11:49 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
There are some good security reasons to keep drives mounted noexec in certain instances. Permissions should only be changed if the compelling reason to have a noexec-mounted drive has gone away.
 
Old 02-15-2014, 11:51 PM   #6
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Original Poster
Rep: Reputation: 28
Thanks. I'll keep things as they are.

When I remember, I ssh into the NAS box to do things on it that require a lot of disk activity - it's much faster when the network is not involved.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mkdir throws Permission Denied error in a directoy even with root ownership and 777 permission surajchalukya Linux - Security 14 09-03-2012 08:34 AM
mkdir -v ../binutils-build' : Permission denied mich04 Mandriva 3 12-18-2011 02:27 PM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 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 - General

All times are GMT -5. The time now is 05:51 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