LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Script to Auto-add Domain Users to Workstation Power Users Group doesn't work (http://www.linuxquestions.org/questions/ubuntu-63/script-to-auto-add-domain-users-to-workstation-power-users-group-doesn%27t-work-749491/)

avinash.rao 08-22-2009 05:57 AM

Script to Auto-add Domain Users to Workstation Power Users Group doesn't work
 
Hi all,

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/....html#magicnet logon 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?

Can anybody help???
Avinash


All times are GMT -5. The time now is 03:13 AM.