Koozali.org: home of the SME Server

how to map to users home drive

d

how to map to users home drive
« 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.

Graham

Re: how to map to users home drive
« Reply #1 on: May 31, 2002, 03:30:38 AM »
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";
}

---------------

Graham

Re: how to map to users home drive
« Reply #2 on: May 31, 2002, 03:33:14 AM »
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

Andy Parkinson

Re: how to map to users home drive
« Reply #3 on: June 01, 2002, 02:49:29 AM »
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.

Lloyd Keen

Re: how to map to users home drive
« Reply #4 on: June 02, 2002, 02:04:46 AM »
Make sure that you turn on roaming profiles as well in the e-smith manager under workgroup I think.