質問編集履歴
1
権限の確認結果を記載し、shスクリプトの内容を追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,13 +19,16 @@
|
|
19
19
|
```
|
20
20
|
|
21
21
|
### 該当のソースコード
|
22
|
+
実行しようとしているshスクリプト
|
23
|
+
```ここに言語名を入力
|
24
|
+
#!/bin/sh
|
25
|
+
dir=$(dirname "$0")
|
26
|
+
java -cp "$dir/h2-1.4.200.jar:$H2DRIVERS:$CLASSPATH" org.h2.tools.Console "$@"
|
22
27
|
|
23
|
-
```ここに言語名を入力
|
24
|
-
ソースコード
|
25
28
|
```
|
26
29
|
|
27
30
|
### 試したこと
|
28
|
-
permission deniedが出たので、権限を付与しなければならないと推測し、`chmod a+x h2.sh`を実行しました。
|
31
|
+
permission deniedが出たので、権限を確認したところ「-rw-rw-r--」となっていたので、実行の権限を付与しなければならないと推測し、`chmod a+x h2.sh`を実行しました。
|
29
32
|
しかし、今度は「chmod: Unable to change file mode on h2.sh: Operation not permitted」というエラーが出てきました。
|
30
33
|
そこで、`sudo chmod a+x h2.sh`を実行しましたが、パスワードの入力を求められた後に再度「chmod: Unable to change file mode on h2.sh: Operation not permitted」が出てきました。
|
31
34
|
|