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.
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.
Use the rcnovell-cifs stop command to stop CIFS.
Use the rcnovell-cifs restart command to restart CIFS.
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:
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.
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.
Restart the CIFS server by using the rcnovell-cifs restart command for the configuration changes to take effect.
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.
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 OES 2 SP3: File Systems Management Guide
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.
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:
The recommended method is to use iManager to configure the search context. For details, see Section 5.1.5, Configuring a CIFS User Context.