How to Mount a CIFS Share

Note - If you own the directory on which you want to mount a CIFS 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.

  2. If the service is disabled, enable it by typing the following command:
    $ svcadm enable network/smb/client
    
  3. Find the share that you want to mount from a server.
    $ smbutil view //solarsystem
    
  4. Type your password at the prompt.
  5. Perform the mount on your directory.
    To mount the /tmp share from the solarsystem server on the /mnt mount point, type:
    $ mount -F smbfs //solarsystem/tmp /mnt
    

For more information:

Labels

osoladmin osoladmin Delete
task task Delete
filesystem filesystem Delete
cifs cifs Delete
accessing accessing Delete
smallsiteadmin smallsiteadmin Delete
singleadmin singleadmin Delete
sundoc sundoc Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact