Instructions for custom smb.conf template
(This enables users HOME drive mapping for Netlogon in 9x/NT/2K)
1) Make 3 files with the names / content as below (11logonHome etc)
2) Make a dreictory path /etc/e-smith/templates-custom/etc/smb.conf/
3) Copy the 3 files to that directory
4) Run this command
/sbin/e-smith/ ./expand-template /etc/smb.conf
5) Check over your /etc/smb.conf to see changes !
11logonHome
-----------
{
# users logon home path
# %L substitutes for this logon servers name
# %U is username
return "" unless ($SambaDomainMaster eq "yes");
"logon home = \%L\%U\._winprofiles";
}
-----------
11logonPath
-----------
{
# Where to store roving profiles
# %L substitutes for this logon servers name
# %N substitutes for this servers netbios name
# %U is username
# WinNT/W2K uses logon path
# Win9x uses logon home
return "" unless ($SambaDomainMaster eq "yes");
"logon path = \%L\profiles\%U";
}
-----------
11serverString
--------------
{
# server string is the equivalent of the NT Description field
my $server_string = db_get_prop($confref, 'smb', 'ServerString') ||
' My Linux Server';
"server string = $server_string";
}
---------------