HP CIFS Client A.02.02.03 Administrator's Guide

1. Start the daemon.
Normally the system administrator, logged in as root, enters this command at system startup:
$ cifsclient start
CIFS Client started; process id: 12783
To check status at any time:
$ cifsclient status
path: /opt/cifsclient/sbin/cifsclientd
version: FILESET HP CIFS CLIENT: Version: A.02.01
Compiled on HP-UX B.11.11, s785/C360, 03/05/30,
13:34:15
cifsclientd: ver_id=1291218999
cksum: 2781544263
status: CIFS Client is up; process id 12783,
started Apr 13
mntck: ok
You can configure your HP-UX system to start the CIFS Client automatically at bootup by editing
the file /etc/rc.config.d/cifsclient such that the run flag is set to 1: RUN_CIFSCLIENT=1. There
must be no spaces on either side of the equal sign. If you use this option, you can still stop
and restart the HP CIFS Client after the system boots up.
2. Mount and unmount shares on a CIFS server.
This must be done by root. Remote directories to be mounted by the HP CIFS Client must be
configured as shares on the HP CIFS server.
In the following example, the share source, configured as a share on the HP CIFS server
buildsys, is mounted by the CIFS Client using the directory /home/devl/source as the mount
point. The directory used as the mount point must already exist and must be specified as an
absolute path.
To mount:
$ mount -F cifs buildsys:/source /home/devl/source
To unmount, specify only the mout point:
$ umount /home/devl/source
3. Access the shared directory via the mount point on the Client.
The CIFS protocol allows access to mounted directories only to users who have been
authenticated by the server or a domain controller. This is accomplished through the
cifslogin command.
In the examples that follow, the share source has been configured on the server. The joe user
on the Client wants to access the shared directory on buildsys. This is first attempted by
changing directories to the mount point, but without first logging into the server (this fails).
Then, by logging into buildsys with the cifslogin command, the user is authenticated by
buildsys and can access its shared source directory through the CIFS Client's mount point.
Note that the user name used to login to the CIFS Server can be different than the current
HP-UX login name at the Client. The account and password pair used in cifslogin must exist
on the system that performs the authentication.
Further, if the server is an HP-UX system, all users on the Client that access the Server should
have the same uid on both systems, so that file ownership is consistent.
$ whoami
joe
cd /home/dev1/source
sh: /home/dev1/source: not found
Using the HP CIFS Client 17