Samba server installation and File sharing


Published on

Published in: Education
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Samba server installation and File sharing

  1. 1. Samba Server Installation on Ubuntu and transfer Files across window and Ubuntu Samba allows file and print sharing between computers running Windows and computers running UNIX. It is an implementation of dozens of services and a dozen protocols. Samba is an implementation of the Server Message Block (SMB)/Common Internet File System (CIFS) protocol for UNIX systems, providing support for cross-platform file and printer sharing with Microsoft Windows, OS X, and other UNIX systems. Samba was originally developed for UNIX but can now run on Linux, FreeBSD and other UNIX variants. It is freely available under the GNU License. SAMBA has a client-server based architecture and consists of tools that can be used for developing services or test configurations. Steps: Samba is not installed by default. Open a terminal and type the following command: sudo apt-get install samba Configuring Samba We have to make some changes to its configuration file. Open terminal and type this. sudo gedit /etc/samba/smb.conf Editor opens ….
  2. 2. Now scroll down further till you reach the “Authentication” section. You should see the line: Remove the “#” at the front of the line. # security = user Continue to scroll down further until you reach the “Share Definitions” section. This is where you configure the files/folders that you want to share with others.
  3. 3. Remove the “;” at the front of the line. [homes] comment = Home Directories browseable = yes valid users = %S read only = no Don’t forget to change the browseable value to “yes”. You can also uncomment the read only = no line if you allow others to write to your Home folder. To add additional file sharing path, add the following lines to the end of the file: [share] comment = New Share Path path = /path/to/share/folder browseable = yes guest ok = yes read only = no create mask = 0755
  4. 4. Lastly, save and exit the file. Comment: a short description of the share. Adjust to fit your needs. path: the path to the directory to share Browseable: enables Windows clients to browse the shared directory using Windows Explorer. Guest ok: allows clients to connect to the share without supplying a password. Read only: determines if the share is read only or if write privileges are granted. Write privileges are allowed only when the value is no, as is seen in this example. If the value is yes, then access to the share is read only. Create mask: determines the permissions new files will have when created. Setting Samba user password Make sure you are login as admin.You can also create a new user account and add this user to the Samba user list to create a user account, use the following command:
  5. 5. adduser <username> To add yourself to the Samba user list, you just have to type the following command: It will then prompt you to set a password for this Samba account. sudo smbpasswd -a <username>
  6. 6. sudo restart smbd sudo restart nmbd Now find the IP address on Ubuntu
  7. 7. Suppose you are making two folders in Download folder and path is: /home/iqra/Downloads Open run on window and write IP address of Ubuntu
  8. 8. Window security Box is appear so you are enter the name and password of user that you create previous through commad adduser. Now, your folders are successfully share across Ubuntu and Window.