1 .\" This manpage has been automatically generated by docbook2man
2 .\" from a DocBook document. This tool can be found at:
3 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
4 .\" Please send any bug reports, improvements, comments, patches,
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH "MOUNT.CIFS" "8" "03 August 2002" "" ""
8 mount.cifs \- mount using the Common Internet File System (CIFS)
11 \fBmount.cifs\fR \fBservice\fR \fBmount-point\fR [ \fB-o options\fR]
15 \fBmount.cifs\fR mounts a Linux CIFS filesystem. It
16 is usually invoked as \fBmount.cifs\fR by
17 the \fBmount(8)\fR command when using the
18 "-t cifs" option. This command only works in Linux, and the kernel must
19 support the cifs filesystem. The CIFS protocol is the successor to the
20 SMB protocol and is supported by most Windows servers and many other
21 commercial servers and Network Attached Storage appliances as well as
22 by the popular Open Source server Samba.
24 Options to \fBmount.cifs\fR are specified as a comma-separated
25 list of key=value pairs. It is possible to send options other
26 than those listed here, assuming that cifs supports them. If
27 you get mount failures, check your kernel log for errors on
30 \fBmount.cifs\fR is a daemon. After mounting it keeps running until
31 the mounted cifs is umounted. It will log things that happen
32 when in daemon mode using the "machine name" mount.cifs, so
33 typically this output will end up in
38 specifies the username to connect as. If
39 this is not given, then the environment variable \fB USER\fR is used. This option can also take the
40 form "user%password" or "user/workgroup" or
41 "user/workgroup%password" to allow the password and workgroup
42 to be specified as part of the username.
45 specifies the CIFS password. If this
46 option is not given then the environment variable
47 \fBPASSWD\fR is used. If it can find
48 no password \fBmount.cifs\fR will prompt
49 for a passeword, unless the guest option is
52 Note that password which contain the arguement delimiter
53 character (i.e. a comma ',') will failed to be parsed correctly
54 on the command line. However, the same password defined
55 in the PASSWD environment variable or a credentials file (see
56 below) will be read correctly.
58 \fBcredentials=<filename>\fR
59 specifies a file that contains a username
60 and/or password. The format of the file is:
69 This is preferred over having passwords in plaintext in a
70 shared file, such as \fI/etc/fstab\fR. Be sure to protect any
71 credentials file properly.
74 sets the uid that will own all files on
75 the mounted filesystem.
76 It may be specified as either a username or a numeric uid.
79 sets the gid that will own all files on
80 the mounted filesystem.
81 It may be specified as either a groupname or a numeric
85 sets the remote cifs port number. By default
86 port 445 is tried then if no response port 139 is tried.
89 sets the file mask. This determines the
90 permissions that remote files have in the local filesystem.
91 The default is based on the current umask.
94 sets the directory mask. This determines the
95 permissions that remote directories have in the local filesystem.
96 The default is based on the current umask.
99 sets the debug level. This is useful for
100 tracking down cifs connection problems. A suggested value to
101 start with is 4. If set too high there will be a lot of
102 output, possibly hiding the useful output.
105 sets the destination host or IP address.
108 sets the domain (workgroup) of the user
111 don't prompt for a password
119 \fBiocharset=<arg>\fR
120 sets the charset used by the Linux side for codepage
121 to charset translations (NLS). Argument should be the
122 name of a charset, like iso8859-1. (Note: only kernel
126 sets the codepage the server uses. See the iocharset
127 option. Example value cp850. (Note: only kernel 2.4.0
131 how long a directory listing is cached in milliseconds
132 (also affects visibility of file size and date
133 changes). A higher value means that changes on the
134 server take longer to be noticed but it can give
135 better performance on large directories, especially
136 over long distances. Default is 1000ms but something
137 like 10000ms (10 seconds) is probably more reasonable
139 (Note: only kernel 2.4.2 or later)
140 .SH "ENVIRONMENT VARIABLES"
142 The variable \fBUSER\fR may contain the username of the
143 person using the client. This information is used only if the
144 protocol level is high enough to support session-level
145 passwords. The variable can be used to set both username and
146 password by using the format username%password.
148 The variable \fBPASSWD\fR may contain the password of the
149 person using the client. This information is used only if the
150 protocol level is high enough to support session-level
153 The variable \fBPASSWD_FILE\fR may contain the pathname
154 of a file to read the password from. A single line of input is
155 read and used as the password.
158 Passwords and other options containing , can not be handled.
159 For passwords an alternative way of passing them is in a credentials
160 file or in the PASSWD environment.
162 The credentials file does not handle usernames or passwords with
165 Note that the typical response to a bug report is suggestion
166 to try the latest version first. So please try doing that first,
167 and always include which versions you use of relevant software
168 when reporting bugs (minimum: samba, kernel, distribution)
171 Documentation/filesystems/cifs.txt in the linux kernel
172 source tree may contain additional options and information.
176 The syntax and manpage were loosely based on that of smbmount.
178 The current maintainer of the Linux cifs vfs and the userspace
179 tool \fBmount.cifs\fR is Steve French <URL:mailto:sfrench@samba.org>.
180 The SAMBA Mailing list <URL:mailto:samba@samba.org>
181 is the preferred place to ask questions regarding these programs.