5.2 Using the Command Line to Manage CIFS

Command line utilities are available to control the CIFS services. The main activities for CIFS services are described in this section. For information about specific CIFS commands, see Section A.0, Command Line Utility for CIFS or enter man novcifs at the command prompt.

5.2.1 Starting CIFS

Use the rcnovell-cifs start command to start CIFS.

NOTE:If a Samba server is running, CIFS does not start. To resolve this problem see CIFS Is Not Running With Samba.

5.2.2 Stopping CIFS

Use the rcnovell-cifs stop command to stop CIFS.

5.2.3 Restarting CIFS

Use the rcnovell-cifs restart command to restart CIFS.

5.2.4 Modifying the CIFS Configuration

The configuration settings are taken directly from the CIFS iManager settings. The recommended method to modify CIFS configuration is using iManager. For details, see Section 5.1.3, Setting the CIFS Server and Authentication Properties.

Use the following steps to edit the CIFS configuration from command line:

  1. Use any text editor to open the cifs.conf file from /etc/opt/novell/cifs/ directory.

    IMPORTANT:It is recommended to not change the default settings in this file.

  2. Use the following information to change the configuration:

    • In the AUTHENT section, set the mode to either local or domain. Local is preferred. For example, -AUTHENT local.

      IMPORTANT:A domain mode is a third-party domain. For this mode, a Windows domain controller performs user authentication. A local mode is an eDirectory mode. For this mode, the server running CIFS services performs the user authentication.

    • In the COMMENT section, specify an appropriate user comment to associate with the sharepoint.

    • In the DOMAIN / WORKGROUP section, set the domain to use.

      IMPORTANT:For third-party domains, specify the domain name. For the local option, set the workgroup.

    • Leave the OPLOCKS [yes/no] set to yes.

    • Leave the UNICODE [yes/no] set to yes.

    • In the -PDC [PDC_NAME] [PDC_IP_ADDR] section, specify the PDC name and IP address.

    • In the -WINS [WINS_IP_ADDR] section, specify the WINS IP address. Set this if the PDC and the server running CIFS are on different subnets.

    • In the -SUBNET [subnet] section, specify the subnet value, if required.

  3. Restart the CIFS server by using the rcnovell-cifs restart command for the configuration changes to take effect.

5.2.5 Anonymous Log In for CIFS

Anonymous log in for CIFS can be used to map to the CIFS share without a username and password. The anonymous configuration is set at the server level and hence the anonymous login settings are effected on all CIFS shares on the server.

Setting Anonymous Login

To set anonymous login, use the following command:

novcifs -e [yes/no]

The CIFS connections logged in as an anonymous user gets privileges on the NSS volumes assigned to the Public trustee. The Public trustee rights can be set on any folder in an NSS volume using Novell Client. For more information, see Novell Client for Linux Documentation

If you don’t have Novell Client installed, you can use iManager to add Public trsutee rights. For more information, see Viewing, Adding, or Removing File System Trustees in the OES 2 SP3: File Systems Management Guide

Anonymous login in a Cluster Setup

In a cluster setup, anonymous login must be configured on every node and set to the same configuration level for consistent behavior across all shares.

This needs to be done for all the CIFS server parameters except for server name, server comment and shares.

WARNING:When you provide supervisor rights to public objects, it in turn allows access to all the secured folders. For security considerations, do not provide supervisor rights to the public objects as it allows access to all the secured folders.

5.2.6 Working with CIFS Shares

CIFS sharepoints can be added, removed, and displayed by using the command line interface or server console. CIFS shares cannot be added to virtual server object using command line (novcifs). If the shares are added on cluster resource using command line, then all the shares are lost if the resource leaves that node.

NOTE:Whenever a CIFS service is restarted on a node (node A) that hosts a cluster resource, the resource must be moved offline. It must then be available online or migrated to another node (node B), then brought back to the original node (node A) such that rebinding occurs.

You can view details about how CIFS shares are listed and configured by using any of the following commands at the server console or prompt:

To manage CIFS shares using iManager, see Section 5.1.4, Managing CIFS Shares.

To manage CIFS shares using console, see the following sections:

5.2.7 Configuring the CIFS Context Search File

The recommended method is to use iManager to configure the search context. For details, see Section 5.1.5, Configuring a CIFS User Context.