Birmingham mumbai


Sharing files with Windows users



Download 15,21 Mb.
Pdf ko'rish
bet400/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   396   397   398   399   400   401   402   403   ...   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)

Sharing files with Windows users 
via Samba
In this section, I'll walk you through setting up your very own 
Samba
 file server. I'll 
also go over a sample configuration to get you started so that you can add your own 
shares. One feature that Samba supports is integration with Active Directory, but 
that's outside the scope of this book as that's a feature specific to Windows Server. 


Sharing and Transferring Files
[
 304 
]
I mention that here because our Samba implementation will be relatively wide open, 
which is a bad practice. With Active Directory, you can have more effective control 
over user access. But to keep it simple, we'll create a simple Samba server to get you 
started, and then from there, you can research more complex implementations if it 
makes sense to do so for your organization.
First, we'll need to make sure that the 
samba
 package is installed on our server:
sudo apt install samba 
When you install the 
samba
 package, you'll have a new daemon installed on your 
server, 
smbd
. The 
smbd
 daemon will be automatically started and enabled for you. 
You'll also be provided with a default configuration file for Samba, located at 
 
/etc/samba/smb.conf
. For now, I recommend stopping 
samba
 since we have yet to 
configure it:
sudo systemctl stop smbd 
Since we're going to configure Samba from scratch, we should start with an empty 
configuration file. Let's back up the original file, rather than overwrite it. The default 
file includes some useful notes and samples, so we should keep it around for future 
reference:
sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.orig
Now, we can begin a fresh configuration. Although it's not required, I 
like to split my 
Samba 
configuration up between two files, 
/etc/samba/smb.conf
 and 
/etc/samba/
smbshared.conf
. You don't have to do this, but I think it makes the configuration 
cleaner and easier to read. First, here is a sample 
/etc/samba/smb.conf
 file:
[global] 
server string = File Server 
workgroup = WORKGROUP 
security = user 
map to guest = Bad User 
name resolve order = bcast wins 
include = /etc/samba/smbshared.conf 
As you can see, this is a really short file. Basically, we're including only the lines we 
absolutely need to in order to set up a file server with Samba. Next, I'll explain each 
line and what it does.
[global] 


Chapter 12

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   396   397   398   399   400   401   402   403   ...   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