|
29.
|
|
|
The main <application>Samba</application> 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.
|
|
|
|
Fail konfigurasi <application>Samba</application> utama berada dalam <filename>/etc/samba/smb.conf</filename>. Fail konfigurasi lalai mempunyai bilangan ulasan yang jelas supaya dapat dokumenkan pelbagai arahan konfigurasi.
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:107(para)
|
|
30.
|
|
|
Not all of the available options are included in the default configuration file. See the <filename>smb.conf</filename><application>man</application> page or the <ulink url="http://samba.org/samba/docs/man/Samba-HOWTO-Collection/"><application>Samba</application> HOWTO Collection</ulink> for more details.
|
|
|
|
Bukan semua pilihan tersedia disertakan dalam fail konfigurasi lalai. RUjuk halaman<application>man</application> <filename>smb.conf</filename> atau <ulink url="http://samba.org/samba/docs/man/Samba-HOWTO-Collection/"><application>Samba</application> HOWTO Collection</ulink> untuk perincian lanjut.
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:136(para)
|
|
31.
|
|
|
Edit the following key/value pairs in the <emphasis>[global]</emphasis> section of <filename>/etc/samba/smb.conf</filename>:
|
|
|
|
Sunting pasangan kunci/nilai berikut dalam bahagian <emphasis>[global]</emphasis> <filename>/etc/samba/smb.conf</filename>:
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:123(para)
|
|
32.
|
|
|
workgroup = EXAMPLE
...
security = user
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
workgroup = CONTOH
...
security = user
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:127(programlisting) docs/sharing/C/sharing.xml:663(programlisting) docs/sharing/C/sharing.xml:865(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.
|
|
|
|
Parameter <emphasis>keselamatan</emphasis> adalah lebih jauh dibawah di dalam bahagian [global], dan diulas secara lalai. Ubah <emphasis>CONTOH</emphasis> untuk padankan dengan persekitaran sebenar.
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:132(para)
|
|
34.
|
|
|
Create a new section at the bottom of the file, or uncomment one of the examples for the directory to be shared:
|
|
|
|
Cipta bahagian baru pada bahagian bawah fail, atau nyahulas salah satu contog direktori yang akan dikongsi:
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:139(para)
|
|
35.
|
|
|
[share]
comment = Ubuntu File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
[share]
comment = Ubuntu File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:143(programlisting)
|
|
36.
|
|
|
<emphasis>comment:</emphasis> a short description of the share. Adjust to fit as appropriate.
|
|
|
|
<emphasis>comment:</emphasis> keterangan ringkas perkongsian. Laras untuk suai muatkan.
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:154(para)
|
|
37.
|
|
|
<emphasis>path:</emphasis> the path to the directory to share.
|
|
|
|
<emphasis>path:</emphasis> laluan ke direktori untuk dikongsi.
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:160(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, <application>Samba</application> shares can be placed anywhere on the filesystem as long as the permissions are correct, but adhering to standards is recommended.
|
|
|
|
Contoh ini menggunakan <filename>/srv/samba/sharename</filename> kerana, berdasarkan pada <emphasis>Piawaian Hieraki Sistem Fail (FHS)</emphasis>, <ulink url="http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM"> /srv</ulink> adalah dimana data khusus-laman patut disediakan. Secara teknikal, perkongsian <application>Samba</application> boleh diletak dimana sahaja pada sistem fail selagi keizinan adalah betul, tetapi mengikut piawaian cadangan.
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:194(para)
|