You are not logged in.

#1 2014-03-16 23:28:36

feralferrets
Member
Registered: 2014-03-16
Posts: 4

[SOLVED] Unable to run binaries not installed with pacman.

I am trying to use a program called Jamulus, and after successfully building from source I tried to run the binary.  However, this gave a "Permision Denied" error, despite me owning the file and have execute permisions for it.  Even when I attempted to run it as root it did not work.

I decided to try with other programs, such as Blender downloaded from the website (I am aware that there is an update to date version in the repositories, however this was for testing purposes), which also would not run.

I am just using:

./Jamulus

I completed the beginners guide and everything else seems to work fine.  Is this actually a permissions problem or is something else going on?

Thank you for your time,
Mark

Last edited by feralferrets (2014-03-17 19:24:45)

Offline

#2 2014-03-16 23:35:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Unable to run binaries not installed with pacman.

What's the output of 'file <binary>' e.g. 'file /path/to/Jamulus'?

Offline

#3 2014-03-16 23:36:19

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Unable to run binaries not installed with pacman.

Where have you built the file? Specifically, what filesystem is it on, and what are the mount options?

Last edited by WorMzy (2014-03-16 23:36:40)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2014-03-16 23:37:20

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [SOLVED] Unable to run binaries not installed with pacman.

Is it +x?

Offline

#5 2014-03-16 23:39:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Unable to run binaries not installed with pacman.

graysky wrote:

Is it +x?

feralferrets wrote:

this gave a "Permision Denied" error, despite me owning the file and have execute permisions for it

Offline

#6 2014-03-17 00:02:11

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [SOLVED] Unable to run binaries not installed with pacman.

Only so much I can see on this little screen tongue

Offline

#7 2014-03-17 00:04:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Unable to run binaries not installed with pacman.

graysky wrote:

Only so much I can see on this little screen tongue

Are you browsing the forum on a smartwatch? ;-)



Is there a way to get a log or a more verbose output out of Jamulus?

Offline

#8 2014-03-17 00:28:22

feralferrets
Member
Registered: 2014-03-16
Posts: 4

Re: [SOLVED] Unable to run binaries not installed with pacman.

karol wrote:

What's the output of 'file <binary>' e.g. 'file /path/to/Jamulus'?

Here you go:

$file Jamulus
Jamulus: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=96f41d8fd0ca68528a6ea945d624d7987589643c, not stripped
WorMzy wrote:

Where have you built the file? Specifically, what filesystem is it on, and what are the mount options?

It's on a ext4 partition, I have a seperate home partition so I do not mount it manually, but the fstab options are "defaults, user".
Is there a specific mount option I would need to be able to run binarys?  I haven't done much with mount options because I mostly only manually mount flash drives to copy files.

Offline

#9 2014-03-17 00:31:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Unable to run binaries not installed with pacman.

There's the 'noexec' mount option:

man mount wrote:

       noexec Do not allow direct execution of any binaries on the mounted filesystem.  (Until recently
              it was possible to run binaries anyway using a command like /lib/ld*.so /mnt/binary. This
              trick fails since Linux 2.4.25 / 2.6.0.)

Offline

#10 2014-03-17 08:00:03

feralferrets
Member
Registered: 2014-03-16
Posts: 4

Re: [SOLVED] Unable to run binaries not installed with pacman.

Right okay, and default includes 'exec', so it isn't that then.  I've been trying to Google it, but nothing really seems to come up.

karol wrote:

Is there a way to get a log or a more verbose output out of Jamulus?

I don't think so, I don't even think that it is running any of the Jamulus code.  If it were limited to just Jamulus I would suspect the problem is with that, however it seems to be with any binary not from the Arch repos.

Last edited by feralferrets (2014-03-17 08:04:03)

Offline

#11 2014-03-17 08:24:09

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: [SOLVED] Unable to run binaries not installed with pacman.

What is the output of `ldd BINARY`? It might be linked to a library not available on your system

Offline

#12 2014-03-17 11:40:43

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Unable to run binaries not installed with pacman.

user includes noexec and order matters.

Offline

#13 2014-03-17 11:46:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Unable to run binaries not installed with pacman.

feralferrets wrote:

Right okay, and default includes 'exec', so it isn't that then.  I've been trying to Google it, but nothing really seems to come up.

As falconindy wrote, 'user' overrides 'default' ('defaults'?) settings.

Offline

#14 2014-03-17 12:32:55

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [SOLVED] Unable to run binaries not installed with pacman.

Since you said you're not mounting it manually, you don't need user at all, then. 'defaults' should do it.

Edit: The 'user' option is to mount or unmount it as a user. It has nothing to do with the access rights. Edit2: Except what mentioned above (including noexec evtl. more..)

Last edited by rebootl (2014-03-17 12:43:16)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#15 2014-03-17 19:23:36

feralferrets
Member
Registered: 2014-03-16
Posts: 4

Re: [SOLVED] Unable to run binaries not installed with pacman.

Removing the user option in fstab did the trick.  I thought I added it because I seem to remember when I logged in as a normal user it wasn't automatically mounting but that doesn't appear to be happening anymore.

Thank you for your guys's help!

Offline

Board footer

Powered by FluxBB