Solaris CIFS Administration Guide

ProcedureHow to Find Available CIFS Shares on a Known File Server

  1. Determine the server that you want to query about available shares.

    If you are not familiar with the CIFS file servers available in your domain, contact your system administrator. You might be able to use Network Neighborhood on Windows systems or the GNOME file browser to browse for available CIFS shares.

  2. List the available CIFS shares on a server.

    $ smbutil view [-A | -U user] //[domain;][user[:password]@]server

    //[domain;][user[:password]@]server is a resource name. user is the user name with which you connect to the CIFS server, server. You can optionally specify the domain name and the password of the user that you specified on the command line.

    The -A option enables you to view shares anonymously, and you are not prompted for a password. The -U user option indicates the user with which to authenticate on the specified server.

  3. When prompted, enter the password for the user that you specified on the CIFS server.

    If you specified the -A option to view shares anonymously, you are not prompted for a password.

    If you did not specify a user, enter the password associated with your user name.

  4. View the list of available CIFS shares.

    The smbutil view output shows the name of the share, its type, and an optional text description of the share.

    Most shares have a type of disk because the shares are files and directories. The other share types are as follows:

    • IPC Represents an interprocess communication (IPC) device, such as a pipe or a mailslot

    • printer Represents a printer queue

    • device Represents a communications device

    For example, the following command shows how to view the shares on the solarsystem server:

    $ smbutil view //cal@solarsystem
    Share        Type       Comment
    netlogon     disk       Network Logon Service
    ipc$         IPC        IPC Service (Samba Server)
    tmp          disk       Temporary file space
    public       disk       Public Stuff
    ethereal     disk
    root         disk       Home Directories
    6 shares listed from 6 available

    Note –

    The Solaris CIFS client does not support device shares.

    The following command enables you to anonymously view the shares on the solarsystem server:

    $ smbutil view -A //solarsystem