HP-UX HB v13.00 Ch-20 - CIFS

HP-UX Handbook Rev 13.00 Page 13 (of 40)
Chapter 20 CIFS
October 29, 2013
and cannot be unmounted the only way to get rid of the mountpoint is reboot. It is the same as
with nfs.
General commands
Generally all commands deliver a short help if you start them with argument "-?" or "-h"
cifsclient {start|stop|restart|ver|force_umount}:
cifsclient does start and stop the daemon.The cifsclient startup would give back a process id. The
cifsclient stop would unmount all cifsmounts while stopping the daemon. There are other options
like "start, stop, restart, status, ver". A very special one is the "force_umount" option, which
should be used only if cifsclient is down. This might be helpful if a mountpoint is hanging and
could not be unmounted when cifsclient was shutdown.
cifsmount; mount F cifs:
'cifsmount' and 'mount F cifs' are the same. The most common mount is
cifsmount //<server>/<share> <mountpoint> -U <username> -s
This will prompt you for the password of the remote (windows) user. If you perform the
command as root and do not parse a username then the 'remote root' is equal to the windows
Administrator.
If you use cifsmount with options -s -U you can save password and mount into a databasefile
which is located in /var/opt/cifsclient/cifsclient.udb. This will cause that every time
cifsclient is restarted (including reboot) the cifsmounts are reactivated. This is an enhanced
functionality compared with mount.
-s Save mount and password in database (please do not use unless you understand the security
implications). This is expecially useful it you want to have mounts enabled with the cifsclient
start. -U <username> Username sent to (windows) server.
cifslogin:
The cifslogin command is used to authenticate additional users at a server. Only authenticated
users may access mounted files. Each user accesses the file at the server with his or her privilege
status at that server. Because there must be a one to one (many to one) mapping from local users
to remote user names, every user can log in only once at a given server. By default, cifslogin
sends the user's login name to the server. If this is not desired, the username can be given in the
commandline.
cifslist:
root@hp-ux:>cifslist
====================================================================
server NTSERV:
====================================================================
Remote Username: administrator Local Username: root