Contenida dentro deEncontrar más documentaciónRecursos de soporte técnico destacados de | Descargar este libro en PDF (6904 KB)
smbutil(1)Name | Synopsis | Description | Options | Examples | Files | Attributes | See Also | Authors | Notes Name
Synopsis/usr/bin/smbutil crypt /usr/bin/smbutil login [-c] [[domain/]user] /usr/bin/smbutil login [-c] [user[@domain]] /usr/bin/smbutil logout [[domain/]user] /usr/bin/smbutil logout [user[@domain]] /usr/bin/smbutil logout -a /usr/bin/smbutil logoutall /usr/bin/smbutil lookup name /usr/bin/smbutil status server /usr/bin/smbutil view [-A | -U user] //[domain;][user[:password]@]server /usr/bin/smbutil [-?dv] Description
The smbutil command controls the Solaris CIFS client and issues various commands. SubcommandsThe smbutil command supports the following subcommands: Options
The following global options are supported: ExamplesExample 1 Creating a Password Hash for the $HOME/.nsmbrc FileThe following example shows how to use the smbutil crypt command to create a hash of the password you specify. Then, you can use the hash as the value for the $HOME/.nsmbrc file. Be sure to escape the two dollar-sign prefix of the hashed password if you store it as a value of the password property.
The following $HOME/.nsmbrc file fragment shows how the password hash value is set:
Example 2 Storing a Password for a CIFS ServerThe following example shows how to use the smbutil login command to store the root@example user's password.
Example 3 Erasing the Stored PasswordThe following example shows how to use the smbutil logout command to remove the root@example user's password.
Example 4 Viewing Available SharesThe following example shows how to use the smbutil view command to see the available shares for user root on server example.
Example 5 Viewing Available Shares as an Anonymous UserThe following example shows how to use the smbutil view command to anonymously view the available shares on the example server.
Example 6 Obtaining the IP Address From a Server NameThe following example shows how to use the smbutil lookup command to obtain the IP address of the example server.
Example 7 Obtaining the NetBIOS Domain and System Name Using the Server NameThe following example shows how to use the smbutil status command to obtain the NetBIOS domain and system name of the example server. The server name, example, is specified on the command line.
Example 8 Obtaining the NetBIOS Domain and System Name Using the IP AddressThe following example shows how to use the smbutil status command to obtain the NetBIOS domain and system name of the example server. The IP address, 192.168.168.210, is specified on the command line.
Files
AttributesSee attributes(5) for descriptions of the following attributes:
The output is Uncommitted. The rest of the interface is Committed. See AlsoAuthorsThis manual page contains material originally authored by Boris Popov, bp@butya.kz, bp@FreeBSD.org. NotesThe Solaris CIFS client always attempts to use gethostbyname() to resolve host names. If the host name cannot be resolved, the CIFS client uses NetBIOS name resolution (NBNS). By default, the Solaris CIFS client permits the use of NBNS to enable Solaris CIFS clients in Windows environments to work without additional configuration. Since NBNS has been exploited in the past, you might want to disable it. To disable NBNS, set the nbns-enabled service management facility property to false. By default, nbns-enabled is set to true. Name | Synopsis | Description | Options | Examples | Files | Attributes | See Also | Authors | Notes |
|||||||||||||||