【20230511】Ubuntu shared folder

1 background

In order to access certain files under the Ubuntu system on Windows and mobile phones

2 Install related libraries under Ubuntu

2.1 Follow the relevant packages

sudo apt-get install -y samba
sudo apt-get install -y smbclient
sudo apt-get install -y cifs-utils #(新版本的ubuntu,>12.04即可)
# sudo apt-get install -y smbfs # (旧版本的ubuntu)

2.2 error 225

If I right-click on a shared folder, the following error appears
Please add image description

# 在配置文件中找到usershare allow guests = yes,
# 在后面一行添加 usershare owner only = false,
# 设置后退出或重启ubuntu账户之后
sudo gedit /etc/samba/smb.conf

Please add image description

Reference 1: Ubuntu enables samba and window shared files

Guess you like

Origin blog.csdn.net/Creationyang/article/details/130680372