[Samba] monitor domain logons

Alex Crow acrow at integrafin.co.uk
Thu Aug 27 15:06:37 MDT 2009


> Alex,
> 
> I have been trying to use "root preexec" to add domain users to Power
> users group on the local workstation, it never works..
> http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetCommand.html#autopoweruserscript
> 
> Have you used this??
> 
> thanks
> Avinash

We do this by setting up a scheduled task (as SYSTEM) which will run a
batch file from a netlogon share on one of the dc's. The batch file does
all of the stuff using windows commands.

We have something in the logon script that if you are a local admin, it
will set up that scheduled task, thus, when we set up a new PC, we log
it on as root once, and the scheduled task will forevermore do what we
want it to do as the SYSTEM user on each local box.

If you need more details I can give you example logon.bat and what we
call "root.bat" files.

Cheers

Alex
-- 
This message is intended only for the addressee and may contain 
confidential information.  Unless you are that person, you may not 
disclose its contents or use it in any way and are requested to delete 
the message along with any attachments and notify us immediately. 

"Transact" is operated by Integrated Financial Arrangements plc 
Domain House, 5-7 Singer Street, London  EC2A 4BQ 
Tel: (020) 7608 4900 Fax: (020) 7608 1200
(Registered office: as above; Registered in England and Wales under
number: 3727592) 
Authorised and regulated by the Financial Services Authority (entered on
the FSA Register; number: 190856)




More information about the samba mailing list