[Samba] Login Script Problem

Peter Atkin peter at computer-facilities.com
Tue Jul 29 14:44:56 GMT 2003


Hi Daniel, yep been the done that and got lost.... so hears a hand..

you can change the logon script = logon.bat if you do not need individual logon setups.

        # The following two lines disable roaming profiles for windows clients
        # to enable put in the logon home and path
        logon path =
        logon home =

        # Assign users there logon home drive and unique script
        # %U session  user  name  (the  user name that the client wanted, not
        # necessarily the same as the one they got).
        # %u user name of the current service, if any. e.g the user logon name
        # %H  the home directory of the user given by %u.
        logon drive = H:
        logon home = "\\Nas_server\User\%u"
        logon script = "%u.bat"

Here a sample logon batch file called "logon.bat"

        net use t: /delete /y
        net use s: /delete /y

        net use t: \\Nas_server\download
        net use s: \\Nas_server\source

        net time \\linuxserver /set /y


Hope it helps


From: Daniel Berg <darobe at mchsi.com>
To: samba at lists.samba.org
Date: 29/07/2003 06:40 AM
Subject: [Samba] Login Script Problem

I'm trying to have a login script run on my system. But unfortunately I
don't know how to do this. I have tried to set it up with the netlogon
share and setting the logon script to login.bat but it doesn't execute
whenever I login. 

I'm not sure what to do.

I know I am being pretty vague here but I don't know what information is
pertinent and what isn't.

Thanks,

Dan


                                                    Oooo
       (O O)                                        (   ) Oooo 
--oooO--(_)--Oooo------------------------------------\ (-(   )--
                       COMPUTER FACILITIES            \_) ) /
---------------------------------------------------------(_/----
Postal Address  Delivery Address     Contacts
----------------------------------------------------------------
P.O.Box 21558  61 Bukoto Street  support at computer-facilities.com
Kampala        Kamwokya   
Uganda         Kampala           Tel 256-(0)41-533784
East Africa    Uganda            Fax 256-(0)41-540380
               East Africa       e-Fax 1-206-350-3375 (USA)
----------------------------------------------------------------




More information about the samba mailing list