This solution requires the creation of a custom template fragment for the Samba configuration file, smb.conf.
1. Terminal into your SME server and login as root.
2. [root@sme5 /root]# pico /etc/e-smith/templates-custom/etc/smb.conf/11domainAdminGroup.
3. Paste, or type, the following into the 11domainAdminGroup text document. Don't forget the leading and trailing braces!!
{
# ------------------
# 11domainAdminGroup
# ------------------
# This parameter is intended as a temporary solution to enable
# users to be a member of the "Domain Admins" group when a Samba
# host is acting as a PDC. A complete solution will be provided
# by a system for mapping Windows NT/2000 groups onto UNIX groups.
# Please note that this parameter has a somewhat confusing name.
# It accepts a list of usernames and of group names in standard
# smb.conf notation.
return "" unless ($SambaDomainMaster eq "yes");
local %services = ( smb => $smb );
my $default = "admin";
my $smbDomainAdminGroup = db_get_prop(\%services, "smb", "DomainAdminGroup") || $default;
"domain admin group = \@$smbDomainAdminGroup";
}
4. Set the "domain admin group" in the configuration:
[root@sme5 /root]# /sbin/e-smith/config setprop smb DomainAdminGroup admin
-- or --
[root@sme5 /root]# /sbin/e-smith/config setprop smb DomainAdminGroup shared
5. Expand the template:
[root@sme5 /root]# /sbin/e-smith/expand-template /etc/smb.conf
6. Restart samba:
[root@sme5r /root]# /etc/rc.d/init.d/smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
Users will need to log-off client machines and re-log in for these changes to take effect.