In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to configure the service package for Ubuntu samba". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Ubuntu samba service configuration is a very good file application with great learning value. Here I will mainly explain the application of Ubuntu samba service configuration, including Ubuntu samba startup and shutdown.
And so on.
one。 Install the Ubuntu samba package
Sudo apt-get install samba
Sudo apt-get install smbclient
II. Ubuntu samba startup and shutdown
Sudo / etc/init.d/samba start
Sudo / etc/init.d/samba stop
three。 Configure the Ubuntu samba service
The main configuration file for Ubuntu samba service is / etc/samba/smb.conf
1. Access the linux shared directory without entering a password in the windows system
Suppose the shared directory is / home/share
Sudo gedit / etc/samba/smb.conf
Modify the content in the file [gloab] to change security=user to security=share.
Add the following line at the end of the file:
[share]
Comment=this is linux share directory
Path=/home/share
Public=yes
Writable=yes
Save the file to exit and restart the Ubuntu samba service sudo / etc/init.d/samba restart so that users can access it anonymously
Just type\\ IP under windows
two。 You need to enter a password in the windows system to access the linux shared directory
Modify the fields in the file as follows: security=user to add smbpasswd file=/etc/samba/smbpasswd
In the sharing section, add the following part valid users=samba / / samba as the user in the linux system
Then set the password for the user
Sudo touch / etc/samba/smbpasswd
Sudo smbpasswd-a samba
Then restart the Ubuntu samba service.
Common options for smbpasswd
-an add a user
-d disable a user
-e lift the ban on disabled users
-x Delete a user
3. Access windows's shared directory in linux
You can mount the shared directory in windows directly to the local machine in linux. In order to view the shared directory in windows, you can use the smbclient command to view
Smbclient-L / / IP-U ubuntu
After you see the shared directory, you can mount it using the smbmount command
Smbmount'\ ip\ shared directory name 'mount point-o username
For example: smbmout'\ 192.168.0.1\ share' mnt-o username= "ubuntu" and then enter the password.
This is the end of the content of "how to configure the service package for Ubuntu samba". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.