SlideShare a Scribd company logo
1 of 8
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

What's hot

network filesystem briefs
network filesystem briefsnetwork filesystem briefs
network filesystem briefs
bergwolf
 
Step by step_linux_guide
Step by step_linux_guideStep by step_linux_guide
Step by step_linux_guide
vinod31dec
 

What's hot (20)

Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba server
 
Samba power point presentation
Samba power point presentationSamba power point presentation
Samba power point presentation
 
Samba server linux (SMB) BY ROHIT MALAV
Samba server linux (SMB) BY ROHIT MALAVSamba server linux (SMB) BY ROHIT MALAV
Samba server linux (SMB) BY ROHIT MALAV
 
Linux Based Network Proposal
Linux Based Network ProposalLinux Based Network Proposal
Linux Based Network Proposal
 
File Sever
File SeverFile Sever
File Sever
 
samba server setup Pts ppt (rohit malav)
samba server setup Pts ppt (rohit malav)samba server setup Pts ppt (rohit malav)
samba server setup Pts ppt (rohit malav)
 
Samba tutorial
Samba tutorialSamba tutorial
Samba tutorial
 
Ftp server linux
Ftp server linuxFtp server linux
Ftp server linux
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
 
Samba
SambaSamba
Samba
 
Postfix
PostfixPostfix
Postfix
 
Ubuntu For Intranet Services
Ubuntu For Intranet ServicesUbuntu For Intranet Services
Ubuntu For Intranet Services
 
Server configuration
Server configurationServer configuration
Server configuration
 
Cita310chap09
Cita310chap09Cita310chap09
Cita310chap09
 
network filesystem briefs
network filesystem briefsnetwork filesystem briefs
network filesystem briefs
 
Samba server configuration
Samba server configurationSamba server configuration
Samba server configuration
 
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
 
Step by step_linux_guide
Step by step_linux_guideStep by step_linux_guide
Step by step_linux_guide
 
Linux10 sendmail
Linux10 sendmailLinux10 sendmail
Linux10 sendmail
 
Network File System (NFS)
Network File System (NFS)Network File System (NFS)
Network File System (NFS)
 

Viewers also liked (6)

server_ppt
server_pptserver_ppt
server_ppt
 
Linux02 install SSh
Linux02 install SShLinux02 install SSh
Linux02 install SSh
 
Linux Network commands
Linux Network commandsLinux Network commands
Linux Network commands
 
Telnet & SSH Configuration
Telnet & SSH ConfigurationTelnet & SSH Configuration
Telnet & SSH Configuration
 
Mail server on linux
Mail server on linux Mail server on linux
Mail server on linux
 
Ubuntu 16.04 LTS Security Features
Ubuntu 16.04 LTS Security FeaturesUbuntu 16.04 LTS Security Features
Ubuntu 16.04 LTS Security Features
 

Similar to Samba server installation and File sharing

Diva23
Diva23Diva23
Diva23
diva23
 
Linux introductory-course-day-1
Linux introductory-course-day-1Linux introductory-course-day-1
Linux introductory-course-day-1
Julio Pulido
 
Many times when we login to a system we use a usernamepass.pdf
Many times when we login to a system we use a usernamepass.pdfMany times when we login to a system we use a usernamepass.pdf
Many times when we login to a system we use a usernamepass.pdf
admin447081
 
OS and Applications.pptx
OS and Applications.pptxOS and Applications.pptx
OS and Applications.pptx
VijiRam8
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0
venkatakrishnan k
 
LINUX
LINUXLINUX
LINUX
ARJUN
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
webhostingguy
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
webhostingguy
 

Similar to Samba server installation and File sharing (20)

Meeting 9 samba
Meeting 9   sambaMeeting 9   samba
Meeting 9 samba
 
Diva23
Diva23Diva23
Diva23
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Topic # 26 Samba Server.pptx
Topic # 26 Samba Server.pptxTopic # 26 Samba Server.pptx
Topic # 26 Samba Server.pptx
 
Linux webmin
Linux webminLinux webmin
Linux webmin
 
Linuxs1
Linuxs1Linuxs1
Linuxs1
 
Linux introductory-course-day-1
Linux introductory-course-day-1Linux introductory-course-day-1
Linux introductory-course-day-1
 
Samba server in sna
Samba server in snaSamba server in sna
Samba server in sna
 
Many times when we login to a system we use a usernamepass.pdf
Many times when we login to a system we use a usernamepass.pdfMany times when we login to a system we use a usernamepass.pdf
Many times when we login to a system we use a usernamepass.pdf
 
Chapter09 -- networking with unix and linux
Chapter09  -- networking with unix and linuxChapter09  -- networking with unix and linux
Chapter09 -- networking with unix and linux
 
OS and Applications.pptx
OS and Applications.pptxOS and Applications.pptx
OS and Applications.pptx
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
Ubuntu getting started
Ubuntu getting startedUbuntu getting started
Ubuntu getting started
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
LINUX
LINUXLINUX
LINUX
 
Sandy Report
Sandy ReportSandy Report
Sandy Report
 
Sandy Report
Sandy ReportSandy Report
Sandy Report
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
 

More from Eagle Eyes (7)

User guide
User guideUser guide
User guide
 
Html 5 tags
Html  5 tagsHtml  5 tags
Html 5 tags
 
Project proposal templates
Project proposal templatesProject proposal templates
Project proposal templates
 
Domain model
Domain modelDomain model
Domain model
 
Working of stock exchange
Working of stock exchangeWorking of stock exchange
Working of stock exchange
 
Emotional intelligence theory
Emotional intelligence theoryEmotional intelligence theory
Emotional intelligence theory
 
Propsal of online voting system
Propsal of online voting systemPropsal of online voting system
Propsal of online voting system
 

Recently uploaded

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

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.