Solaris CIFS Administration Guide

ProcedureHow to Mount a CIFS Share on a Directory You Own

Note –

If you own the directory on which you want to mount a share, you can perform the mount operation yourself. If you do not own the directory, you must perform the mount operation as the owner of the directory or as superuser.

  1. 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
  2. Find the share that you want to mount from a server.

    $ smbutil view //server
  3. Enter your password at the prompt.

  4. Perform the mount on your directory.

    $ mount -F smbfs //[workgroup;][user[:password]@]server/share mount-point

    For example, to mount the /tmp share from the solarsystem server on the /mnt mount point, type:

    $ mount -F smbfs //solarsystem/tmp /mnt