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
85 > to do the actual mount. You
86 must make sure that
<B
90 that it can be found.
</P
105 >username=
<arg
></DT
108 >specifies the username to connect as. If
109 this is not given, then the environment variable
<TT
112 > is used. This option can also take the
113 form
"user%password" or
"user/workgroup" or
114 "user/workgroup%password" to allow the password and workgroup
115 to be specified as part of the username.
</P
118 >password=
<arg
></DT
121 >specifies the SMB password. If this
122 option is not given then the environment variable
126 > is used. If it can find
131 for a passeword, unless the guest option is
135 >credentials=
<filename
></DT
138 >specifies a file that contains a username
139 and/or password. The format of the file is:
</P
142 CLASS=
"PROGRAMLISTING"
143 > username =
<value
>
144 password =
<value
>
149 >This is preferred over having passwords in plaintext in a
150 shared file, such as /etc/fstab. Be sure to protect any
151 credentials file properly.
155 >netbiosname=
<arg
></DT
158 >sets the source NetBIOS name. It defaults
159 to the local hostname.
</P
165 >sets the uid that will own all files on
166 the mounted filesystem.
167 It may be specified as either a username or a numeric uid.
174 >sets the gid that will own all files on
175 the mounted filesystem.
176 It may be specified as either a groupname or a numeric
180 >port=
<arg
></DT
183 >sets the remote SMB port number. The default
187 >fmask=
<arg
></DT
190 >sets the file mask. This determines the
191 permissions that remote files have in the local filesystem.
192 The default is based on the current umask.
</P
195 >dmask=
<arg
></DT
198 >sets the directory mask. This deterines the
199 permissions that remote directories have in the local filesystem.
200 The default is based on the current umask.
</P
203 >debug=
<arg
></DT
206 >sets the debug level. This is useful for
207 tracking down SMB connection problems.
</P
213 >sets the destination host or IP address.
217 >workgroup=
<arg
></DT
220 >sets the workgroup on the destination
</P
223 >sockopt=
<arg
></DT
226 >sets the TCP socket options. See the
<A
227 HREF=
"smb.conf.5.html#SOCKETOPTIONS"
243 >scope=
<arg
></DT
246 >sets the NetBIOS scope
</P
252 >don't prompt for a password
</P
264 >mount read-write
</P
267 >iocharset=
<arg
></DT
270 > sets the charset used by the linux side for codepage
271 to charset translations (NLS). Argument should be the
272 name of a charset, like iso8859-
1. (Note: only kernel
277 >codepage=
<arg
></DT
280 > sets the codepage the server uses. See the iocharset
281 option. Example value cp850. (Note: only kernel
2.4.0
289 > how long a directory listing is cached in milliseconds
290 (also affects visibility of file size and date
291 changes). A higher value means that changes on the
292 server take longer to be noticed but it can give
293 better performance on large directories, especially
294 over long distances. Default is
1000ms but something
295 like
10000ms (
10 seconds) is probably more reasonable
297 (Note: only kernel
2.4.2 or later)
309 >ENVIRONMENT VARIABLES
</H2
314 > may contain the username of the
315 person using the client. This information is used only if the
316 protocol level is high enough to support session-level
317 passwords. The variable can be used to set both username and
318 password by using the format username%password.
</P
323 > may contain the password of the
324 person using the client. This information is used only if the
325 protocol level is high enough to support session-level
331 > may contain the pathname of
332 a file to read the password from. A single line of input is
333 read and used as password.
</P
343 >Not many known smbmount bugs. But one smbfs bug is
344 important enough to mention here anyway:
</P
350 >Mounts sometimes stop working. This is usually
351 caused by smbmount terminating. Since smbfs needs smbmount to
352 reconnect when the server disconnects, the mount will go
353 dead. A re-mount normally fixes this. At least
2 ways to
354 trigger this bug are known.
</P
358 >Note that the typical response to a bugreport is suggestion
359 to try the latest version first. So please try doing that first,
360 and always include which versions you use of relevant software
361 when reporting bugs (minimum: samba, kernel, distribution)
</P
371 >Documentation/filesystems/smbfs.txt in the kernel source tree
372 may contain additional options and information.
</P
382 >Volker Lendecke, Andrew Tridgell, Michael H. Warfield
385 >The current maintainer of smbfs and the userspace
397 HREF=
"mailto:urban@teststation.com"
402 HREF=
"mailto:samba@samba.org"
404 >SAMBA Mailing list
</A
406 is the preferred place to ask questions regarding these programs.
409 >The conversion of this manpage for Samba
2.2 was performed