Yadda ake aiwatar da cikakken Samba Server a cikin Ubuntu 24.04?

Samba Server akan Ubuntu 24.04: Shigarwa da saitin farko

Samba Server akan Ubuntu 24.04: Shigarwa da saitin farko

Makon da ya gabata, mun raba jagorar da aka sabunta ta farko, mayar da hankali wajen ba su ka'idar da aiki, mahimmanci ko asali don kowa ya iya cimma, da sauri, kai tsaye da sauƙi, aiwatar da Sabar Samba mai sauƙi a cikin Ubuntu 24.04. Wani abu da zai iya zama da amfani sosai don aiwatarwa, duka a cikin ƙaramin gida da ƙaramin ofis. Sama da duka, me yasa a ciki, muna magana ne kawai game da amfani da manyan fayiloli ɗaya ko fiye na jama'a (ba tare da samun damar masu amfani da kalmar wucewa ba), akan bangare ko babban fayil na rumbun kwamfutarka na tsarin, kamar daga ƙarin rumbun kwamfutarka wanda aka saka ta atomatik ta fstab. .

Amma, idan aka ba da lokacin da ake buƙatar aiwatar da wani abu mafi ƙarfi da inganci, don ba da inganci da aminci. ajiya da raba fayiloli a cikin hanyar sadarwa da tsarin gudanarwa, Babban abu shine ƙirƙirar manyan fayiloli don nau'ikan nau'ikan ko ƙungiyoyin masu amfani, tunda a yau zamuyi bayani a cikin wannan kashi na biyu yadda zamu iya cimma wannan manufar. Wato, da "yadda zaku iya aiwatar da cikakken Samba Server a cikin Ubuntu 24.04" tare da manyan fayiloli masu kariya ta sunan mai amfani da kalmar sirri.

Samba Server akan Ubuntu 24.04: Shigarwa da saitin farko

Amma, kafin fara wannan sabon jagora mai sauri da na biyu akan aiwatarwa «cikakken Samba Server akan Ubuntu 24.04, muna ba da shawarar ku bincika bayanan da suka gabata da wannan batu, a karshen karanta shi:

Samba Server akan Ubuntu 24.04: Shigarwa da saitin farko
Labari mai dangantaka:
Yadda ake aiwatar da Sabar Samba mai sauƙi a cikin Ubuntu 24.04?
Samba shine daidaitaccen tsari na shirye-shiryen haɗin gwiwar Windows don Linux da Unix.

Samba samfuri ne na uwar garken multifunctional, wanda kuma yana ba da aiwatar da uwar garken fayil, sabis na bugawa, da uwar garken ainihi (winbind).

Cikakken Samba Server akan Ubuntu 24.04: Tsarin ƙarshe

Matakai don gina cikakken Samba Server akan Ubuntu

Cigaba da yanayin aiki na jagora mai sauri na farko akan Samba, za mu yi kamar muna cikin a Cibiyar sadarwa na aiki na makarantar makaranta, ta yadda ban da babban fayil na jama'a da ke isa ga duk ma'aikata da ɗalibai, ana iya ba da manyan fayilolin da aka raba ga duk rukunin ayyukan da suka dace. Kamar ma'aikata: Manager, Teacher, Gudanarwa da Ma'aikaci.

Mataki 1: Fara da bincika Samba Server ɗin da aka ƙirƙira a baya

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 01

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 02

Mataki 2: Gudanar da masu amfani da kama-da-wane a cikin Tsarin aiki da Samba

Ka tuna cewa masu amfani da za a ƙirƙira su saboda kyakkyawan aikin kwamfuta za su kasance ta hanyar umarnin "useradd" da siga "nologin", tare da manufar cewa sun hana shiga uwar garken, wato, Ba za su iya zahiri yin shiga ta zahiri cikin uwar garken tare da asusun mai amfani ba.

Ko kuma a wasu kalmomi, wannan hanyar ƙirƙirar masu amfani yana ba mu damar ƙirƙirar asusun da ba sa buƙatar damar shiga cikin hulɗa a cikin uwar garken da aka sarrafa ko mai watsa shiri. Saboda haka, manufa ta manufa ita ce hana masu amfani shiga, amma har yanzu suna da ingantaccen Shell don aiwatar da ayyuka.

An yi amfani da umarnin umarni

Ƙirƙirar masu amfani a cikin tsarin aiki

useradd -M -s /sbin/nologin usersdir #Dirección general
useradd -M -s /sbin/nologin usersaca #Subdirección Academica
useradd -M -s /sbin/nologin usersadm #Subdirección Administrativa
useradd -M -s /sbin/nologin userstec #Subdirección Técnica
useradd -M -s /sbin/nologin usersdoc #Docentes
useradd -M -s /sbin/nologin usersobr #Obreros

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 03

Ƙirƙirar kalmar sirri ga kowane mai amfani da ya gabata

passwd usersdir
passwd usersaca
passwd usersadm
passwd userstec
passwd usersdoc
passwd usersobr

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 04

Tsarin ƙara (haɗin kai) masu amfani zuwa uwar garken Samba ta amfani da kalmar sirri

smbpasswd -a usersdir
smbpasswd -a usersaca
smbpasswd -a usersadm
smbpasswd -a userstec
smbpasswd -a usersdoc
smbpasswd -a usersobr

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 05

Tsarin ƙirƙirar ƙungiyar mai amfani

groupadd dirgen
groupadd sdiraca
groupadd sdiradm
groupadd sdirtec
groupadd obreros
groupadd docentes

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 06

Tsarin ƙara (haɗin kai) ƙungiyoyin masu amfani da masu amfani masu inganci

usermod -aG dirgen usersdir
usermod -aG sdiraca usersaca
usermod -aG sdiradm usersadm
usermod -aG sdirtec userstec
usermod -aG obreros usersobr
usermod -aG docentes usersdoc

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 07

Tsarin ƙirƙirar manyan fayiloli (directory) don ƙungiyoyin masu amfani

sudo mkdir /media/disk2/dirgen/ ; sudo chmod -R 777 /media/disk2/dirgen/ ; sudo chown nobody:nogroup -R /media/disk2/dirgen/
sudo mkdir /media/disk2/dirgen/sdiraca ; sudo chmod -R 777 /media/disk2/dirgen/sdiraca ; sudo chown nobody:nogroup -R /media/disk2/dirgen/sdiraca
sudo mkdir /media/disk2/dirgen/sdiradm ; sudo chmod -R 777 /media/disk2/dirgen/sdiradm ; sudo chown nobody:nogroup -R /media/disk2/dirgen/sdiradm
sudo mkdir /media/disk2/dirgen/sdirtec ; sudo chmod -R 777 /media/disk2/dirgen/sdirtec ; sudo chown nobody:nogroup -R /media/disk2/dirgen/sdirtec
sudo mkdir /media/disk2/dirgen/obreros ; sudo chmod -R 777 /media/disk2/dirgen/obreros ; sudo chown nobody:nogroup -R /media/disk2/dirgen/obreros
sudo mkdir /media/disk2/dirgen/docentes ; sudo chmod -R 777 /media/disk2/dirgen/docentes ; sudo chown nobody:nogroup -R /media/disk2/dirgen/docentes

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 08

Mataki 3: Sarrafa fayil ɗin sanyi na Samba da sabbin hannun jari

A wannan lokaci, dole ne mu bude namu "smb.conf" fayil, a baya baya baya, don saka abun ciki mai zuwa, kuma ci gaba da tsari:

[DirGen]
   comment = Carpeta compartida DirGen
   path = /media/disk2/dirgen
   valid users = root @usersdir
   write list = root @usersdir
   browsable = yes
   writable = yes
   guest ok = no
   force create mode = 0770
   force directory mode = 0770
   read only = no
   force group = dirgen

[SubDirAca]
   comment = Carpeta compartida Sub Dir Academica
   path = /media/disk2/dirgen/sdiraca
   valid users = root @usersaca
   write list = root @usersaca
   browsable = yes
   writable = yes
   guest ok = no
   force create mode = 0770
   force directory mode = 0770
   read only = no
   force group = sdiraca

[SubDirAdm]
   comment = Carpeta compartida Sub Dir Administrativa
   path = /media/disk2/dirgen/sdiradm
   valid users = root @usersadm
   write list = root @usersadm
   browsable = yes
   writable = yes
   guest ok = no
   force create mode = 0770
   force directory mode = 0770
   read only = no
   force group = sdiradm

[SubDirTec]
   comment = Carpeta compartida Sub Dir Tecnica
   path = /media/disk2/dirgen/sdirtec
   valid users = root @userstec
   write list = root @userstec
   browsable = yes
   writable = yes
   guest ok = no
   force create mode = 0770
   force directory mode = 0770
   read only = no
   force group = sdirtec

[Obreros]
    comment = Carpeta compartida Trabajadores Obreros
    path = /media/disk2/dirgen/obreros
    valid users = root @usersobr
    write list = root @usersobr
    browsable = yes
    writable = yes
    guest ok = no
    force create mode = 0770
    force directory mode = 0770
    read only = no
    force group = obreros

[Docentes]
    comment = Carpeta compartida Trabajadores Docentes
    path = /media/disk2/dirgen/docentes
    valid users = root @usersdoc
    write list = root @usersdoc
    browsable = yes
    writable = yes
    guest ok = no
    force create mode = 0770
    force directory mode = 0770
    read only = no
    force group = docentes

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 09

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 10

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 11

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 12

Sake kunna tafiyar matakai masu alaƙa da Samba Server da NetBIOS

Bayan adana canje-canje da fita daga fayil ɗin sanyi na Samba, dole ne mu sake farawa ayyukan da ke da alaƙa da shi, tare da odar umarni:

systemctl restart smbd nmbd

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 13

Cikakken Samba Server akan Ubuntu 24.04 - Screenshot 14

Dubawa da tabbatar da tsarin Samba na yanzu

Ana ba da shawarar gwada canje-canjen da aka yi tare da oda mai zuwa:

testparm

Screenshot 15

Screenshot 16

Screenshot 17

Screenshot 18

Mataki na 4: Tabbatarwa na gida da nesa na samun dama ga albarkatun Samba da aka ƙirƙira

Daga wannan Ubuntu 24.04 Server

Screenshot 19

Screenshot 20

Daga kwamfutoci akan Intanet

Screenshot 21

Screenshot 22

Screenshot 23

Screenshot 24

Screenshot 25

A ƙarshe, za mu iya tabbatar da damar shiga da izini da aka ba kowane babban fayil, ƙungiya da mai amfani halitta. Kuma idan komai ya riga ya yi aiki daidai, za mu iya dakatar da aikin gaba ɗaya har sai an nemi mu ko buƙatar sabon canji.

Samba shine daidaitaccen tsari na shirye-shiryen haɗin gwiwar Windows don Linux da Unix.
Labari mai dangantaka:
An riga an fitar da Samba 4.20 kuma ya zo tare da ɗimbin canje-canje da sabbin abubuwa

Takaitacciyar 2023 - 2024

Tsaya

A taƙaice, muna fatan wannan sabon jagora mai sauri mai amfani akan aiwatarwa «Samba Server akan Ubuntu 24.04, duka mai sauƙi da cikakke, yana ba da damar da yawa, tare da ƴan kaɗan kuma daidaitattun matakai, don jin daɗin a ƙananan kuma ingantaccen sabis na ajiyar Samba, game da kowane gida ko ofis. Kuma idan kun san wasu shawarwari ko shawarwari masu amfani don ingantawa ko cika wannan jagorar mai sauri, muna gayyatar ku don gaya mana game da su ta hanyar yin sharhi don sanin kowa da amfaninsa.

A ƙarshe, ku tuna don raba wannan matsayi mai ban sha'awa da ban sha'awa tare da wasu, haka ma ziyarci farkon mu «shafin yanar gizo» da Espanol. Ko, a cikin kowane harshe (kawai ta ƙara haruffa 2 zuwa ƙarshen URL ɗin mu na yanzu, misali: ar, de, en, fr, ja, pt da ru, da sauran su) don ƙarin koyan abubuwan da ke cikin yanzu. Bugu da ƙari, muna gayyatar ku don shiga cikin mu Official Telegram channel don karantawa da raba ƙarin labarai, jagorori da koyarwa daga gidan yanar gizon mu. Haka kuma, na gaba Alternative Telegram channel don ƙarin koyo game da Linuxverse gabaɗaya.


Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Wanda ke da alhakin bayanan: Miguel Ángel Gatón
  2. Manufar bayanan: Sarrafa SPAM, sarrafa sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.