HP CIFS Client A.02.02.03 Administrator's Guide
buildsys joe joe L
buildsys lucy lucille L
For more detailed information on how to use the cifslist command to view the internal
tables of HP CIFS Client, see “Commandline Utilities” (page 34).
Mounting and Logging in in One Step
The root user has the option to mount a CIFS filesystem and log in to the CIFS Server in one step,
eliminating the need to explicitly issue the cifslogin command. Using the names from the
examples above:
$ mount -F cifs -o username=x,password=y buildsys:/source
/home/dev1/source
where x and y are the name and password pair recognized by the server.
The cifsmount command can perform the same function. Using the names from the examples
above:
$ cifsmount -U <username> [-P<password>] //buildsys/source
/home/dev1/source
If you do not specify -P password on the command line, cifsmount prompts you for a password.
CIFS Client Logging
The CIFS Client produces a log file of its activities. Various levels of logging can be turned on or
off, for example, the activities of different modules within the software. See the “CIFS Client Log
File and Log Levels” (page 46) for detailed information.
Automatic Mounting of CIFS Filesystems
In addition to the mount command discussed in the previous section, which was used to explicitly
create a single mount, there are other methods to manage the mounting of CIFS file systems. See
the reference for mount_cifs and umount_cifs in Chapter 6 for syntax details not contained
in this section.
Using /etc/fstab
By creating entries in /etc/fstab you can mount CIFS filesystems automatically at boot time, or
mount multiple CIFS file systems on one or more CIFS Servers, with a single command entered
manually. The format for such entries is:
server:/share mount_point cifs defaults 0 0
See fstab(4) man page for detailed information on the format of this file.
Then, to mount all CIFS entries in /etc/fstab manually, enter:
$ mount -aF cifs
To unmount all currently mounted CIFS filesystems, enter:
$ umount -aF cifs
These commands will occur automatically, at bootup and shutdown, if the system is configured to
start the CIFS Client at bootup, as explained above in item 1 of “Using the HP CIFS Client”
(page 16).
Storing Mounts in the CIFS Client Mount Database
CIFS mount information can also be stored in the CIFS mount database. In this case, the mounts
are re-established whenever the CIFS Client is started. Mounts can be stored with either the cifsdb
or cifsmount commands. See “Commandline Utilities” (page 34) for details.
Automatic Mounting of CIFS Filesystems 19