I use VirtualBox 6.0.6 on Windows 10 to work in Linux Mint. I use a USB drive with a programming environment on it (Portacle). It contains an executable file (portacle.desktop). I found myself unable to run the file. A window always popped up:
The application "portacle.desktop" has not been marked as trusted (executable).
Clicking "Launch Anyway" or "Mark as Trusted" achieved nothing. It turned out that the file option "Allow executing file as program" was turned off. However, when I turned it on, it immediately turned itself off. Owner was "mint", changing it resulted in "The group could not be changed. You do not have the permissions necessary to change the group of 'portacle.desktop'", even when running as root. Many people have had similar problems and asked here, and they were told to change attributes/permissions. Changing permissions didn't solve the problem. Changing the owner (even as root) gave the error:
chown: changing ownership of 'portacle.desktop': Operation not permitted
Trying to see (or change) the file attributes resulted in:
lsattr: Inappropriate ioctl for device while reading flags on portacle.desktop
Searching that, I found several people with the same problem, but their solutions were specific workarounds not applicable to my case. I also tried moving the files from the USB drive to the main drive. Besides bizarre problems like a folder suddenly being seen as 140 TB in size, the ioctl problem did not go away and everything went more or less along the same lines.
Full path of file:
mount | grep /dev:
root@mint:/media/mint/3424-9F51/real-lisp/portacle-linux# mount | grep /dev udev on /dev type devtmpfs (rw,nosuid,relatime,size=1998648k,nr_inodes=499662,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) /dev/sr0 on /cdrom type iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048) /dev/loop0 on /rofs type squashfs (ro,noatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) mqueue on /dev/mqueue type mqueue (rw,relatime) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) /dev/sda1 on /media/mint/3424-9F51 type vfat (rw,nosuid,nodev,relatime,uid=999,gid=999,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
Filesystem 1K-blocks Used Available Use% Mounted on udev 1998648 0 1998648 0% /dev tmpfs 403956 1092 402864 1% /run /dev/sr0 1927648 1927648 0 100% /cdrom /dev/loop0 1845760 1845760 0 100% /rofs /cow 2019772 49900 1969872 3% / tmpfs 2019772 0 2019772 0% /dev/shm tmpfs 5120 4 5116 1% /run/lock tmpfs 2019772 0 2019772 0% /sys/fs/cgroup tmpfs 2019772 4 2019768 1% /tmp tmpfs 403952 28 403924 1% /run/user/999
total used free shared buff/cache available Mem: 4039548 1201060 1581880 158384 1256608 2445112 Swap: 0 0 0
du -ks /media/mint/3424-9F51/real-lisp/portacle-linux: