From 7bbe980e76ad4fc4d3a2bf7931a6908e555f0e52 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Thu, 23 Jun 2005 02:52:37 +0000 Subject: Updates. (This used to be commit 7ed54f8ef2854421dec90da2420b727ae7cc09f7) --- docs/Samba3-HOWTO/TOSHARG-RightsAndPriviliges.xml | 272 +++++++++++++++++++--- 1 file changed, 243 insertions(+), 29 deletions(-) (limited to 'docs/Samba3-HOWTO') diff --git a/docs/Samba3-HOWTO/TOSHARG-RightsAndPriviliges.xml b/docs/Samba3-HOWTO/TOSHARG-RightsAndPriviliges.xml index fec78b2ade..50e421f806 100644 --- a/docs/Samba3-HOWTO/TOSHARG-RightsAndPriviliges.xml +++ b/docs/Samba3-HOWTO/TOSHARG-RightsAndPriviliges.xml @@ -9,6 +9,10 @@ User Rights and Privileges +Windows user +Windows group +machine accounts +ADS The administration of Windows user, group, and machine accounts in the Samba domain-controlled network necessitates interfacing between the MS Windows networking environment and the UNIX operating system environment. The right @@ -18,6 +22,10 @@ Active Directory domains. +Windows NT4/2kX/XPPro +machine account +trusted +user logons The addition of Windows NT4/2kX/XPPro machines to the domain necessitates the creation of a machine account for each machine added. The machine account is a necessity that is used to validate that the machine can be trusted to permit @@ -25,23 +33,54 @@ user logons. +user accounts +special account +account name +/bin/false +/dev/null +man-in-the-middle Machine accounts are analogous to user accounts, and thus in implementing them on a UNIX machine that is -hosting Samba (i.e., on which Samba is running) it is necessary to create a special type of user account. -Machine accounts differ from a normal user account in that the account name (login ID) is terminated with a +hosting Samba (i.e., on which Samba is running), it is necessary to create a special type of user account. +Machine accounts differ from normal user accounts in that the account name (login ID) is terminated with a $ sign. An additional difference is that this type of account should not ever be able to log into the UNIX environment as a system user and therefore is set to have a shell of -/bin/false and a home directory of /dev/null. +/bin/false and a home directory of /dev/null. The machine +account is used only to authenticate domain member machines during start-up. This security measure +is designed to block man-in-the-middle attempts to violate network integrity. + +computer accounts +domain member servers +domain controller +credentials +secure authentication +Machine (computer) accounts are used in the Windows NT OS family to store security +credentials for domain member servers and workstations. When the domain member +starts up it goes through a validation process that includes an exchange of +credentials with a domain controller. If the domain member fails to authenticate +using the credentials known for it by domain controllers the machine will be refused +all access by domain users. The computer account is essential to the way that MS +Windows does secure authentication. + + +UNIX system accounts +system administrator +root +UID The creation of UNIX system accounts has traditionally been the sole right of the system administrator, better known as the root account. It is possible in the UNIX environment to create multiple users who have the same UID. Any UNIX user who has a UID=0 is inherently the same as the -root account. +root account user. +system interface scripts +CIFS function calls +root account +UNIX host system All versions of Samba call system interface scripts that permit CIFS function calls that are used to manage users, groups, and machine accounts in the UNIX environment. All versions of Samba up to and including version 3.0.10 @@ -57,6 +96,10 @@ access to the UNIX host system. Rights Management Capabilities +Windows privilege model +privilege model +rights assigned +SID Samba 3.0.11 introduced support for the Windows privilege model. This model allows certain rights to be assigned to a user or group SID. In order to enable this feature, yes @@ -64,10 +107,19 @@ must be defined in the section of the &smb.conf; +rights +privileges +manage privileges Currently, the rights supported in Samba-3 are listed in . The remainder of this chapter explains how to manage and use these privileges on Samba servers. +SeMachineAccountPrivilege +SePrintOperatorPrivilege +SeAddUsersPrivilege +SeRemoteShutdownPrivilege +SeDiskOperatorPrivilege +SeTakeOwnershipPrivilege Current Privilege Capabilities @@ -100,6 +152,7 @@ The remainder of this chapter explains how to manage and use these privileges on SeDiskOperatorPrivilege Manage disk share + SeTakeOwnershipPrivilege Take ownership of files or other objects - +
@@ -120,6 +174,11 @@ The remainder of this chapter explains how to manage and use these privileges on Using the <quote>net rpc rights</quote> Utility +managing rights +rights assigned +NT4 User Manager for Domains +command-line utility +administrative actions There are two primary means of managing the rights assigned to users and groups on a Samba server. The NT4 User Manager for Domains may be used from any Windows NT4, 2000, or XP Professional domain member client to @@ -136,6 +195,10 @@ The net rpc rights utility in Samba 3.0.11 has three new subc list [name|accounts] +netrpclist +available rights +privileges assigned +privileged accounts When called with no arguments, net rpc list simply lists the available rights on the server. When passed a specific user or group name, the tool lists the privileges @@ -148,6 +211,10 @@ The net rpc rights utility in Samba 3.0.11 has three new subc grant <user> <right [right ...]> +assign rights +grant rights +add client machines +user or group When called with no arguments, this function is used to assign a list of rights to a specified user or group. For example, to grant the members of the Domain Admins group on a Samba domain controller, @@ -155,6 +222,12 @@ The net rpc rights utility in Samba 3.0.11 has three new subc &rootprompt; net -S server -U domadmin rpc rights grant \ 'DOMAIN\Domain Admins' SeMachineAccountPrivilege + + The following syntax has the same result: +netrpcrights grant + +&rootprompt; net rpc rights grant 'DOMAIN\Domain Admins' \ + SeMachineAccountPrivilege -S server -U domadmin More than one privilege can be assigned by specifying a list of rights separated by spaces. The parameter 'Domain\Domain Admins' @@ -173,23 +246,28 @@ The net rpc rights utility in Samba 3.0.11 has three new subc -You must be connected as a member of the Domain Admins group to be able to -grant or revoke privileges assigned to an account. This capability is -inherent to the Domain Admins group and is not configurable. +member +Domain Admins +revoke privileges +You must be connected as a member of the Domain Admins group to be able to grant or revoke privileges assigned +to an account. This capability is inherent to the Domain Admins group and is not configurable. -By default, no privileges are initially assigned to any -account because certain actions will -be performed as root once smbd determines that a user has -the necessary rights. For example, when joining a client to -a Windows domain, the `add machine script' must be executed -with superuser rights in most cases. For this reason, you -should be very careful about handing out privileges to -accounts. +performed as root +necessary rights +add machine script + +By default, no privileges are initially assigned to any account because certain actions will be performed as +root once smbd determines that a user has the necessary rights. For example, when joining a client to a +Windows domain, the add machine script must be executed with superuser rights in most +cases. For this reason, you should be very careful about handing out privileges to accounts. +Access +root user +bypasses privilege Access as the root user (UID=0) bypasses all privilege checks. @@ -199,17 +277,22 @@ Access as the root user (UID=0) bypasses all privilege checks. Description of Privileges -The privileges that have been implemented in Samba-3.0.11 are shown below. -It is possible, and likely, that additional privileges may be implemented in -later releases of Samba. It is also likely that any privileges currently implemented -but not used may be removed from future releases, so it is important that -the successful as well as unsuccessful use of these facilities should be reported -on the Samba mailing lists. +privileges +additional privileges +house-keeping +The privileges that have been implemented in Samba-3.0.11 are shown below. It is possible, and likely, that +additional privileges may be implemented in later releases of Samba. It is also likely that any privileges +currently implemented but not used may be removed from future releases as a house-keeping matter, so it is +important that the successful as well as unsuccessful use of these facilities should be reported on the Samba +mailing lists. SeAddUsersPrivilege +SeAddUsersPrivilege +smbd +net rpc user add This right determines whether or not smbd will allow the user to create new user or group accounts via such tools as net rpc user add or @@ -219,6 +302,9 @@ on the Samba mailing lists. SeDiskOperatorPrivilege +SeDiskOperatorPrivilege +add/delete/change share +ACL Accounts that possess this right will be able to execute scripts defined by the add/delete/change share command in &smb.conf; file as root. Such users will @@ -229,15 +315,22 @@ on the Samba mailing lists. SeMachineAccountPrivilege - Controls whether or not the user can join client +SeMachineAccountPrivilege +right to join domain +join client + This right controls whether or not the user can join client machines to a Samba-controlled domain. SePrintOperatorPrivilege - This privilege operates identically to the - +SePrintOperatorPrivilege +privilege +global right +administrative rights +printers admin + This privilege operates identically to the option in the &smb.conf; file (see section 5 man page for &smb.conf;) except that it is a global right (not on a per-printer basis). Eventually the smb.conf option will be deprecated and administrative @@ -249,6 +342,9 @@ on the Samba mailing lists. SeRemoteShutdownPrivilege +SeRemoteShutdownPrivilege +rebooting server +aborting shutdown Samba provides two hooks for shutting down or rebooting the server and for aborting a previously issued shutdown command. Since this is an operation normally limited by @@ -257,6 +353,14 @@ on the Samba mailing lists. + SeTakeOwnershipPrivilege + +SeTakeOwnershipPrivilege +take ownership + This right permits users to take ownership of files and directories. + + + @@ -265,8 +369,86 @@ on the Samba mailing lists. Privileges Suppored by Windows 2000 Domain Controllers - For reference purposes, a Windows 2000 Domain Controller reports that it supports the following - privileges: + For reference purposes, a Windows NT4 Primary Domain Controller reports that is supports the following + prvileges: +SeCreateTokenPrivilege +SeAssignPrimaryTokenPrivilege +SeLockMemoryPrivilege +SeIncreaseQuotaPrivilege +SeMachineAccountPrivilege +SeTcbPrivilege +SeSecurityPrivilege +SeTakeOwnershipPrivilege +SeLoadDriverPrivilege +SeSystemProfilePrivilege +SeSystemtimePrivilege +SeProfileSingleProcessPrivilege +SeIncreaseBasePriorityPrivilege +SeCreatePagefilePrivilege +SeCreatePermanentPrivilege +SeBackupPrivilege +SeRestorePrivilege +SeShutdownPrivilege +SeDebugPrivilege +SeAuditPrivilege +SeSystemEnvironmentPrivilege +SeChangeNotifyPrivilege +SeRemoteShutdownPrivilege + + SeCreateTokenPrivilege Create a token object + SeAssignPrimaryTokenPrivilege Replace a process level token + SeLockMemoryPrivilege Lock pages in memory + SeIncreaseQuotaPrivilege Increase quotas + SeMachineAccountPrivilege Add workstations to domain + SeTcbPrivilege Act as part of the operating system + SeSecurityPrivilege Manage auditing and security log + SeTakeOwnershipPrivilege Take ownership of files or other objects + SeLoadDriverPrivilege Load and unload device drivers + SeSystemProfilePrivilege Profile system performance + SeSystemtimePrivilege Change the system time +SeProfileSingleProcessPrivilege Profile single process +SeIncreaseBasePriorityPrivilege Increase scheduling priority + SeCreatePagefilePrivilege Create a pagefile + SeCreatePermanentPrivilege Create permanent shared objects + SeBackupPrivilege Back up files and directories + SeRestorePrivilege Restore files and directories + SeShutdownPrivilege Shut down the system + SeDebugPrivilege Debug programs + SeAuditPrivilege Generate security audits + SeSystemEnvironmentPrivilege Modify firmware environment values + SeChangeNotifyPrivilege Bypass traverse checking + SeRemoteShutdownPrivilege Force shutdown from a remote system + + And Windows 200x/XP Domain Controllers and workstations reports supports the following privileges: +SeCreateTokenPrivilege +SeAssignPrimaryTokenPrivilege +SeLockMemoryPrivilege +SeIncreaseQuotaPrivilege +SeMachineAccountPrivilege +SeTcbPrivilege +SeSecurityPrivilege +SeTakeOwnershipPrivilege +SeLoadDriverPrivilege +SeSystemProfilePrivilege +SeSystemtimePrivilege +SeProfileSingleProcessPrivilege +SeIncreaseBasePriorityPrivilege +SeCreatePagefilePrivilege +SeCreatePermanentPrivilege +SeBackupPrivilege +SeRestorePrivilege +SeShutdownPrivilege +SeDebugPrivilege +SeAuditPrivilege +SeSystemEnvironmentPrivilege +SeChangeNotifyPrivilege +SeRemoteShutdownPrivilege +SeUndockPrivilege +SeSyncAgentPrivilege +SeEnableDelegationPrivilege +SeManageVolumePrivilege +SeImpersonatePrivilege +SeCreateGlobalPrivilege SeCreateTokenPrivilege Create a token object SeAssignPrimaryTokenPrivilege Replace a process level token @@ -299,6 +481,7 @@ SeIncreaseBasePriorityPrivilege Increase scheduling priority SeImpersonatePrivilege Impersonate a client after authentication SeCreateGlobalPrivilege Create global objects +equivalence The Samba Team are implementing only those privileges that are logical and useful in the UNIX/Linux envronment. Many of the Windows 200X/XP privileges have no direct equivalence in UNIX. @@ -311,7 +494,12 @@ SeIncreaseBasePriorityPrivilege Increase scheduling priority The Administrator Domain SID -Please note that every Windows NT4 and later server requires a domain Adminsitrator account. Samba version +domain Administrator +User Rights and Privileges +passdb backend +SID +net getlocalsid +Please note that every Windows NT4 and later server requires a domain Administrator account. Samba version commencing with 3.0.11 permit the Administrative duties to be performed via assigned rights and privileges (see User Rights and Privileges). An account in the server's passdb backend can be set to the domain SID of the default administrator account. To obtain the domain SID on a Samba domain @@ -320,20 +508,30 @@ controller, run the following command: &rootprompt; net getlocalsid SID for domain FOO is: S-1-5-21-4294955119-3368514841-2087710299 +RID You may assign the domain administrator RID to an account using the pdbedit command as shown here: +pdbedit &rootprompt; pdbedit -U S-1-5-21-4294955119-3368514841-2087710299-500 -u root -r +RID 500 +well known RID +rights and privileges +root account The RID 500 is the well known standard value of the default Administrator account. It is the RID that confers the rights and privileges that the Administrator account has on a Windows machine or domain. Under UNIX/Linux the equivalent is UID=0 (the root account). +without Administrator account +equivalent rights and privileges +Windows group account +3.0.11 Releases of Samba version 3.0.11 and later make it possible to operate without an Administrator account providing equivalent rights and privileges have been established for a Windows user or a Windows group account. @@ -348,6 +546,10 @@ group account. What Rights and Privileges Will Permit Windows Client Administration? +domain global +local group +administrative rights +Windows client When a Windows NT4 (or later) client joins a domain, the domain global Domain Admins group is added to the membership of the local Administrators group on the client. Any user who is a member of the domain global Domain Admins group will have administrative rights on the @@ -355,6 +557,11 @@ group account. +desirable solution +administrative rights and privileges +Power Users +domain global user +domain global group This is often not the most desirable solution because it means that the user will have administrative rights and privileges on domain servers also. The Power Users group on Windows client workstations permits local administration of the workstation alone. Any domain global user or domain global @@ -362,16 +569,23 @@ group account. +Nested Group Support +add domain users and groups to a local group +net +Windows workstation. See Nested Group Support for an example of how to add domain users and groups to a local group that is on a Windows workstation. The use of the net command permits this to be done from the Samba server. +cmd +cmd shell +netlocalgroup Another way this can be done is to log onto the Windows workstation as the user Administrator, then open a cmd shell, then execute: -c:\ net localgroup administrators /add domain_name\entity +&dosprompt; net localgroup administrators /add domain_name\entity where entity is either a domain user or a domain group account name. -- cgit