1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.77+"></HEAD
28 >smbmount -- mount an smbfs filesystem</DIV
30 CLASS="REFSYNOPSISDIV"
40 > {service} {mount-point} [-o options]</P
53 > mounts a Linux SMB filesystem. It
54 is usually invoked as <B
64 > command when using the
65 "-t smbfs" option. This command only works in Linux, and the kernel must
66 support the smbfs filesystem. </P
71 > are specified as a comma-separated
72 list of key=value pairs. It is possible to send options other
73 than those listed here, assuming that smbfs supports them. If
74 you get mount failures, check your kernel log for errors on
80 > is a daemon. After mounting it keeps running until
81 the mounted smbfs is umounted. It will log things that happen
82 when in daemon mode using the "machine name" smbmount, so
83 typically this output will end up in <TT
89 > process may also be called mount.smbfs.</P
104 CLASS="REFENTRYTITLE"
107 > to do the actual mount. You
108 must make sure that <B
112 that it can be found. </P
127 >username=<arg></DT
130 >specifies the username to connect as. If
131 this is not given, then the environment variable <TT
134 > is used. This option can also take the
135 form "user%password" or "user/workgroup" or
136 "user/workgroup%password" to allow the password and workgroup
137 to be specified as part of the username.</P
140 >password=<arg></DT
143 >specifies the SMB password. If this
144 option is not given then the environment variable
148 > is used. If it can find
153 for a passeword, unless the guest option is
156 > Note that passwords which contain the argument delimiter
157 character (i.e. a comma ',') will failed to be parsed correctly
158 on the command line. However, the same password defined
159 in the PASSWD environment variable or a credentials file (see
160 below) will be read correctly.
164 >credentials=<filename></DT
167 >specifies a file that contains a username and/or password.
168 The format of the file is:
170 CLASS="PROGRAMLISTING"
171 >username = <value>
172 password = <value></PRE
175 >This is preferred over having passwords in plaintext in a
176 shared file, such as <TT
179 >. Be sure to protect any
180 credentials file properly.
184 >netbiosname=<arg></DT
187 >sets the source NetBIOS name. It defaults
188 to the local hostname. </P
194 >sets the uid that will own all files on
195 the mounted filesystem.
196 It may be specified as either a username or a numeric uid.
203 >sets the gid that will own all files on
204 the mounted filesystem.
205 It may be specified as either a groupname or a numeric
209 >port=<arg></DT
212 >sets the remote SMB port number. The default
216 >fmask=<arg></DT
219 >sets the file mask. This determines the
220 permissions that remote files have in the local filesystem.
221 The default is based on the current umask. </P
224 >dmask=<arg></DT
227 >sets the directory mask. This determines the
228 permissions that remote directories have in the local filesystem.
229 The default is based on the current umask. </P
232 >debug=<arg></DT
235 >sets the debug level. This is useful for
236 tracking down SMB connection problems. A suggested value to
237 start with is 4. If set too high there will be a lot of
238 output, possibly hiding the useful output.</P
244 >sets the destination host or IP address.
248 >workgroup=<arg></DT
251 >sets the workgroup on the destination </P
254 >sockopt=<arg></DT
257 >sets the TCP socket options. See the <A
258 HREF="smb.conf.5.html#SOCKETOPTIONS"
263 CLASS="REFENTRYTITLE"
276 >scope=<arg></DT
279 >sets the NetBIOS scope </P
285 >don't prompt for a password </P
297 >mount read-write </P
300 >iocharset=<arg></DT
303 > sets the charset used by the Linux side for codepage
304 to charset translations (NLS). Argument should be the
305 name of a charset, like iso8859-1. (Note: only kernel
310 >codepage=<arg></DT
313 > sets the codepage the server uses. See the iocharset
314 option. Example value cp850. (Note: only kernel 2.4.0
322 > sets how long a directory listing is cached in milliseconds
323 (also affects visibility of file size and date
324 changes). A higher value means that changes on the
325 server take longer to be noticed but it can give
326 better performance on large directories, especially
327 over long distances. Default is 1000ms but something
328 like 10000ms (10 seconds) is probably more reasonable
330 (Note: only kernel 2.4.2 or later)
342 >ENVIRONMENT VARIABLES</H2
347 > may contain the username of the
348 person using the client. This information is used only if the
349 protocol level is high enough to support session-level
350 passwords. The variable can be used to set both username and
351 password by using the format username%password.</P
356 > may contain the password of the
357 person using the client. This information is used only if the
358 protocol level is high enough to support session-level
364 > may contain the pathname
365 of a file to read the password from. A single line of input is
366 read and used as the password.</P
376 >Passwords and other options containing , can not be handled.
377 For passwords an alternative way of passing them is in a credentials
378 file or in the PASSWD environment.</P
380 >The credentials file does not handle usernames or passwords with
383 >One smbfs bug is important enough to mention here, even if it
384 is a bit misplaced:</P
390 >Mounts sometimes stop working. This is usually
391 caused by smbmount terminating. Since smbfs needs smbmount to
392 reconnect when the server disconnects, the mount will eventually go
393 dead. An umount/mount normally fixes this. At least 2 ways to
394 trigger this bug are known.</P
398 >Note that the typical response to a bug report is suggestion
399 to try the latest version first. So please try doing that first,
400 and always include which versions you use of relevant software
401 when reporting bugs (minimum: samba, kernel, distribution)</P
411 >Documentation/filesystems/smbfs.txt in the linux kernel
412 source tree may contain additional options and information.</P
414 >FreeBSD also has a smbfs, but it is not related to smbmount</P
416 >For Solaris, HP-UX and others you may want to look at <SPAN
419 CLASS="REFENTRYTITLE"
422 > or at other solutions, such as
423 Sharity or perhaps replacing the SMB server with a NFS server.</P
433 >Volker Lendecke, Andrew Tridgell, Michael H. Warfield
436 >The current maintainer of smbfs and the userspace
448 HREF="mailto:urban@teststation.com"
453 HREF="mailto:samba@samba.org"
455 >SAMBA Mailing list</A
457 is the preferred place to ask questions regarding these programs.
460 >The conversion of this manpage for Samba 2.2 was performed
461 by Gerald Carter. The conversion to DocBook XML 4.2 for Samba 3.0
462 was done by Alexander Bokovoy.</P