HP CIFS Client A.01.09 Administrator's Guide, August 2003

Installing, Configuring, and Using the HP CIFS Client
Using the HP CIFS Client
Chapter 2 31
In this example, the share source, configured as a share on the HP
CIFS Server, 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.
To mount:
$ mount -F cifs buildsys:/source /home/devl/source
To unmount:
$ umount /home/devl/source
3. Access the shared directory via the mount point on the Client.
The HP CIFS Client allows access to mounted directories only on a
per-user basis. Therefore, each user must first be authenticated by
the HP CIFS Server. This is accomplished through the cifslogin
command.
In this example, the share source has been mounted by the system
administrator. The root 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 login name at the Client. The account and password pair
used in cifslogin must exist on the system that does the
authentication.
Further, if the CIFS Server is a 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
root
cd /home/dev1/source
sh: /home/dev1/source: not found
This fails because the user has not yet logged into the CIFS Server
buildsys.
$cifslogin buildsys root
Remote user root’s password: *****