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

Installation and configuration method of samba Server under linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

The installation and configuration of samba server in linux for your reference, the details are as follows

Step 1: download samba

Command: apt-get install samba

Apt-get install cifs-utils

Apt-get install samba-common

[note] you can use a mirror source to install it, which is faster. No, no problem at all. If you want to use the image source, you need to modify the file: / etc/apt/sources.list, and change it to the image source address.

Possible problems:

This is because of the DNS server error. You need to modify the file: / etc/resolv.conf. The command is: vi / etc/resolv.conf.

Just add a nameservere:8.8.8.8.

Step 2: create a new user

Next, you need to create a new user (I built share, which is the same as the user I built in the share group).

Command: useradd-g share-m share

Create a new folder share under the user to store the files to be transferred. At that time, the file interaction between windows and linux will be carried out through this directory.

Command: mkdir share

Step 3: configure samba

Enter command: vi / etc/samba/smb.conf edit smb.conf file

Add at the end: (path must point to the directory of files you want to share)

Step 4: create a samba login user and his login password

After creation, the user can access linux through account password on windows

The command is: smbpasswd-a share (originally and created by share users)

Step 5: restart the samba service and run

Check the ip address of your linux: ifconfig

Enter the above ip address in the windows command window:\\ 192.168.1.103

Then enter the samba user name and its password, and then you can see the shared folder share.

The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.

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

Servers

Wechat

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

12
Report