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

Avinash Rao avinash.aol at gmail.com
Sun Aug 30 00:54:45 MDT 2009


On Sun, Aug 30, 2009 at 2:54 AM, Mark Nienberg <gmane at tippingmar.com> wrote:

> 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
>


The documentation Sounds contradicting. I was going through the
documentation in
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetCommand.html#autopoweruserscript

Anyways..


More information about the samba mailing list