source: branches/samba-3.0/docs/manpages/smbmount.8@ 107

Last change on this file since 107 was 44, checked in by Paul Smedley, 18 years ago

Update source to 3.0.25b

File size: 7.8 KB
Line 
1.\"Generated by db2man.xsl. Don't modify this, modify the source.
2.de Sh \" Subsection
3.br
4.if t .Sp
5.ne 5
6.PP
7\fB\\$1\fR
8.PP
9..
10.de Sp \" Vertical space (when we can't use .PP)
11.if t .sp .5v
12.if n .sp
13..
14.de Ip \" List item
15.br
16.ie \\n(.$>=3 .ne \\$3
17.el .ne 3
18.IP "\\$1" \\$2
19..
20.TH "SMBMOUNT" 8 "" "" ""
21.SH "NAME"
22smbmount - mount an smbfs filesystem
23.SH "SYNOPSIS"
24.HP 1
25smbmount {service} {mount-point} [-o options]
26.SH "DESCRIPTION"
27.PP
28smbmount
29mounts a Linux SMB filesystem. It is usually invoked as
30mount.smbfs
31by the
32\fBmount\fR(8)
33command when using the "-t smbfs" option. This command only works in Linux, and the kernel must support the smbfs filesystem.
34.PP
35WARNING:
36smbmount
37is deprecated and not maintained any longer.
38mount.cifs
39(mount -t cifs) should be used instead of
40smbmount.
41.PP
42Options to
43smbmount
44are specified as a comma-separated list of key=value pairs. It is possible to send options other than those listed here, assuming that smbfs supports them. If you get mount failures, check your kernel log for errors on unknown options.
45.PP
46smbmount
47is a daemon. After mounting it keeps running until the mounted smbfs is umounted. It will log things that happen when in daemon mode using the "machine name" smbmount, so typically this output will end up in
48\fIlog.smbmount\fR. The
49smbmount
50process may also be called mount.smbfs.
51.sp
52.it 1 an-trap
53.nr an-no-space-flag 1
54.nr an-break-flag 1
55.br
56\fBNote\fR
57.PP
58
59smbmount
60calls
61\fBsmbmnt\fR(8)
62to do the actual mount. You must make sure that
63smbmnt
64is in the path so that it can be found.
65.SH "OPTIONS"
66.PP
67username=<arg>
68.RS 3n
69specifies the username to connect as. If this is not given, then the environment variable
70\fB USER\fR
71is used. This option can also take the form "user%password" or "user/workgroup" or "user/workgroup%password" to allow the password and workgroup to be specified as part of the username.
72.RE
73.PP
74password=<arg>
75.RS 3n
76specifies the SMB password. If this option is not given then the environment variable
77PASSWD
78is used. If it can find no password
79smbmount
80will prompt for a password, unless the guest option is given.
81.sp
82Note that passwords which contain the argument delimiter character (i.e. a comma ',') will failed to be parsed correctly on the command line. However, the same password defined in the PASSWD environment variable or a credentials file (see below) will be read correctly.
83.RE
84.PP
85credentials=<filename>
86.RS 3n
87specifies a file that contains a username and/or password. The format of the file is:
88
89.sp
90
91.nf
92
93username = <value>
94password = <value>
95
96.fi
97
98.sp
99This is preferred over having passwords in plaintext in a shared file, such as
100\fI/etc/fstab\fR. Be sure to protect any credentials file properly.
101.RE
102.PP
103krb
104.RS 3n
105Use kerberos (Active Directory).
106.RE
107.PP
108netbiosname=<arg>
109.RS 3n
110sets the source NetBIOS name. It defaults to the local hostname.
111.RE
112.PP
113uid=<arg>
114.RS 3n
115sets the uid that will own all files on the mounted filesystem. It may be specified as either a username or a numeric uid.
116.RE
117.PP
118gid=<arg>
119.RS 3n
120sets the gid that will own all files on the mounted filesystem. It may be specified as either a groupname or a numeric gid.
121.RE
122.PP
123port=<arg>
124.RS 3n
125sets the remote SMB port number. The default is 445, fallback is 139.
126.RE
127.PP
128fmask=<arg>
129.RS 3n
130sets the file mask. This determines the permissions that remote files have in the local filesystem. This is not a umask, but the actual permissions for the files. The default is based on the current umask.
131.RE
132.PP
133dmask=<arg>
134.RS 3n
135Sets the directory mask. This determines the permissions that remote directories have in the local filesystem. This is not a umask, but the actual permissions for the directories. The default is based on the current umask.
136.RE
137.PP
138debug=<arg>
139.RS 3n
140Sets the debug level. This is useful for tracking down SMB connection problems. A suggested value to start with is 4. If set too high there will be a lot of output, possibly hiding the useful output.
141.RE
142.PP
143ip=<arg>
144.RS 3n
145Sets the destination host or IP address.
146.RE
147.PP
148workgroup=<arg>
149.RS 3n
150Sets the workgroup on the destination
151.RE
152.PP
153sockopt=<arg>
154.RS 3n
155Sets the TCP socket options. See the
156\fBsmb.conf\fR(5)
157\fIsocket options\fR
158option.
159.RE
160.PP
161scope=<arg>
162.RS 3n
163Sets the NetBIOS scope
164.RE
165.PP
166guest
167.RS 3n
168Don't prompt for a password
169.RE
170.PP
171ro
172.RS 3n
173mount read-only
174.RE
175.PP
176rw
177.RS 3n
178mount read-write
179.RE
180.PP
181iocharset=<arg>
182.RS 3n
183sets the charset used by the Linux side for codepage to charset translations (NLS). Argument should be the name of a charset, like iso8859-1. (Note: only kernel 2.4.0 or later)
184.RE
185.PP
186codepage=<arg>
187.RS 3n
188sets the codepage the server uses. See the iocharset option. Example value cp850. (Note: only kernel 2.4.0 or later)
189.RE
190.PP
191ttl=<arg>
192.RS 3n
193sets how long a directory listing is cached in milliseconds (also affects visibility of file size and date changes). A higher value means that changes on the server take longer to be noticed but it can give better performance on large directories, especially over long distances. Default is 1000ms but something like 10000ms (10 seconds) is probably more reasonable in many cases. (Note: only kernel 2.4.2 or later)
194.RE
195.SH "ENVIRONMENT VARIABLES"
196.PP
197The variable
198\fBUSER\fR
199may contain the username of the person using the client. This information is used only if the protocol level is high enough to support session-level passwords. The variable can be used to set both username and password by using the format username%password.
200.PP
201The variable
202\fBPASSWD\fR
203may contain the password of the person using the client. This information is used only if the protocol level is high enough to support session-level passwords.
204.PP
205The variable
206\fBPASSWD_FILE\fR
207may contain the pathname of a file to read the password from. A single line of input is read and used as the password.
208.SH "OTHER COMMANDS"
209.PP
210File systems that have been mounted using the
211smbmount
212can be unmounted using the
213smbumount
214or the UNIX system
215umount
216command.
217.SH "BUGS"
218.PP
219Passwords and other options containing , can not be handled. For passwords an alternative way of passing them is in a credentials file or in the PASSWD environment.
220.PP
221The credentials file does not handle usernames or passwords with leading space.
222.PP
223One smbfs bug is important enough to mention here, even if it is a bit misplaced:
224.TP 3n
225\(bu
226Mounts sometimes stop working. This is usually caused by smbmount terminating. Since smbfs needs smbmount to reconnect when the server disconnects, the mount will eventually go dead. An umount/mount normally fixes this. At least 2 ways to trigger this bug are known.
227.PP
228Note that the typical response to a bug report is suggestion to try the latest version first. So please try doing that first, and always include which versions you use of relevant software when reporting bugs (minimum: samba, kernel, distribution)
229.SH "SEE ALSO"
230.PP
231Documentation/filesystems/smbfs.txt in the linux kernel source tree may contain additional options and information.
232.PP
233FreeBSD also has a smbfs, but it is not related to smbmount
234.PP
235For Solaris, HP-UX and others you may want to look at
236\fBsmbsh\fR(1)
237or at other solutions, such as Sharity or perhaps replacing the SMB server with a NFS server.
238.SH "AUTHOR"
239.PP
240Volker Lendecke, Andrew Tridgell, Michael H. Warfield and others.
241.PP
242The current maintainer of smbfs and the userspace tools
243smbmount,
244smbumount, and
245smbmnt
246is
247Urban Widmark. The
248SAMBA Mailing list
249is the preferred place to ask questions regarding these programs.
250.PP
251The conversion of this manpage for Samba 2.2 was performed by Gerald Carter. The conversion to DocBook XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.
252
Note: See TracBrowser for help on using the repository browser.