If you want to make a share available to one or more users on a system, you can mount the share on a mount point anywhere on the system. When you mount a share as superuser, you do not need to own the mount point.
Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services. To configure a role with the Primary Administrator profile, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.
Verify that the network/smb/client service is enabled.
# svcs network/smb/client STATE STIME FMRI online 19:24:36 svc:/network/smb/client:default |
This service is enabled by default, so the usual state for the service is online. To enable the service, type the following command:
# svcadm enable network/smb/client |
Find the share that you want to mount from a server.
# smbutil view //server |
Specify the password at the prompt.
Determine the mount point that you want to use.
For example, you decide to mount shares on the /sales-tools mount point.
Perform the mount.
# mount -F smbfs //[workgroup;][user[:password]@]server/share mount-point |
For example, to mount the /tmp share from the solarsystem server on the /sales-tools mount point, type:
# mount -F smbfs //solarsystem/tmp /sales-tools |