You are not logged in.

#1 2024-02-29 15:19:26

m3nhir
Member
From: Torino - Italy
Registered: 2020-04-03
Posts: 49

[SOLVED] An Appimage file does not start "permission denied"

A program in AppImage format that I have been using for some time now no longer works. Launching it from the terminal tells me "permission denied" ( execution permissions are ok.).

$ ./cryptomator-1.12.3-x86_64.AppImage
bash: ./cryptomator-1.12.3-x86_64.AppImage: Permission denied 

The file '/tmp/appimage.strace'contains the string:

 38555 execve("./cryptomator-1.12.3-x86_64.AppImage", ["./cryptomator-1.12.3-x86_64.AppI"...], 0x7ffce024dc60 /* 61 vars */) = -1 EACCES (Permission denied)
38555 +++ exited with 1 +++ 

It doesn't work with sudo either, although I've always run it as a normal user.
I use KDE as my DE. Can it be a bug or a recent security setting? How do I fix it? Thanks for the help.

Last edited by m3nhir (2024-03-01 16:03:52)


Intelligence is not making mistakes, but find out how to profit immediately.

Offline

#2 2024-02-29 15:30:52

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

Re: [SOLVED] An Appimage file does not start "permission denied"

Mod note: Moving to AUR Issues.


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

#3 2024-02-29 15:36:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,960

Re: [SOLVED] An Appimage file does not start "permission denied"

Did you remove the executable bit by accident?

Offline

#4 2024-02-29 22:05:48

m3nhir
Member
From: Torino - Italy
Registered: 2020-04-03
Posts: 49

Re: [SOLVED] An Appimage file does not start "permission denied"

V1del wrote:

Did you remove the executable bit by accident?

No. the execution permissions are correct. And the first thing I checked when I read the result from terminal "permission denied". I even tried deleting the related configuration that was created in my home and restarting the program as if it was the first time I was using it, but the problem persists. I get the same result even if I run the command as sudo or root.


Intelligence is not making mistakes, but find out how to profit immediately.

Offline

#5 2024-03-01 00:56:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,365

Re: [SOLVED] An Appimage file does not start "permission denied"

Is it on a filesystem mounted noexec?

Offline

#6 2024-03-01 08:49:04

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,680

Re: [SOLVED] An Appimage file does not start "permission denied"

permissions are correct

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

stat .
stat ./cryptomator-1.12.3-x86_64.AppImage
file ./cryptomator-1.12.3-x86_64.AppImage

Offline

#7 2024-03-01 09:22:46

m3nhir
Member
From: Torino - Italy
Registered: 2020-04-03
Posts: 49

Re: [SOLVED] An Appimage file does not start "permission denied"

Scimmia wrote:

Is it on a filesystem mounted noexec?

No. The file is in my home and until a few days before it always worked. It also gives me the same problem on another distro but still with KDE. I would not want it to be a new setting or a bug as a result of an update. Another file though, again AppImage runs correctly. I also tried using an earlier version but the result does not change.


Intelligence is not making mistakes, but find out how to profit immediately.

Offline

#8 2024-03-01 09:33:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,960

Re: [SOLVED] An Appimage file does not start "permission denied"

The thing is your strace shows that you're dying before executing any application code, post the outputs seth requested. This can also happen if an "autoupdater" of the appimage auto-updates incorrectly.

Last edited by V1del (2024-03-01 09:34:07)

Offline

#9 2024-03-01 13:08:36

m3nhir
Member
From: Torino - Italy
Registered: 2020-04-03
Posts: 49

Re: [SOLVED] An Appimage file does not start "permission denied"

V1del wrote:

..., post the outputs seth requested...

 stat ./cryptomator-1.12.3-x86_64.AppImage
  File: ./cryptomator-1.12.3-x86_64.AppImage
  Size: 59626688 Blocks: 116472 IO Block: 4096 regular file
Device: 259.2 Inode: 4575329 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 1000/ sergio) Gid: ( 1000/ sergio)
Accessed : 2024-03-01 10:27:27.586185044 +0100
Edit : 2024-03-01 10:25:14.636914596 +0100
Change : 2024-03-01 10:28:00.489337823 +0100
Creation : 2024-03-01 10:28:00.396005002 +0100 
$ file ./cryptomator-1.12.3-x86_64.AppImage
./cryptomator-1.12.3-x86_64.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=9fdbc145689e0fb79cb7291203431012ae8e1911, stripped 

Today, however, after an update, the application is working again. Those posted are today's outputs after the update. I did not change anything from previous days in the configurations


Intelligence is not making mistakes, but find out how to profit immediately.

Offline

#10 2024-03-01 15:40:04

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,680

Re: [SOLVED] An Appimage file does not start "permission denied"

According to the timestamp this file was created this morning, ~1h after my last post - so it's pot. not the compromised file.

Please mark the thread as solved and in case the problem re-emerges, post the relevant file info and in case this becomes a frequent issue, preserve a compromised file as investigation target.
Thanks.

Offline

#11 2024-03-01 16:03:02

m3nhir
Member
From: Torino - Italy
Registered: 2020-04-03
Posts: 49

Re: [SOLVED] An Appimage file does not start "permission denied"

Yes, I had deleted and re-downloaded the file, in the past few days I had also done it several times to make sure it was not corrupt, and I did it again today. I don't think the error could be due to the file since it was working in the previous days, but as a precaution when I noticed the malfunction I had rewritten the file and deleted all its local settings present in the home. Thanks for the help.


Intelligence is not making mistakes, but find out how to profit immediately.

Offline

Board footer

Powered by FluxBB