Peppermint OS

Support => Software & Applications => Topic started by: straybit on September 25, 2020, 10:08:29 am

Title: Permission denied(SOLVED)
Post by: straybit on September 25, 2020, 10:08:29 am
This is the second program that I've compiled and get this error
Code: [Select]
bruce@Compaq ~/Data/bin/lib $ gcc -Wall -L. -oLibTest LibTest.c -lbrlib
bruce@Compaq ~/Data/bin/lib $ ./LibTest
bash: ./LibTest: Permission denied
bruce@Compaq ~/Data/bin/lib $ ls -l
total 40
-rw-rw-r-- 1 bruce bruce 15864 Sep 24 15:05 libbrlib.a
-rwxrwxr-x 1 bruce bruce 13224 Sep 25 10:41 LibTest
-rw-rw-r-- 1 bruce bruce   801 Sep 25 10:36 LibTest.c
drwxr-xr-x 2 bruce bruce  4096 Sep 25 10:09 src
Here is inxi
Spoiler (click here to view / hide)
[close]
just read another message.  I don't know if this is wanted but
Code: [Select]
bruce@Compaq ~/Data $ uname -a
Linux Compaq 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Any suggestion?
Bruce
Title: Re: Permission denied
Post by: murraymint on September 25, 2020, 02:32:36 pm
Make sure Data isn't mounted with noexec parameter and that the whole path (every folder) of ?/Data/bin/lib is marked as executable.
Title: Re: Permission denied
Post by: straybit on September 26, 2020, 01:54:37 pm
Thanks Murraymint.
Here is the fstab entry
Spoiler (click here to view / hide)
[close]
All folders are
Code: [Select]
drwxr-xr-x
Title: Re: Permission denied(SOLVED)
Post by: straybit on October 01, 2020, 12:24:25 pm
My Data directory is on a different partition.  In fstab, one of the options is 'users' which implies 'noexec' and others.
My solution was to add 'exec,' after 'users'.
Bruce