|Skip Navigation Links|
|Exit Print View|
|Managing SMB File Sharing and Windows Interoperability in Oracle Solaris 11.1 Oracle Solaris 11.1 Information Library|
This section describes the SMB utilities and files that are used by the SMB server and client.
Note - The SMB service can only be run in the global zone.
With this command, you can attach a named SMB share to a specified mount point. The mount_smbfs command enables you to mount an SMB share to a directory you own without having to become superuser.
For more information, see the following:
Also, see the mount_smbfs(1M) man page.
The sharectl command is an administrative tool that enables you to configure and manage file-sharing protocols, such as SMB and NFS, and network protocols such as NetBIOS. You can use this command to do the following:
Set client and server operational properties
Display property values for a specific protocol
Obtain the status of a protocol
For procedures that use the sharectl command, see the following:
Also, see the sharectl(1M) man page.
The share command enables you to manage SMB shares on various file system types. See the share(1M) man page.
For information about SMB share properties, see the share_smb(1M) man page.
You can use the smbadm command to manage domain membership of the SMB server. You can have the SMB server use domain mode or workgroup mode. The smbadm command also enables you to configure SMB local groups. SMB local groups can be used when Windows accounts must be members of some local groups and when Windows-style privileges must be granted. Oracle Solaris local groups cannot provide this functionality. This command also includes subcommands that enable you to show Windows Server Service information locally on the server.
Use the smbadm command to perform the following SMB client tasks:
View the shares available for mounting from a particular SMB server
Generate a hash of a password for storing in a file
Create or remove persistent passwords used to authenticate to SMB servers
Resolve a name to an IP address for a server that uses SMB over NetBIOS, not TCP
Resolve the specified server to the NetBIOS workgroup and system name
For procedures that use the smbadm command, see the following:
Also, see the smbadm(1M) man page.
You can use the smbstat command to show statistical information about the smbd server. By default, the smbstat command shows general information about the SMB server as well as dispatched SMB request counters. For more information, see the smbstat(1M) man page.
The kstat command can be used to report on kernel SMB statistics on a periodic basis and also to specify information about individual SMB statistics. For more information, see the kstat(1M) man page.
With this command, you can remove a named SMB share from a mount point.
For more information, see How to Unmount an SMB Share From a Directory You Own, and the mount_smbfs(1M) man page.
The unshare command enables you to remove SMB shares from various file system types. See the unshare(1M) man page.
You can also use the zfs command to remove SMB shares from a ZFS file system. See How to Remove an SMB Share (zfs).
The zfs command enables you to create, modify, and remove SMB shares on ZFS file systems. See the zfs(1M) man page.
The smbd daemon and the svc:/network/smb/server service collaborate with the kernel to provide the SMB service. The smb/server service depends on the smb/client service.
The SMB service depends on the idmap service. For more information about the identity mapping service, see Chapter 2, Setting Up Identity Mapping Between Windows and Oracle Solaris Systems, and the idmap(1M) and idmapd(1M) man pages.
smbd is part of the svc:/network/smb/server:default service.
For more information, see the smbd(1M) man page.
Use the /etc/auto_direct file to automatically mount an SMB share when a user accesses the mount point. To use the automount feature, you must store a persistent password for authentication to mount the share. See How to Store an SMB Persistent Password.
For instructions and examples, see How to Add an Automounter Entry for an SMB Share.
The /etc/dfs/sharetab file contains a record of the active shares on the system. Each entry in the file describes a share, which includes the mount point, share name, protocol, and share properties. See the sharetab(4) and share_smb(1M) man pages.
The /etc/smbautohome file is used to define the automatic sharing rules to be applied when a user connects to the SMB server. For more information, see SMB Autohome Shares and the smbautohome(4) man page.