Community discussions

MikroTik App
 
bsdcpp
just joined
Topic Author
Posts: 3
Joined: Thu Oct 12, 2023 3:37 am

No execute permission on mountpoints for binaries

Thu Oct 12, 2023 3:56 am

Hi, everyone. There's no executable permission on mount points, whether the usb disks or local storages.
version: 7.11.2 (stable)
CHR x86_64

/container mounts
add dst=/etc/path name=test src=/usb1-part1/path

/container
add remote-image=alpine interface=veth1 mounts=test
Shell scripts can be only executed like:
sh /etc/path/sth.sh
, but not
./sth.sh
even if after
chmod +x ./sth.sh
.
Binary files cannot be executed in any way.

I notice that in the container, mount cmd shows:
/dev/sda2 on /etc/path type ext3 (rw,nosuid,nodev,noexec,noatime)
Does it mean I can pass any env option to disable the noexec?

Thank you for you time.
 
elico
Member Candidate
Member Candidate
Posts: 147
Joined: Mon Nov 07, 2016 3:23 am

Re: No execute permission on mountpoints for binaries

Sat Dec 02, 2023 11:27 am

Probably a security feature.
You can try to contact support to understand better.
 
optio
Long time Member
Long time Member
Posts: 675
Joined: Mon Dec 26, 2022 2:57 pm

Re: No execute permission on mountpoints for binaries

Sat Dec 02, 2023 12:38 pm

You can try to run sctipt as source:
. ./sth.sh
Not always a good idea, depends on script.

Who is online

Users browsing this forum: No registered users and 3 guests