For context: I main Linux systems and only run Windows via a number of VMs - development, work, etc. In order to save space and synchronize featuresets, my intention was to install a single instance of cygwin‑portable on a shared folder in the real host and then run the instance by mapping the networked drive on the Windows VMs.
The configuration for the shared folder is as follows:
[winshared]
browseable = yes
force user = winshared
force group = sharing
force create mode = 0777
force directory mode = 0775
acl allow execute always = True
Cygwin-Portable itself installs correctly. The problem is that the post-setup scripts in charge of installing apt-cyg, which I think run upon first opening conemu? download and install apt-cyg with some sort of permission issue that makes it unavailable:
root@Usuario-PC ~
$ ls /usr/local/bin
drwxrwxr-x 1 Unknown+User Unix_Group+1885 0 abr 13 12:44 .
drwxrwxr-x 1 Unknown+User Unix_Group+1885 0 abr 13 12:34 ..
-rw-rw-r--+ 1 Unknown+User Unix_Group+1885 65K abr 13 12:48 apt-cyg
root@Usuario-PC ~
$ apt-cyg
bash: /usr/local/bin/apt-cyg: Permission denied
Attempting to chmod +x
the file has no observable effect:
root@Usuario-PC ~
$ chmod ugo+x /usr/local/bin/apt-cyg
root@Usuario-PC ~
$ ls -lha /usr/local/bin/
total 1,0M
drwxrwxr-x 1 Unknown+User Unix_Group+1885 0 abr 13 13:04 .
drwxrwxr-x 1 Unknown+User Unix_Group+1885 0 abr 13 12:34 ..
-rw-rw-r--+ 1 Unknown+User Unix_Group+1885 65K abr 13 12:48 apt-cyg
getfacl reports available permissions:
root@Usuario-PC /usr/local/bin
$ getfacl apt-cyg
# file: apt-cyg
# owner: Unknown+User
# group: Unix_Group+1885
user::rw-
user:Unknown+User:rw-
group::r--
group:Unix_Group+1885:r--
mask::rw-
other::r--
But using setfacl to try and modify them also has no observable effect.
The only apparent way to make the apt-cyg binary available is to raw-copying to a new filename, but it can't be placed anywhere in $PATH
:
root@Usuario-PC /usr/local/bin
$ cat < apt-cyg > /usr/bin/apt-cyg2
$ cat < apt-cyg > /usr/local/bin/apt-cyg2
$ cat < apt-cyg > /tmp/apt-cyg2
$ /usr/bin/apt-cyg2
bash: /usr/bin/apt-cyg2: Permission denied
$ /usr/local/bin/apt-cyg2
bash: /usr/local/bin/apt-cyg2: Permission denied
$ /tmp/apt-cyg2
[normal apt-cyg output]
I presume this error could affect other components of Cygwin-Portable too, but since apt-cyg is not working correctly I can't install more software to test ATM. The components first installed by the system (ie.: anything listed in installer.cmd the first time) work without issue, but I can't tell at the moment about anything installed after.
For the record, installing Cygwin-Portable on the actual hard-drive works as intended, but copying the result to the shared folder results in the same errors as the above. Which defeats the point of having the install being portable.
Host: Linux Debian 10 with Samba
Guests:
- Windows 7 FLP 32-bit
- Windows 7 SP1 32-bit
- Windows 8.1 32-bit