You are not logged in.
EDIT: Solution is in the last post.
Hello,
I'm using devmon and now I'd like to execute simple bash script on my harddisk. But unfortunately, devmon is mounting this disc as this:
devmon: /usr/bin/udevil --mount /dev/sdb1 --mount-options "noexec,nosuid,nodev,noatime" # (extq)
Mounted /dev/sdb1 at /media/extq
when I try
$ devmon --mount /dev/sdb1 --mount-options "exec"
devmon: /usr/bin/udevil --mount /dev/sdb1 --mount-options "exec" # (extq)
udevil: denied 90: option 'exec' is not an allowed option
devmon: error mounting /dev/sdb1 (2)
Can you please tell me what I'm doing wrong?
Thank you very much
Last edited by Kotrfa (2014-06-14 09:17:07)
Offline
Have you tried
devmon --mount /dev/sdb1 --mount-options "nosuid,nodev,noatime"
Last edited by karol (2014-06-13 20:58:17)
Offline
Look into the allowed_options section in the udevil config file. Mounting anything with 'exec' is probably forbidden by default for security reasons.
Last edited by alphaniner (2014-06-13 21:05:32)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Have you tried
devmon --mount /dev/sdb1 --mount-options "nosuid,nodev,noatime"
Yes, I did and disc is mounted, but with "noexec" flag.
/dev/sdb1 on /media/extq type ext4 (rw,nosuid,nodev,noexec,noatime,data=ordered)
@Alphaniner: I looked in /etc/udevil/udevil.conf and there are default options, which I'd like to store - noexec option is of course one of them and it's because of security reasons. Anyway, thanks to alphaniner I searched this file a bit and there are also "allowed options", where I just added "exec" and it works. Hence solution:
Solution:
add "exec" option to /etc/udevil/udevil.conf to "allowed options":
allowed_options = nosuid, noexec, nodev, noatime, fmask=0133, dmask=0022, uid=$UID, gid=$GID, ro, rw, sync, flush, iocharset=*, utf8, remount, exec
Offline