I am currently on Arch Linux accessing Samba shares of an NTFS drive connected to a windows machine. I want to be able to create Symlinks from my Arch Linux machine in the Samba shares. I have googled this a bit and the usual response is adding a few lines to Samba.conf:

follow symlinks = yes
wide links = yes
unix extensions = no

My understanding is that this code only allows me to use Symlinks that are already created. Is there anyway to create them from my Arch Linux machine?

  • I'm afraid I don't know, but I can confirm that your samba config will do what you want, if you get it working. I do that all the time on my nas, but it is Ext4 on both locations. – Frank Thomas Nov 27 '13 at 4:33

Those lines in smb.conf are for configuring a Samba server, i.e. a server running in Linux. It changes how the server interprets symlinks in a directory it shares. It has nothing to do with using smbclient (or some other client) to access shares on a Windows machine.

As far as I know, NTFS doesn't support UNIX-style symlinks. I believe Microsoft added something to the filesystem to implement something similiar, but I haven't seen it used, and I don't know if the SMB/CIFS protocol even supports them.

  • Is it possible to share an ext4 partition from windows then? My only other option is going Linux on the Samba machine which I don't really want to set up – Chris Nov 27 '13 at 4:44
  • Not really. There used to be a driver to mount ext2 under windows, and it could do ext3 without the journal (which is dangerous if a crash happens). I don't know if it supports ext4 or if it was ever updated to Vista/7/8. I suspect the driver doesn't expose symlinks to Windows (how would it interpret them?) – wingedsubmariner Nov 27 '13 at 4:48
  • 1
    try using mklink in windows and see if that works. per wikipedia, the extension was made in part for POSIX compability so its likely it will work. see description and syntax here: en.wikipedia.org/wiki/NTFS_symbolic_link – Frank Thomas Nov 27 '13 at 5:47
  • To anyone else who reads this. It's not about what the network drive is partitioned as. It's just that you can't create symlinks over a Samba. Or at least I couldn't. I tried :P. Thank you everyone who tried to help. – Chris Nov 30 '13 at 21:23
  • @Chris, you able not be able to create a symlink OVER samba (a symlink where the target is at an smb:// address), but you can create a symlink between two locations on the same system, and configure samba to deference that link so that clients will see a folder where the symlink resides, and in it, the content that the symlink refers to. you could of course mount the smb share and then refer to its mount location with your symlink. perhaps I've misunderstood your question. – Frank Thomas Nov 30 '13 at 22:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.