In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to build Samba services". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to build Samba services.
The biggest function of Samba is that it can be used to share folders between Linux and windows systems. To build SMB services, you must first ensure windows.
Interconnect with ubuntu network, and then download and install it at ubuntu:
Sudo apt-get install samba
Create a shared folder samba and create a file topeet in the shared folder:
Mkdir samba, touch topeet
Back up the configuration file:
Sudo cp / etc/samba/smb.conf / etc/samba/smb.conf.backup
Modify the configuration file:
Sudo vi / etc/samba/smb.conf
After adding the following content, write the path of your shared folder after "path":
[samba]
Comment = smbshare home directory
Path = / home/ubuntu/samba/ # enter your own path
Browseable = yes
Public = yes
Writeable = yes
Valid users = ubuntu # user name
Create mask = 0777
Directory mask = 0777
Force user = ubuntu # current ubuntu user name
Force group = ubuntu # the group in which the current user name belongs
Available = yes
Unix charset = UTF-8
Dos charset = cp936
After completion, it is shown in figure 93.4:
[samba]: overall environment
Comment:samba comment description
Path: description of the shared directory
Public: whether to share publicly
Writeable: readable and writable
Valid users: the user name allowed to log in
Create mask: setting permissions for creating file settings
Directory mask: setting permissions for creating folder settings
Force user: force the user to which the new file belongs
Force group: set to force the user group to which the new file belongs
Available: specifies whether the shared resource is available
Save after changing the configuration file, and then set the user password:
Sudo smbpasswd-a ubuntu
The username "ubuntu" is the username set in / etc/samba/smb.conf in the configuration file. Enter the username password when prompted:
Restart:
Sudo / etc/init.d/samba restart
Access the Samba folder at windows:
Click to run and enter the IP of ubuntu:
\ 192.168.1.12
Click OK to pop up the set shared folder:
Double-click to enter, enter the set password, and then you can see the shared file topeet:
At this point, I believe you have a deeper understanding of "how to build Samba services". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.