 |
» |
|
|
 |
Mounts and unmounts CIFS file systems. Synopsis |  |
mount -F cifs [-ar] [-o option[,option...]]
[server:/share mount_point] umount -aF cifs | mount_point Description |  |
The mount command mounts
file systems. Only a superuser can mount file systems. Other users
can use mount to list mounted
file systems. Use cifslist -A to
view CIFS-specific mounts and user connections. The mount command attaches server:/share to mount_point.
server is a remote system. share is
a directory on this remote system and mount_point is
a directory on the local file tree. mount_point must already
exist, and be given as an absolute path name. It will become the name
of the root of the newly mounted file system. If mount is invoked without
any arguments, it lists all of the mounted file systems from the
file system mount table, /etc/mnttab. The umount command unmounts
currently-mounted file systems. Only a superuser can unmount file
systems. Options |  |
- -F cifs
Filesystem-specific identifier. Always required
for mounting and unmounting CIFS file systems, except for the command
form umount moint_point. - -a
Used with mount,
mounts all CIFS filesystems that have entries in /etc/fstab.
Used with umount, unmounts all
currently mounted CIFS file systems. - -r
Mounts as read-only. - -o
This class of options is specified with the following syntax: -o keywrd[,keywrd...],keywrd=value[,keywrd=value...] Some keywords are specified as keyword/value pairs, some are
not. -o options must be delimited
by commas; no white space is allowed. For example: -o ro,username=fulton,password=pokey Following are the -o options
to mount supported by the CIFS Client (keywords
that require values are indicated by "keyword=value"): - nbname=nbname
Set NetBios name of client. HP CIFS is based on NetBios.
NetBios requires that valid NetBios computer names are supplied
during the connection establishment for the client and the server.
The client name is usually taken from the hostname of your computer.
If this does not work or if your computer’s NetBios name
is different, you may supply the value to be used with this parameter.
This parameter is ignored if the server is already connected. - ipaddr=addr
IP address of server. By default, the hostname of
the server is taken from the server specification of the share.
This must also be the NetBios host name of the server, if the server
enforces correct NetBios names. The HP CIFS Client uses DNS instead
of NetBios to resolve server names to IP addresses. If the DNS name of
the server is different from the NetBios name, you may supply the
DNS name or the server’s IP address with this parameter.
It is ignored if the server is already connected. - port=port
Set connection port. NetBios
connections are usually made on port 139. If you want to connect
on a different port, you can supply a decimal port number with this parameter.
This parameter is ignored if the server is already connected. - ro
Mount as read-only filesystem. - username=name
Username sent to server. By default, the HP CIFS Client
accesses the server under the same user name as the login name of
the user. If you have a different user name at the server, you may
use this option to set that name. It is ignored if you are already
logged in at the server. - password=passwd
Password given in commandline. Use this option only if
you really have to, because all commandline parameters may show
up in the output of the ps command. It makes
it possible to pass a dynamically generated password to the server.
The password is ignored if the user is already logged in at the
server. - plaintxt
Enable plain text passwords. The HP CIFS Client refuses
to send passwords in plain text to the server by default because
this is a security risk. There are tools available that sniff the
network for plain text passwords. If you really must send the password
in plain text (e.g., because your server does not allow password
encryption), you can enable it with this option. It is ignored if
the user is already logged in at the server. - forcemnt
When this option is used, the mount is done even
if the server is not responding. No requests are sent to the server.
Consequently, none of the parameters can be checked for validity.
Files |  |
/etc/mnttab Table
of mounted file systems. /etc/fstab List
of default parameters for each CIFS file system. See
Also |  |
mount (1M), umount(1M), cifslogin, cifsumount, cifslogout, cifslist
|