SAMBA Student 1: Nayef Al-Nemer Student 2: Tarek Hamze Instructor: Dr. Mohamad Al-Fadel Rihani Introduction Samba project provides file sharing and print services for computers on a network. It uses SMB protocol (Server Message Block). The services created by running Samba are available to Linux, macOS and Windows clients “Samba is a useful networking tool for any user who has both windows and Unix systems, thus it allows Windows to share files printers on the Unix host, as it allows Unix hosts to access resources shared by windows system.” Samba is comprised of three daemons (smbd, nmbd, and winbindd). Two services (smb and windbind) control how the daemons are started, stopped, and other service-related features. Each daemon is listed in detail, as well as which specific service has control over it. 1. smbd: The smbd server daemon provides file sharing and printing services to Windows clients. In addition, it is responsible for user authentication, resource locking, and data sharing through the SMB protocol. 2. nmbd: The nmbd server daemon understands and replies to NetBIOS name service requests such as those produced by SMB/CIFS in Windows-based systems. 3. winbindd: The winbindd service resolves user and group information on a server running Windows NT 2000 or Windows Server 2003. This makes Windows user / group information understandable by UNIX platforms. Note: smbd and nmbd daemon is controlled by the smb service. Implementation ON LINUX HOST 1. Update apt database with apt-get using the following command. sudo apt-get update 2. After updating apt database, we can install samba using apt-get by running the following command: sudo apt-get -y install samba 3. after installing samba run service sudo systemctl start smbd 4. Create user and password sudo smbpasswd -a abbasnemer //set password for samba service 5. Create a \shared folder on home directory cd /home/user/ mkdir shared 6. change the permission to the user to read, write and execute on this folder chmod 777 shared 7. Change the configuration file of samba to set a share folder (shared) by typing: sudo nano /etc/samba/smb.conf 8. Add these few lines at the bottom of “smb.conf” file to add shared network folder between two hosts on same network [guest] path = /home/abbasnemer/shared //set the path for created shared folder on Linux host read only = no //read and write shared folder guest ok = yes // use as guest guest only = yes 9. Finally restart samba service sudo systemctl restart smbd nmbd ON WINDOW HOST 1. Open file manager, connect through shared folder by add \\<ip_addr for Linux host>\ \\192.168.0.190\ //Example 2. Open guest folder to add files want to share with Linux host and or add files from Linux to windows host by adding files to the created shared folder on Linux host. a. On Windows b. On Linux Conclusion This project aims to facilitate sharing files within two hosts (Linux and windows) thus, preventing wasting time on copying files from host to another with pen drive.