Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet408/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   404   405   406   407   408   409   410   411   ...   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)

[
 311 
]
Earlier, we set up a parent directory in our filesystem to house our Samba shares
and we should do the same thing with NFS. While it wasn't mandatory to have a 
special parent directory with Samba (I had you do that in order to be neat, but you 
weren't required to), NFS really does want its own directory to house all of its shares. 
It's not strictly required with NFS either, but there's an added benefit in doing so, 
which I'll go over before the end of this section. In my case, I'll use 
/exports
 as an 
example, so you should make sure that that directory, or whatever you've chosen 
for NFS, exists:
sudo mkdir /exports 
Next, let's install the required NFS packages on our server. The following command 
will install NFS and its dependencies:
sudo apt install nfs-kernel-server 
Once you install the 
nfs-kernel-server
 package, the 
nfs-kernel-server
 daemon 
will start up automatically. It will also create a default 
/etc/exports
 file (which is the 
main file that NFS reads its share information from), but it doesn't contain any useful 
settings, just some commented lines. Let's back up the 
/etc/exports
 file, since we'll 
be creating our own:
sudo mv /etc/exports /etc/exports.orig 
To set up NFS, let's first create some directories that we will share with other 
users. Each share in NFS is known as an 
export
. I'll use the following directories as 
examples, but you can export any directory you like:
/exports/backup 
/exports/documents 
/exports/public 
In the 
/etc/exports
 file (which we're creating fresh), I'll insert the following four 
lines:
/exports *(ro,fsid=0,no_subtree_check) 
/exports/backup 192.168.1.0/255.255.255.0(rw,no_subtree_check) 
/exports/documents 192.168.1.0/255.255.255.0(ro,no_subtree_check) 
/exports/public 192.168.1.0/255.255.255.0(rw,no_subtree_check) 
The first line is 
export root
, which I'll go over a bit later. The next three lines are 
individual shares or exports. The 
/backup

/documents
, and 
/public
 directories are 
being shared from the 
/exports
 parent directory. Each of these lines is not only 
specifying which directory is being shared with each export, but also which network 
is able to access them. 


Sharing and Transferring Files

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   404   405   406   407   408   409   410   411   ...   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