Post Reply 
Cannot run minimserver from external disk
22-11-2020, 17:17 (This post was last modified: 22-11-2020 17:32 by peterr.)
Post: #1
Cannot run minimserver from external disk
Hello,

I'm successfully using minimserver2 on a headless Raspberry Pi 4 running Arch Linux (aarch64). I installed it in my user's home directory (/home/peterr).

Now I would like to install minimserver2 on an external disk mounted in /mnt (/mnt/ssd2). But when I try to run any script from minimserver/bin from there, I get permission errors. I didn't use root or sudo at any point during installation.

Here's a complete history of what I did:

Code:
[peterr@pi4 ssd2]$ tar xf MinimServer-2.0.16-linux-arm64.tar.gz

[peterr@pi4 ssd2]$ minimserver/bin/setup
-bash: minimserver/bin/setup: Permission denied

[peterr@pi4 ssd2]$ minimserver/bin/startc
-bash: minimserver/bin/startc: Permission denied

Permissions look fine, though:

Code:
[peterr@pi4 ssd2]$ ls -l minimserver/bin/
total 68
-rwxr-xr-x 1 peterr peterr  1640 Jun  2 22:15 mscript
-rwxr-xr-x 1 peterr peterr  1732 Feb 20  2016 scriptdemo.sh
-rwxr-xr-x 1 peterr peterr 28533 Sep 28 21:33 setup
-rwxr-xr-x 1 peterr peterr  2378 Jun 22 23:34 startc
-rwxr-xr-x 1 peterr peterr  6743 Aug 28 15:09 startd
-rwxr-xr-x 1 peterr peterr  7733 Aug 28 15:09 starti
-rwxr-xr-x 1 peterr peterr  2328 Aug  5  2019 stopall
-rwxr-xr-x 1 peterr peterr  2234 Aug  2  2019 uninstall
-rwxr-xr-x 1 peterr peterr  2233 Aug 25 17:12 update

[peterr@pi4 ssd2]$ ls -l minimserver/
total 24
lrwxrwxrwx 1 peterr peterr   22 Oct  3 17:06 bin -> minimserver-2.0.16/bin
drwxr-xr-x 2 peterr peterr 4096 Oct  3 17:06 data
drwxr-xr-x 2 peterr peterr 4096 Oct  3 17:06 etc
lrwxrwxrwx 1 peterr peterr   24 Oct  3 17:06 icons -> minimserver-2.0.16/icons
lrwxrwxrwx 1 peterr peterr   22 Oct  3 17:06 lib -> minimserver-2.0.16/lib
drwxr-xr-x 2 peterr peterr 4096 Oct  3 17:06 libext
drwxr-xr-x 2 peterr peterr 4096 Oct  3 17:06 libsys
drwxr-xr-x 5 peterr peterr 4096 Oct  3 17:06 minimserver-2.0.16
drwxr-xr-x 3 peterr peterr 4096 Oct  3 17:06 opt

[peterr@pi4 ssd2]$ ls -l
total 2284
drwxr-xr-x  8 peterr peterr 4096 Oct  3 17:06 minimserver
...

[peterr@pi4 ssd2]$ ls -l /mnt
total 12
...
drwxr-xr-x 15 peterr peterr 4096 Nov 22 17:05 ssd2
...

Permissions for /mnt are write-restricted to root, but this is identical to /home:

Code:
[peterr@pi4 ssd2]$ ls -l /
total 76
...
drwxr-xr-x   3 root root  4096 Nov 21 00:22 home
...
drwxr-xr-x   6 root root  4096 Nov  8 20:39 mnt
...

Is there anything I can do about this?

Edit: Maybe a note on the java version is helpful:

Code:
[peterr@pi4 ~]$ java -version
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
Find all posts by this user
Quote this message in a reply
22-11-2020, 17:41
Post: #2
RE: Cannot run minimserver from external disk
Is ssd2 mounted with noexec?
Find all posts by this user
Quote this message in a reply
22-11-2020, 18:39
Post: #3
RE: Cannot run minimserver from external disk
(22-11-2020 17:41)simoncn Wrote:  Is ssd2 mounted with noexec?

Not explicitly, but I just found out that the mount option 'users' implies noexec. Mounting with the option 'exec' should solve this, thank you!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)