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

How to build a SAMBA server for raspberry pie

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Raspberry pie how to build SAMBA server, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

Set up SAMBA server

Install samba

Sudo apt-get updatesudo apt-get install samba samba-common-bin

Profile smb.conf

Nano / etc/samba/smb.conf

Modify its configuration file / etc/samba/smb.conf by adding the following at the end of the file

# = = [share] # the name of the shared file, which will be displayed on the network with path = / share # the path to the shared file valid users = pi # allowed access users browseable = yes # allow browsing public = yes # share open writable = yes # writable

After the modification is complete, save it. Then restart the samba service and add the shared user:

Restart samba

Pi@raspberrypi ~ $sudo / etc/init.d/samba restart [ok] Stopping NetBIOS name server: nmbd. [ok] Starting NetBIOS name server: nmbd. [ok] Stopping SMB/CIFS daemon: smbd. [ok] Starting SMB/CIFS daemon: smbd. [ok] Stopping Samba AD DC daemon: samba.

Add samba shared user

Pi@raspberrypi ~ $sudo smbpasswd-a piNew SMB password:Retype new SMB password:Added user pi.

Test samba sharing

On the win7 system, start-run:\ 192.168.3.104 (your raspberry pie IP address) to access:

When we double-click to open the share directory, we need to enter the pi user just created and the password to authenticate. At this point, we can create a file for testing to see if we have permission to create and delete.

Add the share directory to the map

For convenience, we can add the share directory to the map without having to download and access\ 192.168.3.104.

Turn on the computer-map network drives

After the addition is complete, you will be prompted for a user name and password, and check "remember my credentials".

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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

Internet Technology

Wechat

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

12
Report