When you install MS Windows NT4/200x on a computer, the installation
program creates default users and groups, notably the Administrators group,
and gives that group privileges necessary to perform essential system tasks,
such as the ability to change the date and time or to kill (or close) any process running on the
local machine.
The Administrator user is a member of the Administrators group, and thus inherits
Administrators group privileges. If a joe user is created to be a member of the
Administrators group, joe has exactly the same rights as the user
Administrator .
When an MS Windows NT4/200x/XP machine is made a domain member, the “Domain Admins” group of the
PDC is added to the local Administrators group of the workstation. Every member of the
Domain Admins group inherits the rights of the local Administrators group when
logging on the workstation.
The following steps describe how to make Samba PDC users members of the Domain Admins group.
-
Create a UNIX group (usually in /etc/group ); let's call it domadm .
-
Add to this group the users that must be “Administrators”. For example,
if you want joe, john , and mary to be administrators,
your entry in /etc/group will look like this:
domadm:x:502:joe,john,mary
-
Map this domadm group to the “Domain Admins” group by running the command:
root#
net groupmap add ntgroup="Domain Admins" unixgroup=domadm
The quotes around “Domain Admins” are necessary due to the space in the group name.
Also make sure to leave no white space surrounding the equal character (=).
Now joe, john , and mary are domain administrators.
It is possible to map any arbitrary UNIX group to any Windows NT4/200x group as well as
to make any UNIX group a Windows domain group. For example, if you wanted to include a
UNIX group (e.g., acct) in an ACL on a local file or printer on a Domain Member machine,
you would flag that group as a domain group by running the following on the Samba PDC:
root#
net groupmap add rid=1000 ntgroup="Accounting" unixgroup=acct
The ntgroup value must be in quotes if it contains space characters to prevent
the space from being interpreted as a command delimiter.
Be aware that the RID parameter is an unsigned 32-bit integer that should
normally start at 1000. However, this RID must not overlap with any RID assigned
to a user. Verification for this is done differently depending on the passdb backend
you are using. Future versions of the tools may perform the verification automatically,
but for now the burden is on you.
|