The global
default
service option (sometimes called
default) names a "last-ditch" share. If set to an existing share name, and a client requests a nonexistent disk or printer share, Samba will attempt to connect the user to the share specified by this option instead. The option is specified as follows:
default service = helpshare
Note that there are no braces surrounding the share name
helpshare, even though the definition of the share later in the Samba configuration file will have braces. Also, if you use the
%S variable in the share specified by this option, it will represent the requested, nonexistent share, not the default service. Any underscores (
_ ) specified in the request share will be converted to slashes (
/) when the variable is used.