SAMBA-TOOL(8) | System Administration tools | SAMBA-TOOL(8) |
samba-tool - Main Samba administration tool.
samba-tool [-h] [-W myworkgroup] [-U user] [-d debuglevel] [--v]
This tool is part of the samba(7) suite.
-h|--help
--realm=REALM
--simple-bind-dn=DN
--password=PASSWORD
-U USERNAME|--username=USERNAME
-W WORKGROUP|--workgroup=WORKGROUP
-N|--no-pass
-k KERBEROS|--kerberos=KERBEROS
--ipaddress=IPADDRESS
-d|--debuglevel=level
The higher this value, the more detail will be logged to the log files about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 is a reasonable level for day-to-day running - it generates a small amount of information about operations carried out.
Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic.
Note that specifying this parameter here will override the log level parameter in the smb.conf file.
-V|--version
-s|--configfile=<configuration file>
-l|--log-basename=logdirectory
--option=<name>=<value>
Create a new computer in the Active Directory Domain.
The new computer name specified on the command is the sAMAccountName, with or without the trailing dollar sign.
--computerou=COMPUTEROU
--description=DESCRIPTION
--ip-address=IP_ADDRESS_LIST
--service-principal-name=SERVICE_PRINCIPAL_NAME_LIST
--prepare-oldjoin
Delete an existing computer account.
The computer name specified on the command is the sAMAccountName, with or without the trailing dollar sign.
List all computers.
This command moves a computer account into the specified organizational unit or container.
The computername specified on the command is the sAMAccountName, with or without the trailing dollar sign.
The name of the organizational unit or container can be specified as a full DN or without the domainDN component.
Display a computer AD object.
The computer name specified on the command is the sAMAccountName, with or without the trailing dollar sign.
--attributes=USER_ATTRS
Check the local AD database for errors.
Manage Delegations.
Add a service principal as msDS-AllowedToDelegateTo.
Delete a service principal as msDS-AllowedToDelegateTo.
Set/unset UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION (S4U2Proxy) for an account.
Set/unset UF_TRUSTED_FOR_DELEGATION for an account.
Show the delegation setting of an account.
Manage Domain Name Service (DNS).
Add a DNS record.
Delete a DNS record.
Query a name.
Query root hints.
Query server information.
Update a DNS record.
Create a zone.
Delete a zone.
Query zone information.
List zones.
Manage Domain.
Create or restore a backup of the domain.
Copy a running DC's current DB into a backup tar file.
Copy a running DC's DB to backup file, renaming the domain in the process.
Restore the domain's DB from a backup-file.
Upgrade from Samba classic (NT4-like) database to Samba AD DC database.
Promote an existing domain member or NT4 PDC to an AD DC.
Demote ourselves from the role of domain controller.
Dumps Kerberos keys of the domain into a keytab.
Print basic info about a domain and the specified DC.
Join a domain as either member or backup domain controller.
Show/raise domain and forest function levels.
Show/set password settings.
Manage fine-grained Password Settings Objects (PSOs).
Applies a PSO's password policy to a user or group.
Creates a new Password Settings Object (PSO).
Deletes a Password Settings Object (PSO).
Lists all Password Settings Objects (PSOs).
Modifies a Password Settings Object (PSO).
Displays a Password Settings Object (PSO).
Displays the Password Settings that apply to a user.
Updates a PSO to no longer apply to a user or group.
Promote an existing domain member or NT4 PDC to an AD DC.
Domain and forest trust management.
Create a domain or forest trust.
Delete a domain trust.
List domain trusts.
Manage forest trust namespaces.
Show trusted domain details.
Validate a domain trust.
Manage Directory Replication Services (DRS).
Show DRS capabilities of a server.
Trigger knowledge consistency center run.
Query or change options for NTDS Settings object of a domain controller.
Replicate a naming context between two DCs.
Show replication status. The [--json] option results in JSON output, and with the [--summary] option produces very little output when the replication status seems healthy.
Administer DS ACLs
Modify access list on a directory object.
Manage Forest configuration.
Manage directory_service behaviour for the forest.
Modify dsheuristics directory_service configuration for the forest.
Show current directory_service configuration for the forest.
Manage Flexible Single Master Operations (FSMO).
Seize the role.
Show the roles.
Transfer the role.
Manage Group Policy Objects (GPO).
Create an empty GPO.
Delete GPO.
Delete GPO link from a container.
Download a GPO.
Get inheritance flag for a container.
List GPO Links for a container.
List GPOs for an account.
List all GPOs.
List all linked containers for a GPO.
Set inheritance flag on a container.
Add or Update a GPO link to a container.
Show information for a GPO.
Manage groups.
Create a new AD group.
Add members to an AD group.
Delete an AD group.
List all groups.
List all members of the specified AD group.
This command moves a group into the specified organizational unit or container.
The groupname specified on the command is the sAMAccountName.
The name of the organizational unit or container can be specified as a full DN or without the domainDN component.
Remove members from the specified AD group.
Show group object and it's attributes.
Compare two LDAP databases.
Manage NT ACLs.
Get ACLs on a file.
Set ACLs on a file.
Check sysvol ACLs match defaults (including correct ACLs on GPOs).
Reset sysvol ACLs to defaults (including correct ACLs on GPOs).
Create an organizational unit.
The name of the organizational unit can be specified as a full DN or without the domainDN component.
--description=DESCRIPTION
Delete an organizational unit.
The name of the organizational unit can be specified as a full DN or without the domainDN component.
--force-subtree-delete
List all organizational units.
--full-dn
List all objects in an organizational unit.
The name of the organizational unit can be specified as a full DN or without the domainDN component.
--full-dn
-r|--recursive
Move an organizational unit.
The name of the organizational units can be specified as a full DN or without the domainDN component.
Rename an organizational unit.
The name of the organizational units can be specified as a full DN or without the domainDN component.
Manage Read-Only Domain Controller (RODC).
Preload one account for an RODC.
Manage and query schema.
Modify the behaviour of an attribute in schema.
Display an attribute schema definition.
Show objectclasses that MAY or MUST contain this attribute.
Display an objectclass schema definition.
Manage sites.
Create a new site.
Delete an existing site.
Manage Service Principal Names (SPN).
Create a new SPN.
Delete an existing SPN.
List SPNs of a given user.
Check the syntax of the configuration file.
Retrieve the time on a server.
Manage users.
Create a new user. Please note that this subcommand is deprecated and available for compatibility reasons only. Please use samba-tool user create instead.
Create a new user in the Active Directory Domain.
Delete an existing user account.
Disable an user account.
Enable an user account.
List all users.
Display a user AD object.
--attributes=USER_ATTRS
This command moves a user account into the specified organizational unit or container.
The username specified on the command is the sAMAccountName.
The name of the organizational unit or container can be specified as a full DN or without the domainDN component.
Change password for an user account (the one provided in authentication).
Set the expiration of an user account.
Sets or resets the password of an user account.
Gets the password of an user account.
Syncs the passwords of all user accounts, using an optional script.
Note that this command should run on a single domain controller only (typically the PDC-emulator).
Join and synchronise a remote AD domain to the local server. Please note that samba-tool vampire is deprecated, please use samba-tool domain join instead.
Produce graphical representations of Samba network state. To work out what is happening in a replication graph, it is sometimes helpful to use visualisations.
There are two subcommands, two graphical modes, and (roughly) two modes of operation with respect to the location of authority.
samba-tool visualize ntdsconn
samba-tool visualize reps
samba-tool visualize uptodateness
--distance
--dot
--xdot
-r
Gives usage information.
This man page is complete for version 4.9.5-Debian of the Samba suite.
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.
02/03/2022 | Samba 4.9.5-Debian |