|
28.
|
|
|
Configuration
|
|
|
|
Настройка
|
|
Translated and reviewed by
diablo
|
|
|
|
Located in
docs/sharing/C/sharing.xml:106(title)
|
|
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.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:107(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: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.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:143(programlisting)
|
|
42.
|
|
|
<emphasis>create mask:</emphasis> determines the permissions new files will have when created.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:195(para)
|
|
43.
|
|
|
Now that <application>Samba</application> is configured, the directory needs to be created and the permissions changed. From a terminal, enter:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:203(para)
|
|
44.
|
|
|
sudo mkdir -p /srv/samba/share
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:208(command)
|
|
45.
|
|
|
sudo chown nobody.nogroup /srv/samba/share/
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:209(command)
|
|
46.
|
|
|
The <emphasis>-p</emphasis> switch tells <command>mkdir</command> to create the entire directory tree if it doesn't exist. Change the share name to fit the environment.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:212(para)
|
|
48.
|
|
|
sudo /etc/init.d/samba restart
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/sharing/C/sharing.xml:224(command) docs/sharing/C/sharing.xml:365(command) docs/sharing/C/sharing.xml:468(command) docs/sharing/C/sharing.xml:818(command) docs/sharing/C/sharing.xml:911(command) docs/sharing/C/sharing.xml:1017(command)
|