HP CIFS Server 3.0f Administrator's Guide verison A.02.03

read only = no
create mode = 600
directory mode = 770
writeable = yes
browseable = no
guest ok = no
Configuring User Logon Scripts
The logon script configuration must meet the following requirements:
User logon scripts should be stored in a file share called [netlogon] on the HP CIFS Server.
Should be set to UNIX executable permission.
Any logon script should contain valid commands recognized by the Windows client.
A logon user should have proper access permissions to execute logon scripts.
The following is an example configuration for user logon scripts:
[global]
logon script = %U.bat
[netlogon]
path = /etc/opt/samba/netlogon
writeable = yes
browseable = no
guest ok = no
In this example, the batch (.bat) file is executed from a file share called [netlogon] on a HP CIFS Server
configured as a PDC.
Running Logon Scripts When Logging On
A HP CIFS Server configured as a PDC can enable the execution of logon scripts when users log on. To
enable this feature, the following must be done:
User logon scripts should be stored in a file share on the HP CIFS Server called [netlogon].
The HP CIFS Server enables the execution of login scripts by setting the global parameter named logon
script in the
smb.conf
file.
Any logon script that is to be executed on a Windows Client must be in DOS text format and contain
executable
permission.
Home Drive Mapping Support
A HP CIFS Server provides user home directories and home drive mapping functionality by using the following
two global parameters in the
smb.conf
file:
login home
logon drive
Example:
[global]
logon drive = H:
logon home = \\%L\%U
Trust Relationships
Trust relationships enable pass-through authentication to users of one domain in another. A trusting domain
permits logon authentication to users of a trusted domain. There are various forms of trusts, depending on
Configuring User Logon Scripts 67