|
23.
|
|
|
The server will be configured to share files with any client on the network without prompting for a password. If the environment requires stricter Access Controls, see <xref linkend="samba-fileprint-security"/>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/sharing/C/sharing.xml:92(para)
|
|
27.
|
|
|
That's all there is to it. Samba is ready to be configured for file sharing.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/sharing/C/sharing.xml:109(para)
|
|
29.
|
|
|
The main Samba configuration file is located in <filename>/etc/samba/smb.conf</filename>. The default configuration file has a significant number of comments in order to document various configuration directives.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/sharing/C/sharing.xml:117(para)
|
|
31.
|
|
|
Edit the following key/value pairs in the <emphasis>[global]</emphasis> section of <filename>/etc/samba/smb.conf</filename>:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:148(para)
|
|
32.
|
|
|
![](/@@/translation-newline)
workgroup = EXAMPLE ![](/@@/translation-newline)
... ![](/@@/translation-newline)
security = user
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:153(programlisting) docs/sharing/C/sharing.xml:788(programlisting) docs/sharing/C/sharing.xml:1030(programlisting)
|
|
33.
|
|
|
The <emphasis>security</emphasis> parameter is farther down in the [global] section, and is commented out by default. Change <emphasis>EXAMPLE</emphasis> to match the actual environment.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:159(para)
|
|
34.
|
|
|
Create a new section at the bottom of the file, or uncomment one of the examples for the directory to be shared:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:168(para)
|
|
35.
|
|
|
![](/@@/translation-newline)
[share] ![](/@@/translation-newline)
comment = Ubuntu File Server Share ![](/@@/translation-newline)
path = /srv/samba/share ![](/@@/translation-newline)
browsable = yes ![](/@@/translation-newline)
guest ok = yes ![](/@@/translation-newline)
read only = no ![](/@@/translation-newline)
create mask = 0755
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:173(programlisting)
|
|
36.
|
|
|
<emphasis>comment:</emphasis> a short description of the share. Adjust to fit as appropriate.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:185(para)
|
|
38.
|
|
|
This example uses <filename>/srv/samba/sharename</filename> because, according to the <emphasis>Filesystem Hierarchy Standard (FHS)</emphasis>, <ulink url="http://www.pathname.com/fhs/pub/fhs-2.3. html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM">/srv</ulink> is where site-specific data should be served. Technically Samba shares can be placed anywhere on the filesystem as long as the permissions are correct, but adhering to standards is recommended.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/sharing/C/sharing.xml:180(para)
|