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

Last change on this file since 285 was 158, checked in by Paul Smedley, 17 years ago

Update source to 3.0.32

File size: 7.7 KB
Line 
1.\" Title: smbmount
2.\" Author:
3.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4.\" Date: 08/25/2008
5.\" Manual:
6.\" Source:
7.\"
8.TH "SMBMOUNT" "8" "08/25/2008" "" ""
9.\" disable hyphenation
10.nh
11.\" disable justification (adjust text to left margin only)
12.ad l
13.SH "NAME"
14smbmount - mount an smbfs filesystem
15.SH "SYNOPSIS"
16.HP 1
17smbmount {service} {mount\-point} [\-o\ options]
18.SH "DESCRIPTION"
19.PP
20smbmount
21mounts a Linux SMB filesystem\. It is usually invoked as
22mount\.smbfs
23by the
24\fBmount\fR(8)
25command when using the "\-t smbfs" option\. This command only works in Linux, and the kernel must support the smbfs filesystem\.
26.PP
27WARNING:
28smbmount
29is deprecated and not maintained any longer\.
30mount\.cifs
31(mount \-t cifs) should be used instead of
32smbmount\.
33.PP
34Options to
35smbmount
36are 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\.
37.PP
38smbmount
39is 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
40\fIlog\.smbmount\fR\. The
41smbmount
42process may also be called mount\.smbfs\.
43.sp
44.it 1 an-trap
45.nr an-no-space-flag 1
46.nr an-break-flag 1
47.br
48Note
49.PP
50
51smbmount
52calls
53\fBsmbmnt\fR(8)
54to do the actual mount\. You must make sure that
55smbmnt
56is in the path so that it can be found\.
57.SH "OPTIONS"
58.PP
59username=<arg>
60.RS 4
61specifies the username to connect as\. If this is not given, then the environment variable
62\fB USER\fR
63is 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\.
64.RE
65.PP
66password=<arg>
67.RS 4
68specifies the SMB password\. If this option is not given then the environment variable
69PASSWD
70is used\. If it can find no password
71smbmount
72will prompt for a password, unless the guest option is given\.
73.sp
74Note 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\.
75.RE
76.PP
77credentials=<filename>
78.RS 4
79specifies a file that contains a username and/or password\. The format of the file is:
80.sp
81.RS 4
82.nf
83username=value
84password=value
85.fi
86.RE
87.sp
88This is preferred over having passwords in plaintext in a shared file, such as
89\fI/etc/fstab\fR\. Be sure to protect any credentials file properly\.
90.RE
91.PP
92krb
93.RS 4
94Use kerberos (Active Directory)\.
95.RE
96.PP
97netbiosname=<arg>
98.RS 4
99sets the source NetBIOS name\. It defaults to the local hostname\.
100.RE
101.PP
102uid=<arg>
103.RS 4
104sets the uid that will own all files on the mounted filesystem\. It may be specified as either a username or a numeric uid\.
105.RE
106.PP
107gid=<arg>
108.RS 4
109sets the gid that will own all files on the mounted filesystem\. It may be specified as either a groupname or a numeric gid\.
110.RE
111.PP
112port=<arg>
113.RS 4
114sets the remote SMB port number\. The default is 445, fallback is 139\.
115.RE
116.PP
117fmask=<arg>
118.RS 4
119sets 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\.
120.RE
121.PP
122dmask=<arg>
123.RS 4
124Sets 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\.
125.RE
126.PP
127debug=<arg>
128.RS 4
129Sets 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\.
130.RE
131.PP
132ip=<arg>
133.RS 4
134Sets the destination host or IP address\.
135.RE
136.PP
137workgroup=<arg>
138.RS 4
139Sets the workgroup on the destination
140.RE
141.PP
142sockopt=<arg>
143.RS 4
144Sets the TCP socket options\. See the
145\fBsmb.conf\fR(5)
146\fIsocket options\fR
147option\.
148.RE
149.PP
150scope=<arg>
151.RS 4
152Sets the NetBIOS scope
153.RE
154.PP
155guest
156.RS 4
157Don\'t prompt for a password
158.RE
159.PP
160ro
161.RS 4
162mount read\-only
163.RE
164.PP
165rw
166.RS 4
167mount read\-write
168.RE
169.PP
170iocharset=<arg>
171.RS 4
172sets 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)
173.RE
174.PP
175codepage=<arg>
176.RS 4
177sets the codepage the server uses\. See the iocharset option\. Example value cp850\. (Note: only kernel 2\.4\.0 or later)
178.RE
179.PP
180ttl=<arg>
181.RS 4
182sets 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)
183.RE
184.SH "ENVIRONMENT VARIABLES"
185.PP
186The variable
187\fBUSER\fR
188may 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\.
189.PP
190The variable
191\fBPASSWD\fR
192may 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\.
193.PP
194The variable
195\fBPASSWD_FILE\fR
196may contain the pathname of a file to read the password from\. A single line of input is read and used as the password\.
197.SH "OTHER COMMANDS"
198.PP
199File systems that have been mounted using the
200smbmount
201can be unmounted using the
202smbumount
203or the UNIX system
204umount
205command\.
206.SH "BUGS"
207.PP
208Passwords 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\.
209.PP
210The credentials file does not handle usernames or passwords with leading space\.
211.PP
212One smbfs bug is important enough to mention here, even if it is a bit misplaced:
213.sp
214.RS 4
215.ie n \{\
216\h'-04'\(bu\h'+03'\c
217.\}
218.el \{\
219.sp -1
220.IP \(bu 2.3
221.\}
222Mounts 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\.
223.sp
224.RE
225.PP
226Note 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)
227.SH "SEE ALSO"
228.PP
229Documentation/filesystems/smbfs\.txt in the linux kernel source tree may contain additional options and information\.
230.PP
231FreeBSD also has a smbfs, but it is not related to smbmount
232.PP
233For Solaris, HP\-UX and others you may want to look at
234\fBsmbsh\fR(1)
235or at other solutions, such as Sharity or perhaps replacing the SMB server with a NFS server\.
236.SH "AUTHOR"
237.PP
238Volker Lendecke, Andrew Tridgell, Michael H\. Warfield and others\.
239.PP
240The current maintainer of smbfs and the userspace tools
241smbmount,
242smbumount, and
243smbmnt
244is
245Urban Widmark\. The
246SAMBA Mailing list
247is the preferred place to ask questions regarding these programs\.
248.PP
249The 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\.
Note: See TracBrowser for help on using the repository browser.