1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
2 <refentry id="smbmount">
5 <refentrytitle>smbmount</refentrytitle>
6 <manvolnum>8</manvolnum>
11 <refname>smbmount</refname>
12 <refpurpose>mount and smbfs filesystem</refpurpose>
17 <command>smbumount</command>
18 <arg choice="req">service</arg>
19 <arg choice="req">mount-point</arg>
20 <arg choice="opt">-o options</arg>
25 <title>DESCRIPTION</title>
27 <para><command>smbmount</command> mounts a SMB filesystem. It
28 is usually invoked as <command>mount.smb</command> from
29 the <command>mount(8)</command> command when using the
30 "-t smb" option. The kernel must support the smbfs filesystem. </para>
32 <para>Options to smbmount are specified as a comma separated list
33 of key=value pairs.</para>
35 <para><emphasis>NOTE:</emphasis> <command>smbmount</command>
36 calls <command>smbmnt(8)</command> to do the actual mount. You
37 must make sure that <command>smbmnt</command> is in the path so
38 that it can be found. </para>
43 <title>OPTIONS</title>
47 <term>username=<arg></term>
48 <listitem><para>specifies the username to connect as. If
49 this is not given then the environment variable <parameter>
50 $USER</parameter> is used. This option can also take the
51 form "user%password" or "user/workgroup" or
52 "user/workgroup%password" to allow the password and workgroup
53 to be specified as part of the username.</para></listitem>
58 <term>password=<arg></term>
59 <listitem><para>specifies the SMB password. If not given then
60 <command>smbmount</command> will prompt for a passeword, unless
61 the guest option is given. </para></listitem>
67 <term>netbiosname=<arg></term>
68 <listitem><para>sets the source NetBIOS name. It defaults
69 to the local hostname. </para></listitem>
75 <term>uid=<arg></term>
76 <listitem><para>sets the uid that files will be mounted as.
77 It may be specified as either a username or a numeric uid.
83 <term>gid=<arg></term>
84 <listitem><para>sets the gid that files will be mounted as.
85 It may be specified as either a groupname or a numeric
86 gid. </para></listitem>
91 <term>port=<arg></term>
92 <listitem><para>sets the remote SMB port number. The default
93 is 139. </para></listitem>
98 <term>fmask=<arg></term>
99 <listitem><para>sets the file mask. This determines the
100 permissions that remote files have in the local filesystem.
101 The default is based on the current umask. </para></listitem>
106 <term>dmask=<arg></term>
107 <listitem><para>sets the directory mask. This deterines the
108 permissions that remote directories have in the local filesystem.
109 The default is based on the current umask. </para></listitem>
114 <term>debug=<arg></term>
115 <listitem><para>sets the debug level. This is useful for
116 tracking down SMB connection problems. </para></listitem>
121 <term>ip=<arg></term>
122 <listitem><para>sets the destination host or IP address.
129 <term>workgroup=<arg></term>
130 <listitem><para>sets the workgroup on the destination </para>
136 <term>sockopt=<arg></term>
137 <listitem><para>sets the TCP socket options. See the <ulink
138 url="smb.conf.5.html#SOCKETOPTIONS"><filename>smb.conf
139 </filename></ulink> <parameter>socket options</parameter> option.
145 <term>scope=<arg></term>
146 <listitem><para>sets the NetBIOS scope </para></listitem>
151 <listitem><para>don't prompt for a password </para></listitem>
157 <listitem><para>mount read-only </para></listitem>
161 <term>rw</term><listitem><para>mount read-write </para></listitem>
170 <title>AUTHOR</title>
172 <para>The current maintainer of smbfs and the userspace
173 tools <command>smbmount</command>, <command>smbumount</command>,
174 and <command>smbmnt</command> is <ulink
175 url="mailto:urban@teststation.com">Urban Widmark</ulink></para>
177 <para>The conversion of this manpage for Samba 2.2 was performed
178 by Gerald Carter</para>