[Samba] Running a login script

Gareth Cummings gareth.cummings at globoforce.com
Thu Mar 20 09:58:46 GMT 2008


I found the following link very good when setting up my domain

http://us1.samba.org/samba/docs/man/Samba-Guide/small.htm

Mike Stewart wrote:
> Thanks Charles,
>
> I think you're right, what I'm trying to accomplish is probably better/easier with a Domain Controller.  However, I'm surely brain-dead as I've tried to set the box up as a Domain Controller and although my Windows machine will login in to the domain it still won't run the script so I think I must be missing something.  Domain Controllers are a completely new thing to me so it's no surprise I'm struggling :-(
>
> If anyone has a simple example smb.conf file that does all this and any other hints I'd much appreciate it.
>
> Regards
>
> Mike... struggling, exhausted, frustrated.... 
>
>
> ----- Original Message -----
> From: "Charles Marcus" <CMarcus at Media-Brokers.com>
> To: samba at lists.samba.org
> Sent: 19 March 2008 20:26:47 o'clock (GMT) Europe/London
> Subject: Re: [Samba] Running a login script
>
> On 3/19/2008, Mike Stewart (mike at powys-training.co.uk) wrote:
>   
>> I had assumed that the smb.conf entry for "logon script = %U.bat" was 
>> all that would be needed and would pick up the user's name and 
>> password as they logged into the server (through a desktop shortcut) 
>> and run that script which would map the required drives etc.
>>
>> Basically what we want is to set up all our Win2000 PCs to log into 
>> windows as a generic staff member then when they click on the desktop 
>> shortcut they are prompted for their server username & password 
>> and... hey presto all their network drives appear in My Computer.
>>     
>
> I'm trying real hard to understand why you wouldn't just set the server 
> up as a proper domain controller... it makes stuff like this brain-dead 
> easy...
>
>   


More information about the samba mailing list