O'Reilly logo

Using Samba, Second Edition by David Collier-Brown, Robert Eckstein, Jay Ts

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuration File Variables

Table B-1 lists the Samba configuration file variables.

Table B-1. Configuration file variables

Name

Meaning

%a

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

%d

Current server process’s process ID

%D

User’s Windows NT Domain

%f

Printer 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

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

%n

New password (password change only)

%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 (CORE, COREPLUS, LANMAN1, LANMAN2, or NT1)

%S

Current share’s name

%s

Name of the file in which the message resides (messages only)

%s

Printer spool filename (printing only)

%T

Current date and time

%t

Destination system (messages only)

%U

Requested username for current share

%u

Current share’s username

%v

Samba version

%$name

Value of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required