[Samba] Script to Auto-add Domain Users to Workstation Power Users Group doesn't work

Avinash Rao avinash.aol at gmail.com
Thu Aug 20 01:47:46 MDT 2009


Ubuntu 8.04 Server 64-bit Edition
Samba 3.0.28a configured as PDC
WinXP - SP2 clients

I am following the instructions in
http://www.samba.org/samba/docs/man/...#magicnetlogon to add domain
users to the winxp clients Power Users group.

Code: autopoweruser.sh

#!/bin/bash

/usr/bin/net rpc group addmem "Power Users" "DOMAIN_NAME\$1" \
                   -UAdministrator%secret -S $2

exit 0

[netlogon]
comment = Netlogon Share
path = /export/samba/logon
root preexec = /etc/samba/scripts/autopoweruser.sh %U %m
read only = Yes
guest ok = Yes

But nothing happens when users login? how can i make this work?

Can anybody help
Avinash


More information about the samba mailing list