can not execute a script:permission denied, although it has the execution flag set (-rwxr-xr-x)
robert rottermann
robert at redcor.ch
Thu Jan 20 11:21:06 UTC 2022
Thanks
the first line of the script is:
#!/bin/bash
I should mention, that also the automatic expansion by hitting tab after ./sta
does also not work.
robert
On 20.01.22 09:34, Peter Flynn wrote:
> On 20 January 2022 06:46:17 robert rottermann <robert at redcor.ch> wrote:
>
>> Hi there
>>
>> in a folder on my desktop with Ubuntu 20.04 i can not execute any script that
>> has the execution flag set.
>>
>> But an attempt to run it, fails with an permission error:
>>
>> robert at chrissy:~/Dropbox/pankraz/SAPL$ ls -l startjava.sh
>> -rwxr-xr-x 1 robert robert 574 Jan 20 00:27 startjava.sh
>> robert at chrissy:~/Dropbox/pankraz/SAPL$ ./startjava.sh
>> -bash: ./startjava.sh: Permission denied
>>
>>
>> executing the same script using sh:
>>
>> sh ./startjava.sh
>>
>> works fine.
>>
>> What could be the reason?
>
> What does the first line of the script say?
>
> P
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220120/88dbf302/attachment.html>
More information about the ubuntu-users
mailing list