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

Mark Nienberg gmane at tippingmar.com
Sat Aug 29 15:24:20 MDT 2009


Avinash Rao wrote:
> 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

I don't think that will work.  The Power Users group is local to the 
computer.

See the bottom of this page:

http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/groupmapping.html

Mark



More information about the samba mailing list