Elevation is a problem. I have not figured this out. I have gone into local users control on my boxes to give permissions to domain\user. I need to work on the Samba list what is needed. You might want to join the Samba mailing list and help me work through this.
I think I figured this out, but it took a lot of reading through the Samba HOWTO
Chapter 12: Group Mapping
Basically, you need to create unix user groups (I have Sysadmin and users) and then map them to the Samba "Domain Admins" and "Domain Users" groups respectively using this shell command:
Code: Select all
net groupmap add ntgroup="Domain Admins" unixgroup=Sysadmin rid=512 type=d
and for users:
Code: Select all
net groupmap add ntgroup="Domain Users" unixgroup=users rid=513 type=d
UAC elevation should work if you enter a user that is in the "Domain Admins" group. I think it worked immediately, without restarting the Windows 7 client or even logging out. If your prefer your ordinary users to be set as Administrators on Windows 7, you can add the unix users group to the "Domain Admins" like this:
Code: Select all
net groupmap add ntgroup="Domain Admins" unixgroup=users rid=512 type=d
You can verify any group mappings like this:
I'm not sure if the Samba group mappings automatically update if you add a unix user or move an ordinary user into the Sysadmin group. I haven't tested it yet.
By the way, if any PDC-related people are reading this thread, I found nothing on the forums or wiki to help me with this. It seems to be a basic standard issue that should be done automatically in a script; ie users with Admin rights in the Amahi control panel should be automatically added to the "Domain Admins" group, as this seems to be the standard behavior for Samba. I don't know how to do this so I'd appreciate the help.