smbfs Filesystem

SMB file sharing can work both ways. Samba allows you to set up your FreeBSD machine as an SMB server only, but there is a way to set it up as a client and mount a remote SMB share like any other filesystem. This is smbfs, available in the ports at /usr/ports/net/smbfs.

An smbfs implementation has existed for Linux for some time; the FreeBSD implementation is new and native to the platform because as a filesystem, it has to be integrated into the kernel—and the kernels are the least compatible parts of any two operating systems. The smbfs port for FreeBSD creates an smbfs.ko kernel module in /modules and a mount_smbfs tool in /sbin that works like all the other mount_* tools that we saw in Chapter 9, “The FreeBSD Filesystem.” ...

Get FreeBSD® Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.