Hi all,
I have a question : Why drives are mounted with noexec option ?
Because i would like to run script or executable binaries from mounted drive.
is there a option somewhere ?
best regard
Hi all,
I have a question : Why drives are mounted with noexec option ?
Because i would like to run script or executable binaries from mounted drive.
is there a option somewhere ?
best regard
They always have been. Most data does not need to be executed.
Set the environment variable OMV_FSTAB_MNTOPS_EXT4 in /etc/default/openmediavault to your preferred values.
Defaults: defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0
Of if the partition is already mounted, find it in /etc/openmediavault/config.xml in the fstab section.
Thanks
I found a dirty way : umount drive, del noexec from /etc/fstab, mount drive
I am trying to build debian pakage on drive mounted with a lot of script and binaries and i don't understand why i had Permission denied ... I know now
For security reason data does not need to be executed
The changes made by your 'dirty way' can be reset and overwritten by OMV when performing certain other operations. Changing the environment variable will be persistent.
Yes i know -> just for today
That is why the developer plugin copies the files to /tmp/ to build the package
Set the environment variable OMV_FSTAB_MNTOPS_EXT4 in /etc/default/openmediavault to your preferred values.
Is OMV_FSTAB_MNTOPS_EXT4 a valid variable in OMV 2.x or is it new for OMV 3?
OMV_FSTAB_MNTOPS_EXT4 is valid for OMV 2.x and 3.x. It is in the default file at installation time in OMV 2.x. In OMV 3.x, it has to be added to change the defaults.
I am running OMV 2.2.5. I set the following in /etc/default/openmediavault (it was not there, I had to add it)
OMV_FSTAB_MNTOPS_EXT4="defaults,nofail,user_xattr,exec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0"
Then as root I ran /usr/sbin/omv-mkconf fstab
When I examine /etc/fstab, the drives in the # >>> [openmediavault] section still show noexec.
Rebooting makes no difference.
What am I missing?
I don't see this variable in the list here: http://wiki.openmediavault.org…Environment_Variables/all but maybe that list is not up to date.
Maybe it was in there from OMV 1.x and I upgraded.
You don't need to add exec. Just remove noexec.
Running omv-mkconf fstab updates /etc/fstab from the info in the fstab section of /etc/openmediavault/config.xml. Changing the defaults only affects newly created filesystems. If you want to change an existing filesystem, you need to edit /etc/openmediavault/config.xml (make a backup first). Then execute omv-mkconf fstab and remount/reboot.
The defaults for the filesystems can be found here
OK, thanks.
Alles anzeigenMaybe it was in there from OMV 1.x and I upgraded.
You don't need to add exec. Just remove noexec.
Running omv-mkconf fstab updates /etc/fstab from the info in the fstab section of /etc/openmediavault/config.xml. Changing the defaults only affects newly created filesystems. If you want to change an existing filesystem, you need to edit /etc/openmediavault/config.xml (make a backup first). Then execute omv-mkconf fstab and remount/reboot.
The defaults for the filesystems can be found here
ma man.. this was pretty useful to me today. *ryphractor takes a bow at ryecoaaron* thank you
is the solution still up to date? or has something changed with omv 5.x?
i changed the file but:
i only have
root@openmediavault:~# omv-
omv-aptclean omv-engined omv-initdb omv-jsminify omv-mkraid omv-po2json omv-rmraid omv-salt omv-sysinfo
omv-changebackports omv-firstaid omv-installdocker omv-mkaptidx omv-mkrrdgraph omv-removekernels omv-rpc omv-showkey omv-update
omv-confdbadm omv-grubiso omv-installproxmox omv-mki18ndict omv-mkwebjs omv-resetperms omv-run omv-showsharedfolder
I don't want to go wrong or "try it out"
okay, thanks.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!