summaryrefslogtreecommitdiff
path: root/usr/src/man/man4fs/smbfs.4fs
blob: ddb368da6e64cb4e5909b2fbe5c70a9f5dad9684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
.\"
.\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
.\" Copyright 2021 Oxide Computer Company
.\"
.\" The contents of this file are subject to the terms of the
.\" Common Development and Distribution License (the "License").
.\" You may not use this file except in compliance with the License.
.\"
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
.\" or http://www.opensolaris.org/os/licensing.
.\" See the License for the specific language governing permissions
.\" and limitations under the License.
.\"
.\" When distributing Covered Code, include this CDDL HEADER in each
.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
.\" If applicable, add the following below this CDDL HEADER, with the
.\" fields enclosed by brackets "[]" replaced with your own identifying
.\" information: Portions Copyright [yyyy] [name of copyright owner]
.\"
.Dd September 9, 2009
.Dt SMBFS 4FS
.Os
.Sh NAME
.Nm smbfs
.Nd CIFS/SMB file system
.Sh DESCRIPTION
The
.Nm
file system allows you to mount CIFS shares that are exported from Windows or
compatible systems.
SMB is the historical name for the CIFS protocol, which stands for Server
Message Block and is more commonly used in technical contexts.
.Pp
The
.Nm
file system permits ordinary UNIX applications to change directory into an
.Nm
mount and perform simple file and directory operations.
Supported operations include
.Xr open 2 ,
.Xr close 2 ,
.Xr read 2 ,
.Xr write 2 ,
.Xr rename 2 ,
.Xr rm 1 ,
.Xr mkdir 1 ,
.Xr rmdir 1 ,
and
.Xr ls 1 .
.Ss Limitations
Some local UNIX file systems
.Pq for example UFS
have features that are not supported by
.Nm .
These include:
.Bl -bullet -offset indent
.It
No mapped-file access because
.Xr mmap 2
returns
.Er ENOSYS .
.It
Locking is
.Sy local only
and is not sent to the server.
.El
.Pp
The following are limitations in the CIFS protocol:
.Bl -bullet -offset indent
.It
.Xr unlink 2
or
.Xr rename 2
of open files returns
Er EBUSY .
.It
.Xr rename 2
of extended attribute files returns
.Er EINVAL .
.It
Creation of files with any of the following illegal characters returns
.Er EINVAL :
colon
.Pq \&: ,
backslash
.Pq \e ,
slash
.Pq / ,
asterisk
.Pq * ,
question mark
.Pq \&? ,
double quote
.Pq \(dq ,
less than
.Pq \(la ,
greater than
.Pq \(ra ,
and vertical bar
.Pq | .
.It
.Xr chmod 2
and
.Xr chown 2
settings are silently discarded.
.It
Links are not supported.
.It
Symbolic links are not supported.
.It
.Xr mknod 2
is not supported.
.Pq Only file and directory objects are supported.
.El
.Pp
The current
.Nm
implementation does not support multi-user mounts.
Instead, each Unix user needs to make their own private mount points.
.Pp
Currently, all access through an
.Nm
mount point uses the Windows credentials established by the user that ran the
.Xr mount 8
command.
Normally, permissions on
.Nm
mount points should be
.Sy 0700
to prevent Unix users from using each others' Windows credentials.
See the
.Ar dirperms
option to
.Xr mount_smbfs 8
for details regarding how to control
.Nm
mount point permissions.
.Pp
An important implication of this limitation is that system-wide mounts, such as
those made using
.Pa /etc/vfstab
or automount maps are only useful in cases where access control is not a
concern, such as for public read-only resources.
.Sh INTERFACE STABILITY
.Sy Uncommitted
.Sh SEE ALSO
.Xr smbutil 1 ,
.Xr nsmbrc 5 ,
.Xr attributes 7 ,
.Xr mount 8 ,
.Xr mount_smbfs 8