0

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

  • 1
    Please [edit] your question to include the output of `findmnt -T /media/alexandre/Externo` – steeldriver Jul 24 '23 at 13:27
  • What is the filesystem on the external SSD? – Raffa Jul 24 '23 at 13:28
  • 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 – Alexandre Vieira de Souza Jul 24 '23 at 14:47
  • 1
    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. – Raffa Jul 24 '23 at 14:54
  • 1
    The `user` mount option implies `noexec` – muru Jul 24 '23 at 15:37
  • So, i changed to "UUID="3945e28a-a767-4abc-bb45-f4d843fef1b6" /media/alexandre/Externo ext4 defaults,exec,user,auto 0 0" but don't work – Alexandre Vieira de Souza Jul 24 '23 at 16:12
  • 1
    @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) – steeldriver Jul 24 '23 at 16:22
  • Thanks everybody, it's working. "UUID="3945e28a-a767-4abc-bb45-f4d843fef1b6" /media/alexandre/Externo ext4 defaults,user,exec,auto 0 1" – Alexandre Vieira de Souza Jul 24 '23 at 16:34

0 Answers0