Samba is a free software re-implementation of the SMB networking protocol, and was originally developed by Andrew Tridgell. Samba provides file and print services for various Microsoft Windows clients and can integrate with a Microsoft Windows Server domain, either as a Domain Controller or as a domain member.

Uses Of Samba.

  1.  As a File Server like NFS to share the files but across OS (linux to windows).
  2. As a WINS [Windows Internet Name Server] or NBNS server.
  3.  As a PDC [SAM – Security Access Module].
  4. As a Print Server using CUPS.

Samba Details.

Package= samba*
Script= /etc/init.d/smb
service name= smb
daemon= smbd
Configuration File= /etc/samba/smb.conf

Question Paper

  • Configure smb service on system1 as follows
  • Your smb server must be a member of the STAFF workgroup
  • The service must share the /common directory. the share name must be
  • The common share must be available to domain
    client only
  • The common must be browseable
  • The user floyd must have read access the share,authenticating with the
    password indionce if necessary.

Use the following instructions to install and configure the SAMBA Server and Client on Linux  RHEL7.0

ON server side

  • Install Samba Server Packages
# yum -y install samba*
  • Configure the Samba Server.
# mkdir /common
# semanage fcontext -a -t samba_share_t '/common(/.*)?'
# restorecon -vvFR /common
# vim /etc/samba/smb.conf
valid user=floyd
hosts allow=
-----------------------Save and Exit------------------------------
  • Now Create a User Floyd and Enable Floyd.
# useradd floyd
# smbpasswd -a floyd         -----password=indionce---------
# smbpasswd -e floyd
  • Restart SMB NMB services.
# systemctl restart smb nmb
# systemctl enable smb nmb
  • Firewall Add
# firewall-cmd --permanent --add-service=samba
# firewall-cmd --complete-reload
  • Given Permission from SeLinux.
# setsebool -P samba_enable_home_dirs on
# setsebool -P samba_export_all_rw on
# systemctl restart smb nmb
# systemctl enable smb nmb

ON desktop side

  • Firstly install Samba-client package.
# yum -y install samba*
  • Verify the access from samba client.
# smbclient //server0/common -U floyd
give Floyd password=indionce then Login floyd successfully

PDF download here

I hope apko ye post pasand aya hoga aur helpful bhi hai to pls ise share kare kyunki  ye question apke friend ke kaam aa sakte hai.

Thank You


Please enter your comment!
Please enter your name here