this post was submitted on 21 Dec 2025
8 points (90.0% liked)

Linux Questions

3045 readers
36 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 2 years ago
MODERATORS
 

I am not sure how many files that this happens to, but it has happened to two that I have tried in the last few days, one .sh file and another program/executable. I am logged in as root - Linux Mint 21.2 When I try to allow executing as a program it unticks itself (as in this video) I also get 'permission denied' in terminal, as root and i have tried

chmod +x filename

and

sudo chmod -v +x filename.sh

sudo chown --verbose 1000 filename.sh

But still get denied.. What am I doing wrong here or how can I fix this?

you are viewing a single comment's thread
view the rest of the comments
[–] possiblylinux127@lemmy.zip 12 points 1 week ago* (last edited 1 week ago) (1 children)

First off don't log in as root

What file system is the file under? What are the results of ls -l?

[–] Babalugats@feddit.uk 2 points 1 week ago (1 children)

Results of ls -l

total 27040
-rw-r--r-- 1 user user 27560272 Apr 13  2021 'Commandos 2 HD Remaster'
drwxr-xr-x 7 user user    32768 Apr 24  2021 'Commandos 2 HD Remaster_Data'
-rw-r--r-- 1 user user      200 Apr 24  2021  run.sh
-rw-r--r-- 1 user user     2465 Mar  3  2021  uninstall.sh
[–] possiblylinux127@lemmy.zip 2 points 1 week ago

Can you try copying the file to a different name?

ie cp filename filename2