SlideShare a Scribd company logo
5
Most read
7
Most read
8
Most read
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 ….
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.
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
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:
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>
sudo restart smbd
sudo restart nmbd

Now find the IP address on Ubuntu
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
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.

More Related Content

PDF
VPN (virtual private network)
PPTX
Remote login
PPTX
Network protocals
PPT
Samba server
PPTX
SNMP(Simple Network Management Protocol)
PPTX
DNS spoofing/poisoning Attack
PPT
Basic concept of computer network
PDF
MULTIPLE CHOICE QUESTIONS WITH ANSWERS ON NETWORK MANAGEMENT SYSTEMS
VPN (virtual private network)
Remote login
Network protocals
Samba server
SNMP(Simple Network Management Protocol)
DNS spoofing/poisoning Attack
Basic concept of computer network
MULTIPLE CHOICE QUESTIONS WITH ANSWERS ON NETWORK MANAGEMENT SYSTEMS

What's hot (20)

PPTX
Apache Storm - Real Time Analytics
PPT
Peer to Peer services and File systems
PPTX
Network Security
PDF
Distributed Coordination-Based Systems
PPT
Network management
PPTX
Vpn(virtual private network)
PPTX
Transport Layer Security (TLS)
PPTX
Telnet presentation
PPT
PDF
CSI-503 - 11.Distributed Operating System
PPT
Secure Socket Layer
PPTX
Prototyping to Production - Get your IoT Product to Market
PPTX
Computer network switching
PPT
File replication
PPT
ARPANET
ODP
Networking- OSI Layer Protocol Functions
PPTX
Types of Cyber Security Attacks- Active & Passive Attak
DOCX
Network architecture
PDF
2. overview of data communication part 1
PPTX
DNS & HTTP overview
Apache Storm - Real Time Analytics
Peer to Peer services and File systems
Network Security
Distributed Coordination-Based Systems
Network management
Vpn(virtual private network)
Transport Layer Security (TLS)
Telnet presentation
CSI-503 - 11.Distributed Operating System
Secure Socket Layer
Prototyping to Production - Get your IoT Product to Market
Computer network switching
File replication
ARPANET
Networking- OSI Layer Protocol Functions
Types of Cyber Security Attacks- Active & Passive Attak
Network architecture
2. overview of data communication part 1
DNS & HTTP overview
Ad

Viewers also liked (9)

PPT
server_ppt
PPSX
Linux02 install SSh
PDF
Samba server configuration
PPT
Samba server configuration
PDF
Linux Network commands
PPTX
Presentation on samba server
PPTX
Telnet & SSH Configuration
PPTX
Mail server on linux
PDF
Ubuntu 16.04 LTS Security Features
server_ppt
Linux02 install SSh
Samba server configuration
Samba server configuration
Linux Network commands
Presentation on samba server
Telnet & SSH Configuration
Mail server on linux
Ubuntu 16.04 LTS Security Features
Ad

Similar to Samba server installation and File sharing (20)

PDF
Samba tutorial
PPTX
Samba server linux (SMB) BY ROHIT MALAV
PPTX
samba server setup Pts ppt (rohit malav)
PDF
Meeting 9 samba
PPT
Diva23
PPT
Chapter 05
PPTX
Topic # 26 Samba Server.pptx
PPT
Linux webmin
ODP
Linuxs1
PDF
Samba
PDF
Linux introductory-course-day-1
PPT
Cita310chap09
PPTX
Samba server in sna
ODP
Using samba
PDF
Step by step_linux_guide
PDF
Many times when we login to a system we use a usernamepass.pdf
PPT
Samba
PPT
Chapter09 -- networking with unix and linux
PPTX
OS and Applications.pptx
PDF
Command line for the beginner - Using the command line in developing for the...
Samba tutorial
Samba server linux (SMB) BY ROHIT MALAV
samba server setup Pts ppt (rohit malav)
Meeting 9 samba
Diva23
Chapter 05
Topic # 26 Samba Server.pptx
Linux webmin
Linuxs1
Samba
Linux introductory-course-day-1
Cita310chap09
Samba server in sna
Using samba
Step by step_linux_guide
Many times when we login to a system we use a usernamepass.pdf
Samba
Chapter09 -- networking with unix and linux
OS and Applications.pptx
Command line for the beginner - Using the command line in developing for the...

More from Eagle Eyes (7)

PDF
User guide
DOCX
Html 5 tags
PDF
Project proposal templates
PPT
Domain model
PPT
Working of stock exchange
PPTX
Emotional intelligence theory
DOCX
Propsal of online voting system
User guide
Html 5 tags
Project proposal templates
Domain model
Working of stock exchange
Emotional intelligence theory
Propsal of online voting system

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Pharma ospi slides which help in ospi learning
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Final Presentation General Medicine 03-08-2024.pptx
Microbial disease of the cardiovascular and lymphatic systems
GDM (1) (1).pptx small presentation for students
Module 4: Burden of Disease Tutorial Slides S2 2025
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Pharma ospi slides which help in ospi learning
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Complications of Minimal Access Surgery at WLH
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
human mycosis Human fungal infections are called human mycosis..pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
STATICS OF THE RIGID BODIES Hibbelers.pdf
Computing-Curriculum for Schools in Ghana
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student

Samba server installation and File sharing

  • 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. 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. 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. 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. 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. sudo restart smbd sudo restart nmbd Now find the IP address on Ubuntu
  • 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. 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.