samba
DESCRIPTION
Learn about Samba and its uses.TRANSCRIPT
![Page 2: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/2.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Samba can be used to allow connectivity between
Linux and Windows(xp,vista,2003,2008). Samba can be
used to share printers, share directories, connect to an
2003 domain, and many other useful features. However,
this tutorial explains the steps involved in basic
configuring Samba for file and print sharing.
SAMBA
![Page 3: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/3.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
Packages : Samba,samba-common,samba-clientDaemons : /usr/sbin/nmbd, /usr/sbin/smbd
Script : /etc / init.d /smb
Port : Tcp: 445(-ds)
Configuration : /etc /samba /*
Related : system-config-samba, testparm
![Page 4: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/4.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
The /etc/samba/smb.conf file is the main configuration file you'll need to edit. It is split into five major sections, they are
Section Description
[global] General Samba configuration parameters
[printers] Used for configuring printers Used for configuring printers
[homes] Defines treatment of user logins
[netlogon] A share for storing logon scripts.
[profile] A share for storing domain logon information such as "favorites" and desktop icons.
![Page 5: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/5.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
Creating common share directory : vi /etc /samba /smb.conf
[my share]
comment = share for john and jerry
path = /data/test
valid user = john sam
public = no
writable = yes
printable = no
create mask = 0765
SAMBA
![Page 6: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/6.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
Installing the samba package using the yum
![Page 7: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/7.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
Installing the samba-config-samba package
using the yum
![Page 8: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/8.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
The dependency has been resolved
![Page 9: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/9.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
The samba package has been installed successfully
![Page 10: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/10.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
SAMBA
Now installing the samba-devel package
![Page 12: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/12.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
This is the share name of the samba folder
This is the comment for the samba folder
This is the path of the samba folder
The valid users can be listed here
![Page 13: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/13.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
The name of the samba share is samba share
The path of the samba share folder is /home
![Page 14: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/14.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
The smb service is restarted to changes take effect
![Page 15: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/15.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
The smb service is restarted successfully
![Page 16: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/16.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Now go to windows machine, open run and type the samba
shared ip, and enter. followed by backward slash “\\”
![Page 17: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/17.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
The samba username and password are prompting to
access the samba share
![Page 18: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/18.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
The samba username and password are given
![Page 19: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/19.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
The samba shared folder is viewed. i.e samba share
![Page 20: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/20.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Now the user john home directory is also available
![Page 21: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/21.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Now creating the new directory in the user john
home directory
![Page 22: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/22.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
It has been created successfully
![Page 23: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/23.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Edit the samba configuration file
![Page 24: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/24.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Enter the domain name
Enable the time server
Enable the domain logon
Enable the preferred master
Time the o/s level 65
Enable the domain master
![Page 25: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/25.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Create a user for windows accounts
![Page 26: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/26.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Add the user for vectra$
![Page 27: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/27.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Create a smbpasswd for root user
![Page 28: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/28.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
View the samba passwd file.
![Page 29: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/29.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Check the sbmb configration files in any
syntax error.
![Page 30: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/30.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Samba domain configuration displayed
hear.
![Page 32: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/32.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Change the computer name
![Page 33: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/33.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Enter the samba domain name
![Page 35: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/35.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Sabma domain sues fully connected .
![Page 37: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/37.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Now restart the computer
![Page 38: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/38.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Enter the samba domain user name password and
domain name.
![Page 39: Samba](https://reader036.vdocuments.us/reader036/viewer/2022062801/563dbb27550346aa9aaab3e5/html5/thumbnails/39.jpg)
ADVANTAGE PRO – Networking With Success
[email protected] 91-44-28263529 /30
Samba home folder also mounted automatically.