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
133 > Note that password which contain the arguement delimiter
134 character (i.e. a comma ',') will failed to be parsed correctly
135 on the command line. However, the same password defined
136 in the PASSWD environment variable or a credentials file (see
137 below) will be read correctly.
141 >credentials=
<filename
></DT
144 >specifies a file that contains a username
145 and/or password. The format of the file is:
</P
154 CLASS=
"PROGRAMLISTING"
155 > username =
<value
>
156 password =
<value
>
164 >This is preferred over having passwords in plaintext in a
165 shared file, such as /etc/fstab. Be sure to protect any
166 credentials file properly.
170 >netbiosname=
<arg
></DT
173 >sets the source NetBIOS name. It defaults
174 to the local hostname.
</P
177 >uid=
<arg
></DT
180 >sets the uid that will own all files on
181 the mounted filesystem.
182 It may be specified as either a username or a numeric uid.
186 >gid=
<arg
></DT
189 >sets the gid that will own all files on
190 the mounted filesystem.
191 It may be specified as either a groupname or a numeric
195 >port=
<arg
></DT
198 >sets the remote SMB port number. The default
202 >fmask=
<arg
></DT
205 >sets the file mask. This determines the
206 permissions that remote files have in the local filesystem.
207 The default is based on the current umask.
</P
210 >dmask=
<arg
></DT
213 >sets the directory mask. This deterines the
214 permissions that remote directories have in the local filesystem.
215 The default is based on the current umask.
</P
218 >debug=
<arg
></DT
221 >sets the debug level. This is useful for
222 tracking down SMB connection problems.
</P
225 >ip=
<arg
></DT
228 >sets the destination host or IP address.
232 >workgroup=
<arg
></DT
235 >sets the workgroup on the destination
</P
238 >sockopt=
<arg
></DT
241 >sets the TCP socket options. See the
<A
242 HREF=
"smb.conf.5.html#SOCKETOPTIONS"
258 >scope=
<arg
></DT
261 >sets the NetBIOS scope
</P
267 >don't prompt for a password
</P
279 >mount read-write
</P
282 >iocharset=
<arg
></DT
285 > sets the charset used by the linux side for codepage
286 to charset translations (NLS). Argument should be the
287 name of a charset, like iso8859-
1. (Note: only kernel
292 >codepage=
<arg
></DT
295 > sets the codepage the server uses. See the iocharset
296 option. Example value cp850. (Note: only kernel
2.4.0
301 >ttl=
<arg
></DT
304 > how long a directory listing is cached in milliseconds
305 (also affects visibility of file size and date
306 changes). A higher value means that changes on the
307 server take longer to be noticed but it can give
308 better performance on large directories, especially
309 over long distances. Default is
1000ms but something
310 like
10000ms (
10 seconds) is probably more reasonable
312 (Note: only kernel
2.4.2 or later)
324 >ENVIRONMENT VARIABLES
</H2
329 > may contain the username of the
330 person using the client. This information is used only if the
331 protocol level is high enough to support session-level
332 passwords. The variable can be used to set both username and
333 password by using the format username%password.
</P
338 > may contain the password of the
339 person using the client. This information is used only if the
340 protocol level is high enough to support session-level
346 > may contain the pathname of
347 a file to read the password from. A single line of input is
348 read and used as password.
</P
358 >Not many known smbmount bugs. But one smbfs bug is
359 important enough to mention here anyway:
</P
365 >Mounts sometimes stop working. This is usually
366 caused by smbmount terminating. Since smbfs needs smbmount to
367 reconnect when the server disconnects, the mount will go
368 dead. A re-mount normally fixes this. At least
2 ways to
369 trigger this bug are known.
</P
373 >Note that the typical response to a bugreport is suggestion
374 to try the latest version first. So please try doing that first,
375 and always include which versions you use of relevant software
376 when reporting bugs (minimum: samba, kernel, distribution)
</P
386 >Documentation/filesystems/smbfs.txt in the kernel source tree
387 may contain additional options and information.
</P
397 >Volker Lendecke, Andrew Tridgell, Michael H. Warfield
400 >The current maintainer of smbfs and the userspace
412 HREF=
"mailto:urban@teststation.com"
417 HREF=
"mailto:samba@samba.org"
419 >SAMBA Mailing list
</A
421 is the preferred place to ask questions regarding these programs.
424 >The conversion of this manpage for Samba
2.2 was performed