Ubuntu 15.04 Server with systemd: Administration and Reference by Richard Petersen

Ubuntu 15.04 Server with systemd: Administration and Reference by Richard Petersen

Author:Richard Petersen [Petersen, Richard]
Language: eng
Format: epub, mobi
Publisher: Surfing Turtle Press
Published: 2015-05-15T21:00:00+00:00


%S

Name of the current service

%P

Root directory of the current service

%u

Username of the current service

%H

Home directory of the user

%h

Internet hostname on which Samba is running

%m

NetBIOS name of the client machine

%L

NetBIOS name of the server

%M

Internet name of the client machine

%I

IP address of the client machine

Table 12-3: Samba Substitution Variables

For example, suppose a service needs to use a separate directory for each user who logs in. The path for such directories could be specified using the %u variable that substitutes in the name of the current user. The string path = /tmp/%u would become path = /tmp/justin for the justin user and /tmp/dylan for the dylan user. lists several of the more common substitution variables.

Global Settings

The Global Settings section determines configuration for the entire server, as well as specifying default entries to be used in the home and directory segments. In this section, you will find entries for the workgroup name, password configuration, and directory settings. Several of the more important entries are discussed here.

Browsing/Identification

The Workgroup entry specifies the workgroup name you want to give to your network. This is the workgroup name that appears on the Windows client’s Network window. The default Workgroup entry in the smb.conf file is shown here:

[global]



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.