Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: d on May 31, 2002, 02:18:02 AM
-
I am setting up an e-smith file server and want to add a drive map statement into a login script on my NT PDC that will map the user's e-smith home directory each time he logs in. For a mapping directed at an NT server the command would be a simple: NET USE H: \HOME
Can someone tell me what is needed to map this directed at an E-Smith (Linux) server? Thank you.
-
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";
}
---------------
-
Sample netlogon
--snip--
@echo off
NET TIME \SERVER /SET /YES
NET USE H: /HOME
NET USE P: \SERVER\DATA\PUBLIC
NET USE U: \SERVER\HOGROUP
\SERVER\NETLOGON\WELCOME.EXE
EXIT
-
I had the problem of not being able to map users home drives using the net use h: /home statement and found that the problem disappeared once I upgraded Samba to 2.2.3 using the Howto.
-
Make sure that you turn on roaming profiles as well in the e-smith manager under workgroup I think.