Configuration File Variables

Table 3.1 lists of Samba configuration file variables.

Table C-1. Variables in Alphabetic Order

Name

Meaning

%a

Client’s architecture (one of Samba, WfWg, WinNT, Win95, or UNKNOWN)

%d

Current server process’s processID

%f

Print-spool file as a relative path (printing only)

%f

User from which a message was sent (messages only)

%G

Primary group name of %U (requested username)

%g

Primary group name of %u (actual username)

%H

Home directory of %u (actual username)

%h

Samba server’s (Internet) hostname

%I

Client’s IP address

%j

Print job number (printing only)

%L

Samba server’s NetBIOS name (virtual servers have multiple names)

%M

Client’s (Internet) hostname

%m

Client’s NetBIOS name

%n

New password (password change only)

%N

Name of the NIS home directory server (without NIS, same as %L)

%o

Old password (password change only)

%P

Current share’s root directory (actual)

%p

Current share’s root directory (in an NIS homedir map)

%p

Print filename (printing only)

%R

Protocol level in use (one of CORE, COREPLUS, LANMAN1, LANMAN2, or NT1)

%S

Current share’s name

%s

Filename the message is in (messages only)

%s

Print-spool file name (printing only)

%T

Current date and time

%t

Destination machine (messages only)

%u

Current share’s username

%U

Requested username for current share

%v

Samba version

Get Using Samba 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.