Score:0

Permission denied despite having permission

ve flag

I did what is described in this this post, and after that I am not able to run scripts that are on my external ssd, not even after using the sudo su command.

enter image description here

the output of findmnt -T /media/alexandre/Externo:

root@thinkPad:/media/alexandre/Externo/scrips-automacao-linux# findmnt -T /media/alexandre/Externo 
TARGET                   SOURCE    FSTYPE OPTIONS 
/media/alexandre/Externo /dev/sda1 ext4    rw,nosuid,nodev,noexec,relatime

I used the following command: UUID="3945e28a-a767-4abc-bb45-f4d843fef1b6" /media/alexandre/Externo ext4 defaults,user,auto 0 1

hr flag
Please [edit] your question to include the output of `findmnt -T /media/alexandre/Externo`
Raffa avatar
jp flag
What is the filesystem on the external SSD?
Alexandre Vieira de Souza avatar
ve flag
Hi, the output of findmnt -T /media/alexandre/Externo root@thinkPad:/media/alexandre/Externo/scrips-automacao-linux# findmnt -T /media/alexandre/Externo TARGET SOURCE FSTYPE OPTIONS /media/alexandre/Externo /dev/sda1 ext4 rw,nosuid,nodev,noexec,relatime
Raffa avatar
jp flag
Please add that to your question … It’s easier to format and read … However, you seem to be mounting a filesystem that doesn’t support permissions as EXT4 while it’s not … or you explicitly set the `noexec` flag while you shouldn’t.
muru avatar
us flag
The `user` mount option implies `noexec`
Alexandre Vieira de Souza avatar
ve flag
So, i changed to "UUID="3945e28a-a767-4abc-bb45-f4d843fef1b6" /media/alexandre/Externo ext4 defaults,exec,user,auto 0 0" but don't work
hr flag
@AlexandreVieiradeSouza the order in which you specify the `user,exec` options is important - see [My SSD Partitions are mounting as noexec, in defiance of fstab](https://askubuntu.com/questions/1346887/my-ssd-partitions-are-mounting-as-noexec-in-defiance-of-fstab)
Alexandre Vieira de Souza avatar
ve flag
Thanks everybody, it's working. "UUID="3945e28a-a767-4abc-bb45-f4d843fef1b6" /media/alexandre/Externo ext4 defaults,user,exec,auto 0 1"
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.