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 configure samba to realize folder sharing under Ubuntu

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

The content of this article mainly focuses on how to configure samba to achieve folder sharing under Ubuntu. The content of the article is clear and well-organized. It is very suitable for beginners to learn and is worth reading. Interested friends can follow the editor to read together. I hope you can get something through this article!

Configure samba to realize folder sharing under Ubuntu

one。 Installation of samba:

Sudo apt-get insall Samba`sudo apt-get install `smbfs

two。 Create a shared directory:

Mkdir / home/phinecos/ share`sodu chmod 777` / home/phinecos/share

three。 Create a Samba profile:

\ 1. Save an existing configuration file

Sudo cp / etc/samba/ smb`.conf / etc/samba/ smb`.conf.bak

\ 2. Modify the current configuration file

Sudo gedit `/ etc/samba/ smb`.conf

Add at the end of smb.conf

[share] `path = / home/phinecos/share available = yes browsealbe = yes public = yes writable = `yes

four。 Create a samba account

Sudo touch / etc/samba/ smbpasswd`sudo `smbpasswd-a phinecos

Then you will be asked to enter the password for your samba account

[if there is no step 4, you will be prompted session setup failed: NT_STATUS_LOGON_FAILURE when you log in]

five。 Restart the samba server

Sudo / etc/ init`.d / samba `restart

six。 test

Smbclient-L ``/ / localhost/share

Seven, use

You can enter ip under windows, enter the ip or host name of the Ubuntu machine "+"\\ "+ `" share "in the folder. Thank you for reading. I believe you have some understanding of" how to configure samba to achieve folder sharing under Ubuntu ". Go to practice quickly, if you want to know more related knowledge points, you can follow the website! The editor will continue to bring you better articles!

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

Development

Wechat

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

12
Report