Does os x (10.13) support negotiation of unix extensions/CIFS? When hard links didn’t work I dug in and while I found info on CAP_UNIX, and added ‘unix extensions = yes’ globally, the Negotiation makes no mentions: Negotiate Protocol Request (0x00) Capabilities: 0x00000077, DFS, LEASING, LARGE MTU, PERSISTENT HANDLES, DIRECTORY LEASING, ENCRYPTION Negotiate Protocol Response (0x00) Capabilities: 0x00000047, DFS, LEASING, LARGE MTU, ENCRYPTION This is 4.8 on FreeBSD11 I’m far from sure I’m looking at this the right way. Any hints greatly appreciated. Dan -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 528 bytes Desc: Message signed with OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20180329/feb0ca77/signature.sig>
Dan Janowski via samba <samba at lists.samba.org> writes:> [ Unknown signature status ] > Does os x (10.13) support negotiation of unix extensions/CIFS? > > When hard links didn’t work I dug in and while I found info on CAP_UNIX, and added ‘unix extensions = yes’ globally, the Negotiation makes no mentions:> I’m far from sure I’m looking at this the right way. Any hints greatly appreciated.Unix extensions havent been designed for SMB2 yet. I'm not sure which version of the protocol OSX tries to connect with (1 or 2+ ; I suspect it's 2) but if you want these extensions you have to use SMB1, which is also deprecated at this point. So you could try 2 things: * Assuming OSX can take advantage of the SMB1 unix extensions, you can re-enable SMB1 in samba with "server min protocol = LANMAN1" in your smb.conf. * If it cannot I know Apple has developed its own extensions for SMB2 (SMB2 AAPL) which samba supports throught vfs_fruit [1] but I don't know if hardlinks are part of these extensions. 1: https://www.samba.org/samba/docs/current/man-html/vfs_fruit.8.html Cheers, -- Aurélien Aptel / SUSE Labs Samba Team GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
On Tue, Apr 03, 2018 at 12:09:52PM +0200, Aurélien Aptel via samba wrote:> Dan Janowski via samba <samba at lists.samba.org> writes: > > > [ Unknown signature status ] > > Does os x (10.13) support negotiation of unix extensions/CIFS? > > > > When hard links didn’t work I dug in and while I found info on CAP_UNIX, and added ‘unix extensions = yes’ globally, the Negotiation makes no mentions: > > > I’m far from sure I’m looking at this the right way. Any hints greatly appreciated. > > Unix extensions havent been designed for SMB2 yet. I'm not sure which > version of the protocol OSX tries to connect with (1 or 2+ ; I suspect > it's 2) but if you want these extensions you have to use SMB1, which is > also deprecated at this point.I have an experimental branch that implements Unix extensions over SMB2 here: https://git.samba.org/?p=jra/samba/.git;a=shortlog;h=refs/heads/master-smb2 Everything should work except symlinks and device/fifo/named pipe objects in the filesystem. Feel free to experiment, I update it as I have time and once we've got something that looks reasonable, we can have a go at standardizing the "official" protocol extensions. Cheers, Jeremy.
Reasonably Related Threads
- Bug 12518 - smbclient -c 'cd <dir>; ls' for DFS generates STATUS_INVALID_PARAMETER
- Bug 12518 - smbclient -c 'cd <dir>; ls' for DFS generates STATUS_INVALID_PARAMETER
- cifs-utils: regression in (mulituser?) mounting 'CIFS VFS: Send error in SessSetup = -126'
- define defaults for mount -t cifs
- dfs links anywhere?