Cov txheej txheem:

Yuav Ua Li Cas Teeb Samba (file Server): 6 Cov Kauj Ruam
Yuav Ua Li Cas Teeb Samba (file Server): 6 Cov Kauj Ruam

Video: Yuav Ua Li Cas Teeb Samba (file Server): 6 Cov Kauj Ruam

Video: Yuav Ua Li Cas Teeb Samba (file Server): 6 Cov Kauj Ruam
Video: Yuav ua li cas By Nhia Lor [full version] 2024, Hlis ntuj nqeg
Anonim
Yuav teeb tsa Samba (file server) li cas
Yuav teeb tsa Samba (file server) li cas

Cov Lus Qhia no yuav coj koj los ntawm kev teeb tsa SambaThis Cov Lus Qhia yog ua raws Linux Ubuntu 9.04. Cov lus qhia ntawm kev teeb tsa nws nrog cov kho tshiab yuav zoo ib yam nkaus Kuv yuav tsom mus rau tsuas yog teeb tsa cov ntaub ntawv server nyob rau hauv Cov Lus Qhia no, txawm hais tias Samba tuaj yeem nthuav dav los ua tus Active Domain Controller rau Windows thiab ntau ntxiv

Kauj ruam 1: Tom qab ntawm Samba

Samba yog Open Source/Dawb Software suite uas muab cov ntaub ntawv tsis sib xws thiab luam cov kev pabcuam rau SMB/CIFS cov neeg siv khoom. Samba muaj pub dawb, tsis zoo li lwm qhov kev siv SMB/CIFS, thiab tso cai rau kev sib koom tes ua haujlwm ntawm Linux/Unix servers thiab Windows-based cov neeg siv khoom. Windows, piv txwv li, UNIX, Linux, IBM System 390, OpenVMS, thiab lwm yam kev ua haujlwm. Samba siv TCP/IP raws tu qauv uas tau teeb tsa ntawm tus tswv tsev. Thaum raug teeb tsa kom raug, nws tso cai rau tus tswv ntawd sib cuam tshuam nrog Microsoft Windows tus thov lossis server zoo li nws yog Windows cov ntaub ntawv thiab luam ntawv server. pob software uas muab cov tswj hwm network hloov pauv tau yooj yim thiab muaj kev ywj pheej ntawm kev teeb tsa, teeb tsa, thiab xaiv cov kab ke thiab khoom siv. Vim tias txhua yam uas nws muaj, Samba tau loj hlob hauv qhov muaj koob npe, thiab txuas ntxiv ua li ntawd, txhua xyoo txij li nws tau tso tawm xyoo 1992. Yog xav paub ntxiv txog Samba lossis SMB, saib: Qhia rau SambaSMB/CIFS Txuas

Los ntawm no

Kauj ruam 2: Wb Pib

Cia Peb Pib!
Cia Peb Pib!

Ua ntej rub tawm thiab teeb tsa qhov tshiab tshaj plaws ntawm UbuntuRun hloov tus thawj coj hloov tshiab UbuntuTo kom tau txais Samba qhib davhlau ya nyob twg thiab khiav sudo apt-tau nruab samba

Kauj ruam 3: Configure Samba

Configure Samba
Configure Samba
Configure Samba
Configure Samba

Ntaus sudo gedit /etc/samba/smb.conf hauv davhlau ya nyob twg los qhib thiab kho cov ntaub ntawv teeb tsa Samba.

Xaub mus rau Ntiaj Teb Chaw hauv cov ntaub ntawv.conf

Hloov WORKGROUP rau txhua yam uas koj xav kom koj pawg ua haujlwm. Ntxiv netbios lub npe = server thiab hloov server nrog txhua yam uas koj xav tau lub npe servers.

Qhib nqes los Qhia Cov Lus Txhais hauv cov ntawv.conf

Hloov yog tom ntej nyeem-tsuas yog tsis yog koj xav kom tuaj yeem sau rau lub driveChange %S tom ntej rau cov neeg siv raug rau cov neeg siv uas koj xav kom tuaj yeem nkag mus rau lub zog no (peb yuav ntxiv cov neeg siv rau hauv kab ke hauv cov kauj ruam tom ntej) Un-tawm tswv yim cov kev xaiv muaj ([tsev], tawm tswv yim, nrhiav tau, nyeem nkaus xwb thiab siv tau) los ntawm kev tshem tawm; Nyob rau hauv pem hauv ntej ntawm lawv Yog tias koj xav ntxiv ntau lub zog tsuas yog rov ua cov kev xaiv xws li [pej xeem] tawm tswv yim = Cov ntaub ntawv txoj hauv kev = /xa tawm cov neeg siv = lub zog hluav taws xob hluav taws xob = cov neeg siv nyeem nkaus xwb = Tsis muaj Txoj Kev yog qhov chaw uas sib koom tsav tsheb nyob.

Kauj Ruam 4: Ntxiv Cov Neeg Siv rau Samba

Ntxiv Cov Neeg Siv rau Samba
Ntxiv Cov Neeg Siv rau Samba

Ntxiv cov neeg siv rau Ubuntu los ntawm kev ntaus qhov no rau hauv lub davhlau ya nyob twg piv txwv li sudo useradd -c "Thermoelectric Rules" -m -g cov neeg siv -p lo lus zais Thermoelectric Koj hloov tus password nrog cov neeg siv lo lus zais. Koj hloov Thermoelectric Cov Cai nrog koj lub npe tiag tiag. Koj hloov Thermoelectric nrog koj lub npe siv. Repeat tias kom txog thaum koj tau ua tus lej rau txhua tus ntawm koj cov neeg siv Tom qab ntawd ntxiv cov neeg siv rau Samba los ntawm kev ntaus qhov no rau hauv lub davhlau ya nyob twg piv txwv sudo smbpasswd -a Thermoelectric Hloov Thermoelectric nrog koj lub npe siv rov ua dua kom txog thaum koj tau ntxiv txhua tus neeg siv rau Samba

Kauj ruam 5: Pib thiab Xeem Samba

Pib Samba los ntawm kev ua qhov no hauv davhlau ya nyob twg sudo nmbd; smbd; Kho cov /export directory: sudo mkdir /export sudo chown Thermoelectric.users /export sudo chmod u = rwx, g = rwx, o -rwx /export Txheeb xyuas tias Samba ua haujlwm raug: sudo smbclient -L localhost -U% Txuas rau SERVER (netbios lub npe) raws li Thermoelectric (koj lub npe siv): sudo smbclient // SERVER/Thermoelectric -UThermoelectric%password

Kauj ruam 6: Ua tiav

Kuv vam tias koj txaus siab rau Cov Lus Qhia no. Yog tias muaj lus tawm tswv yim! Puas muaj ib yam dab tsi uas koj xav tias kuv xav tau ntxiv rau hauv Cov Lus Qhia? Tawm tswv yim thiab qhia kuv! Ua tsaug. Thov tawm tswv yim thiab tus nqi

Pom zoo: