rpcclient |
This is a program for issuing administrative commands that are implemented using Microsoft RPCs. It provides access to the RPCs that Windows administrative GUIs use for system management. The rpcclient command is mainly for use by advanced users who understand the RPCs. More information on these can be found in Microsoft's Platform Software Development Kit (SDK), available for download from the Microsoft web site at http://www.microsoft.com.
You can run a single rpcclient command by using the -c command string option, or interactively with rpcclient prompting for commands.
rpcclient server [options]
Specifies a file from which to read the authentication values used in the connection. The format of the file is as follows :
username = value password = value domain = value
This option is used to avoid password prompts or to have the password appear in plain text inside scripts. The permissions on the file should be very restrictive (0600, for example) to prevent access from unwanted users.
Executes a sequence of semicolon-separated commands. Commands are listed in the following section.
Sets the debug (sometimes called logging) level. The level can range from 0 to 10. Specifying the value on the command line overrides the value specified in the smb.conf file. Debug level 0 logs only the most important messages; level 1 is normal; levels 3 and above are primarily for debugging and slow the program considerably.
Prints a summary of options.
Sets the filename for log/debug files. The extension .client is appended to the filename.
Does not prompt for a password. This is used when Samba is configured for share-mode security and a service with no password is being accessed.
Specifies the location of the Samba configuration file, which by default is usually /usr/local/samba/lib/smb.conf .
Sets the SMB username or username and password to use. Be careful when specifying the password with % password ; this is a major security risk. If % password is not specified, the user will be prompted for the password, which will not be echoed . Normally the user is set from the USER or LOGNAME environment variable. The -U option by itself means to use the guest account. See also -A .
Sets the domain, overriding the workgroup parameter in the Samba configuration file. If the domain is the server's NetBIOS name , it causes the client to log on using the server's local SAM database rather than the SAM of the domain.