Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet402/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   398   399   400   401   402   403   404   405   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 306 
]
The 
name resolve order
 setting configures how Samba resolves hostnames. In 
this case, we're using the broadcast name first, followed by 
wins
. Since 
wins
 has 
been pretty much abandoned (and replaced by DNS), we include it here solely for 
compatibility with legacy networks.
include = /etc/samba/smbshared.conf 
Remember how I mentioned that I usually split my Samba configurations into two 
different files? On this line, I'm calling that second 
/etc/samba/smbshared.conf
 file. 
The contents of the 
smbshared.conf
 file will be inserted right here, as if we only had 
one file. We haven't created the 
smbshared.conf
 file yet. Let's take care of that next. 
Here's a sample 
smbshared.conf
 file:
[Documents] 
path = /share/documents 
force user = myuser 
force group = users 
public = yes 
writable = no 
 
[Public] 
path = /share/public 
force user = myuser 
force group = users 
create mask = 0664 
force create mode = 0664 
directory mask = 0777 
force directory mode = 0777 
public = yes 
writable = yes 
As you can see, I'm separating share 
declarations in their own file. We can see 
several 
interesting things within 
smbshared.conf
. First, we have two stanzas
[Documents]
 
and 
[Public]
. Each stanza is a share name, which will allow Windows users to 
access the share under 
//servername/share-name
. In this case, this file will give us 
two shares: 
//servername/Documents
 and 
//servername/Public
. The 
Public
 share 
is writable for everyone, though the 
Documents
 share is restricted to read only. The 
Documents
 share has the following options:
path = /share/documents 


Chapter 12

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   398   399   400   401   402   403   404   405   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish