DESCRIPTION
The
mount utility attaches a named resource,
resource, to the file system hierarchy at the path name location,
mount-point, which must already exist.
The
mount utility attaches a named resource,
resource, to the file system hierarchy at the path name location,
mount-point, which must already exist.
If
mount-point has any contents prior to the
mount operation, those contents remain hidden until the resource is unmounted. An authorized user with the
SYS_MOUNT privilege can perform a
mount operation. Also, a user can perform SMBFS mount operations on a directory the user owns.
If the resource is listed in the
/etc/vfstab file, you can specify either
resource or
mount-point as the
mount command will consult the
/etc/vfstab file for more information. If the
-F option is omitted,
mount takes the file system type from the entry in the
/etc/vfstab file.
If the resource is not listed in the
/etc/vfstab file, the command line must specify both
resource and
mount-point.
The
umount utility detaches a mounted file system from the file system hierarchy. An authorized user with the
SYS_MOUNT privilege can perform a
umount operation. Also, a user can perform SMBFS unmount operations on a directory the user owns.
The
network/smb/client service must be enabled to successfully mount an SMB share. This service is enabled, by default.
To enable the service, enter the following
svcadm(1M) command:
# svcadm enable network/smb/client
Operands
The
mount command supports the following operands:
-
resource
//
[workgroup;][user[:password]@]server/share
-
The name of the resource to be mounted. In addition to its name, you can specify the following information about the resource:
-
mount-point
-
The path to the location where the file system is to be mounted or unmounted. The mount command maintains a table of mounted file systems in the /etc/mnttab file. See the mnttab(4) man page.
NOTES
The SMB client always attempts to use
gethostbyname(3NSL) to resolve host names. If the host name cannot be resolved, the SMB client uses NetBIOS name resolution (NBNS). By default, the SMB client permits the use of NBNS to enable SMB 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.
If the directory on which a file system is to be mounted is a symbolic link, the file system is mounted on the directory to which the symbolic link refers, rather than being mounted on top of the symbolic link itself.