Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of creating Network share through Samba on Linux

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to create network sharing through Samba on Linux. I hope you will learn a lot after reading this article. Let's discuss it together.

Samba is a SMB / CIFS network protocol used to provide file and print services to Microsoft clients. Samba can also be used as part of an Active Directory domain. Samba uses the TCP / IP protocol for communication.

Use CentOS 6.3 to obtain the following installation instructions, but the following steps also apply to CentOS 5.

Step 1: install Samba

$sudo yum install samba # # CentOS and Redhat systems $sudo dnf install samba # # Fedora 22 + systems $sudo apt install samba # # Debian based systems

Step 2: create an account for authentication

Now create a system account for authentication to access the samba share.

$useradd marc$ passwd marc

Step 3: configure the shared directory

Now you need to access the directory using samba.

$mkdir / opt / shared

Add the following to the Samba configuration file / etc/samba/smb.conf at the bottom.

[shared] comment = Public Stuffpath = / opt/sharedpublic = yeswritable = yesvalid users = marcwrite list = marc

Step 4: restart the Samba service

$systemctl restart smbd.service$ systemctl restart nmbd.service

Step 5: access the Samba share

To test your settings, you need to access the shared location from the Windows system. Open the run window on the Windows operating system and type below.

/ / 192.168.1.90/publicshare/

Use the samba server IP address to change the IP. If prompted for authentication. Authorize the usage account created in step 2.

After reading this article, I believe you have a certain understanding of the method of creating network sharing through Samba on Linux. If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report