Sharing Files
To export a directory to SMB clients (that is, to share a directory with a client), add a section like this to your smb.conf
file, where label
is what you would like to call the share, and path
is the full directory path:
[label] path = path comment = share description guest ok = no writable = yes printable = no
These parameters are useful in directory shares:
guest ok
Allows guest access to the share. The public
parameter is a synonym.
writable
A yes
or true
setting here marks the share as read-write. Do not allow guest access to a read-write share.
printable
Specifies a printing share; this parameter must be set to no
or false
for a directory share.
veto files
Prevents the export of any files that match the given patterns. You must ...
Get How Linux Works 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.