Avinash Rao
2009-Aug-20 07:47 UTC
[Samba] Script to Auto-add Domain Users to Workstation Power Users Group doesn't work
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
Mark Nienberg
2009-Aug-29 21:24 UTC
[Samba] Script to Auto-add Domain Users to Workstation Power Users Group doesn't work
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 > AvinashI 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