L
L
Lied2017-11-25 14:47:04
linux
Lied, 2017-11-25 14:47:04

Symbolic links not working in mounted directory!?

Problem: the directory is mounted, but symlinks do not work in it, using npm install, composer, or copying an already finished project gives an error: "cp: cannot create symbolic link <path>, file system is read-only".
The mounted directory has drwxrwxrwx user1 user1
From under the user copying, creation of files works.
From Linux, I mount the Windows directory like this: mount -t vboxsf -o rw,uid=user1,gid=user1
Host axis: win 7
guest axis ubuntu server 16 04 (vbox virtual machine)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2017-12-22
@Z1odeypnd

Hello. The vboxsf
file system does not support symlinks for security and stability reasons. Information about this is in the corresponding comment to the ticket . Extract from the comment:

This change is intentional and fixes an issue with the current public folder implementation.

S
Sergey Mironov, 2019-12-07
@MozgFx

As for reading only.
When mounting, keep in mind that the rights to the mount point impose their own restrictions, regardless of the permissions of the resources specified during mounting.
This is a fairly common mistake. The second part of the question was answered earlier...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question