guermantes
Patron
- Joined
- Sep 27, 2017
- Messages
- 213
EDIT EPILOGUE:
What's better than a lazy Sunday to tinker at the command promt? A lazy, rainy Sunday! I'll somewhat answer my own question: it turns out my hunch to go with NFS was a perfect solution, symlinks copy without hassle. I also happened upon some posts discussing Samba breaking symlink behaviour in a version 3 or 4 update. It could apparently be fixed with a special flag, but I never got around to try that since NFS works perfectly.
(I am trying to find out what my problem is so bear with me if I am barking up the wrong tree.)
On my local desktop (Linux Mint) I have a directory tree with some symbolic links, like so:
I am trying to transfer this directory tree to an SMB share on Freenas 11.2 RC2, but the symbolic links muck it up all the time, and I get "operation not permitted" when the symlinks are to be created at the destination.
I have mounted the SMB-share in fstab with
Stackexchange is overflowing with tips and suggestions but it is a cacophony just making my head spin.
Is this a root-related problem? Is it SMB? Am I going about it in the wrong manner?
I spent many hours trying to solve this yesterday, today I thought I should try with an NFS share instead on the Freenas (because, frankly, this share will only be accessed from Linux Mint), but figured I should exhaust the SMB options first by simply asking for help.
What's better than a lazy Sunday to tinker at the command promt? A lazy, rainy Sunday! I'll somewhat answer my own question: it turns out my hunch to go with NFS was a perfect solution, symlinks copy without hassle. I also happened upon some posts discussing Samba breaking symlink behaviour in a version 3 or 4 update. It could apparently be fixed with a special flag, but I never got around to try that since NFS works perfectly.
(I am trying to find out what my problem is so bear with me if I am barking up the wrong tree.)
On my local desktop (Linux Mint) I have a directory tree with some symbolic links, like so:
Code:
peter@mint19:~/testing-npm/no-slugs/node_modules/.bin$ ls -la total 16 drwxr-xr-x 2 peter peter 4096 Dec 1 21:53 . drwxr-xr-x 344 peter peter 12288 Dec 1 21:53 .. lrwxrwxrwx 1 peter peter 19 Dec 1 21:53 atob -> ../atob/bin/atob.js lrwxrwxrwx 1 peter peter 27 Dec 1 21:53 browser-sync -> ../browser-sync/dist/bin.js lrwxrwxrwx 1 peter peter 24 Dec 1 21:53 cake -> ../coffeescript/bin/cake lrwxrwxrwx 1 peter peter 26 Dec 1 21:53 coffee -> ../coffeescript/bin/coffee lrwxrwxrwx 1 peter peter 24 Dec 1 21:53 dateformat -> ../dateformat/bin/cli.js lrwxrwxrwx 1 peter peter 23 Dec 1 21:53 dev-ip -> ../dev-ip/lib/dev-ip.js lrwxrwxrwx 1 peter peter 25 Dec 1 21:53 esparse -> ../esprima/bin/esparse.js lrwxrwxrwx 1 peter peter 28 Dec 1 21:53 esvalidate -> ../esprima/bin/esvalidate.js lrwxrwxrwx 1 peter peter 18 Dec 1 21:53 grunt -> ../grunt/bin/grunt lrwxrwxrwx 1 peter peter 25 Dec 1 21:53 js-yaml -> ../js-yaml/bin/js-yaml.js lrwxrwxrwx 1 peter peter 25 Dec 1 21:53 lt -> ../localtunnel/bin/client lrwxrwxrwx 1 peter peter 14 Dec 1 21:53 mime -> ../mime/cli.js lrwxrwxrwx 1 peter peter 20 Dec 1 21:53 mkdirp -> ../mkdirp/bin/cmd.js lrwxrwxrwx 1 peter peter 19 Dec 1 21:53 nopt -> ../nopt/bin/nopt.js lrwxrwxrwx 1 peter peter 16 Dec 1 21:53 rimraf -> ../rimraf/bin.js lrwxrwxrwx 1 peter peter 20 Dec 1 21:53 semver -> ../semver/bin/semver lrwxrwxrwx 1 peter peter 22 Dec 1 21:53 strip-indent -> ../strip-indent/cli.js lrwxrwxrwx 1 peter peter 39 Dec 1 21:53 throttleproxy -> ../stream-throttle/bin/throttleproxy.js lrwxrwxrwx 1 peter peter 18 Dec 1 21:53 which -> ../which/bin/which lrwxrwxrwx 1 peter peter 21 Dec 1 21:53 window-size -> ../window-size/cli.js
I am trying to transfer this directory tree to an SMB share on Freenas 11.2 RC2, but the symbolic links muck it up all the time, and I get "operation not permitted" when the symlinks are to be created at the destination.
cp -a
does not work, neither does rsync -a
, nor creating a tarball to extract at the destination. If I try with a local destination it all works fine.I have mounted the SMB-share in fstab with
//10.0.0.51/hibou2 /home/peter/hibou2 cifs vers=2.1,user,uid=peter,username=peter,password=plaintextpass 0 0
. Unless I mount it as 'peter' I can't write to the share. The dataset hibou2 on the freenas is owned by 'peter' (owner&group).Stackexchange is overflowing with tips and suggestions but it is a cacophony just making my head spin.
Is this a root-related problem? Is it SMB? Am I going about it in the wrong manner?
I spent many hours trying to solve this yesterday, today I thought I should try with an NFS share instead on the Freenas (because, frankly, this share will only be accessed from Linux Mint), but figured I should exhaust the SMB options first by simply asking for help.
Last edited: