7 CONTENT=
"Modular DocBook HTML Stylesheet Version 1.57"></HEAD
27 >smbmount
--
mount an smbfs filesystem
</DIV
29 CLASS=
"REFSYNOPSISDIV"
39 > {service} {mount-point} [-o options]
</P
52 > mounts a SMB filesystem. It
53 is usually invoked as
<B
60 > command when using the
61 "-t smb" option. The kernel must support the smbfs filesystem.
</P
63 >Options to smbmount are specified as a comma separated
64 list of key=value pairs. It is possible to send options other
65 than those listed here, assuming that smbfs supports them. If
66 you get mount failures, check your kernel log for errors on
69 >smbmount is a daemon. After mounting it keeps running until
70 the mounted smbfs is umounted. It will log things that happen
71 when in daemon mode using the
"machine name" smbmount, so
72 typically this output will end up in log.smbmount. The
73 smbmount process may also be called mount.smbfs.
</P
84 > to do the actual mount. You
85 must make sure that
<B
89 that it can be found.
</P
104 >username=
<arg
></DT
107 >specifies the username to connect as. If
108 this is not given, then the environment variable
<TT
111 > is used. This option can also take the
112 form
"user%password" or
"user/workgroup" or
113 "user/workgroup%password" to allow the password and workgroup
114 to be specified as part of the username.
</P
117 >password=
<arg
></DT
120 >specifies the SMB password. If this
121 option is not given then the environment variable
125 > is used. If it can find
130 for a passeword, unless the guest option is
134 >credentials=
<filename
></DT
137 >specifies a file that contains a username
138 and/or password. The format of the file is:
</P
147 CLASS=
"PROGRAMLISTING"
148 > username =
<value
>
149 password =
<value
>
157 >This is preferred over having passwords in plaintext in a
158 shared file, such as /etc/fstab. Be sure to protect any
159 credentials file properly.
163 >netbiosname=
<arg
></DT
166 >sets the source NetBIOS name. It defaults
167 to the local hostname.
</P
170 >uid=
<arg
></DT
173 >sets the uid that will own all files on
174 the mounted filesystem.
175 It may be specified as either a username or a numeric uid.
179 >gid=
<arg
></DT
182 >sets the gid that will own all files on
183 the mounted filesystem.
184 It may be specified as either a groupname or a numeric
188 >port=
<arg
></DT
191 >sets the remote SMB port number. The default
195 >fmask=
<arg
></DT
198 >sets the file mask. This determines the
199 permissions that remote files have in the local filesystem.
200 The default is based on the current umask.
</P
203 >dmask=
<arg
></DT
206 >sets the directory mask. This deterines the
207 permissions that remote directories have in the local filesystem.
208 The default is based on the current umask.
</P
211 >debug=
<arg
></DT
214 >sets the debug level. This is useful for
215 tracking down SMB connection problems.
</P
218 >ip=
<arg
></DT
221 >sets the destination host or IP address.
225 >workgroup=
<arg
></DT
228 >sets the workgroup on the destination
</P
231 >sockopt=
<arg
></DT
234 >sets the TCP socket options. See the
<A
235 HREF=
"smb.conf.5.html#SOCKETOPTIONS"
251 >scope=
<arg
></DT
254 >sets the NetBIOS scope
</P
260 >don't prompt for a password
</P
272 >mount read-write
</P
275 >iocharset=
<arg
></DT
278 > sets the charset used by the linux side for codepage
279 to charset translations (NLS). Argument should be the
280 name of a charset, like iso8859-
1. (Note: only kernel
285 >codepage=
<arg
></DT
288 > sets the codepage the server uses. See the iocharset
289 option. Example value cp850. (Note: only kernel
2.4.0
294 >ttl=
<arg
></DT
297 > how long a directory listing is cached in milliseconds
298 (also affects visibility of file size and date
299 changes). A higher value means that changes on the
300 server take longer to be noticed but it can give
301 better performance on large directories, especially
302 over long distances. Default is
1000ms but something
303 like
10000ms (
10 seconds) is probably more reasonable
305 (Note: only kernel
2.4.2 or later)
317 >ENVIRONMENT VARIABLES
</H2
322 > may contain the username of the
323 person using the client. This information is used only if the
324 protocol level is high enough to support session-level
325 passwords. The variable can be used to set both username and
326 password by using the format username%password.
</P
331 > may contain the password of the
332 person using the client. This information is used only if the
333 protocol level is high enough to support session-level
339 > may contain the pathname of
340 a file to read the password from. A single line of input is
341 read and used as password.
</P
351 >Not many known smbmount bugs. But one smbfs bug is
352 important enough to mention here anyway:
</P
358 >Mounts sometimes stop working. This is usually
359 caused by smbmount terminating. Since smbfs needs smbmount to
360 reconnect when the server disconnects, the mount will go
361 dead. A re-mount normally fixes this. At least
2 ways to
362 trigger this bug are known.
</P
366 >Note that the typical response to a bugreport is suggestion
367 to try the latest version first. So please try doing that first,
368 and always include which versions you use of relevant software
369 when reporting bugs (minimum: samba, kernel, distribution)
</P
379 >Documentation/filesystems/smbfs.txt in the kernel source tree
380 may contain additional options and information.
</P
390 >Volker Lendecke, Andrew Tridgell, Michael H. Warfield
393 >The current maintainer of smbfs and the userspace
405 HREF=
"mailto:urban@teststation.com"
410 HREF=
"mailto:samba@samba.org"
412 >SAMBA Mailing list
</A
414 is the preferred place to ask questions regarding these programs.
417 >The conversion of this manpage for Samba
2.2 was performed