How to mount with SAMBA and respect symlinks

I am mounting a directory, e.g., /home/docs/ from PCserver to PCclient using the SAMBA share in Linux. Both computers are in Linux (Ubuntu).

I perform sudo mount -f cifs with the necessary parameters, and everything works okay. The /home/docs/ from PCserver is mounted in PCclient. The problem is that the symlinks of the PCserver, either files or directories, are not mounted as symlinks, but as target files or directories.

How can I mount symlinks of the server als symlinks in the client, using samba?

I have tried in the smb.conf file the option follow symlinks = no. The only result is that folders als symlinks cannot be opened in the PCclient, but symlink files are mounted as the target files and not as symlinks.

I have found a similar question. But no clear solution is given.


Solution 1:

If both computers run on Linux, we can rather set up an NFS Mount (See how to set it up), instead of SAMBA. This mount respects the original symlinks as they are in the PCServer.