Ubuntu20.04, samba server build.

0. Preface

        Recommend a TV series that you will never tire of watching, "Yongzheng Dynasty".

        This blog has no technical content, just to show my hard work.

1.Ubuntu

Install

terminal input

$ sudo apt install samba samba-common

Configure the directory that needs to be shared

# 新建目录(自定义),用于共享sudo mkdir /home/linux# 更改权限信息
sudo chown nobody:nogroup /home/linux# 给所有用户添加读写权限
sudo chmod 777 /home/linux

Add Samba user

Add a Samba user for use when accessing the shared directory. The user added here must exist in Linux

sudo smbpasswd -a lhx


enter password.

Configure Samba

backup sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.back

Modify sudo vi   /etc/samba/smb.confand add the following configuration at the end:

[linux](随便,这里是文件夹名)  comment = TimeCapsule Volumes  path = /home/linux
  browseable = yes  
  writable = yes
  available = yes
  valid users = lhx

Restart the Samba service

$ sudo service smbd restart

2.WIN

bcc4743a1f8a4489ae6c87b043ddcce5.png

 

e7009e3a76444c629e58ac15890de81a.png

 Then open File Explorer.

88f7766891554caea7d7c1e5335312be.png

 Just enter the username and password.


3. Summary

        Today's topic is very hot. Referring to "rat" as "duck" and referring to a deer as a horse reflect the fear of power. I didn't expect such outrageous things to happen in the new era. What does this reflect? The "power" brought about by the direction of public opinion!

        Everyone has to understand for themselves. I once saw a passage like this: A person who does the right thing, when one person says you are wrong, it is his fault; when ten people say you are wrong, it is possible that you are wrong, when the whole society says you are wrong , you are indeed wrong. This is probably what it means, the online world, everyone can see it, there is no right or wrong point of view.

 

Guess you like

Origin blog.csdn.net/weixin_43920383/article/details/131295299