[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Samba and Win95/98 drive mounts
>Hello. I have a small question. One great service Novell did was to run a
>server script that worked with the client to mount the proper shares on the
>proper drives. E.g., "'David' on \\CARES\SYS\USERS"--the benefit of this
>two-part script being that a small config script was kept on the server and
>all users always had their proper shares mounted no matter which machine
>they used.
>Is there a Win-equivalent? A script which will read a config file off
>\\cares\commondir with 'if group == ADMIN then mount HOME on Z:'?
Yes, Samba/windows supports logon scripts. If [netlogon] share is /usr/local/samba/netlogon and you set "logon script=scripts/%G.bat" in the [global] section of the samba config, then whenever a client logs in the M$-DOS batch file in /usr/locla/samba/netlogon/scripts/%G.bat will be executed ON THE CLIENT. %G is a substitution for the users primary group, %U for the users name, or %M for the client machine name. Substitution lets you have diffrent scripts for diffrent people (I like %G, %U is too much work). The M$-DOS batch file must be in DOS CR/LF format so you should create them in Notepad or some similair M$-DOS editor.