Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 580 — #606
i
i
i
i
i
i
i
i
path = /media/cdrom path exports the directory /media/
cdrom.
By means of a very restrictive default configuration, this kind of
share is only made available to the users present on this system.
If this share should be made available to everybody, add a line
guest ok = yes to the configuration. This setting gives read per-
missions to anyone on the network. It is recommended to handle this
parameter with great care. This applies even more to the use of this
parameter in the [global] section.
[homes] The [home] share is of special importance here. If the user has
a valid account and password for the Linux file server and his own
home directory, he can be connected to it.
Example 24.2: homes Share
[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
create mask = 0640
directory mask = 0750
[homes] As long as there is no other share using the share name of
the user connecting to the SMB server, a share is dynamically
generated using the [homes] share directives. The resulting
name of the share is identical to the user name.
valid users = %S %S is replaced with the concrete name of the
share as soon as a connection has been successfully established.
For a [homes] share, this is always identical to the user’s name.
As a consequence, access rights to a user’s share are restricted
exclusively to the user.
browseable = No This setting makes the share invisible in the
network environment.
read only = No By default, Samba prohibits write access to any
exported share by means of the read only = Yes parame-
ter. To make a share writable, set the value read only = No,
which is synonymous with writeable = Yes.
580
24.1. Samba










