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

CentOS7 installs the samba service

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

First, leading instructions

Students often ask how to map the centos\ ubuntu directory to windows to facilitate development work, so writing this guide blog makes it easy to configure the development environment.

There are several ways to map linux system directories to windows, sambanfsftp...

[chestnut is realized by samba] 2. Configuration process 1. Install the samba component # yum install samba samba-clinet-y2. Modify the samba configuration file # cd / etc/samba/#mv smb.conf smb.conf.bak#vi smb.conf

The contents are as follows

[global] workgroup = SAMBA netbios name=172.16.100.1 server string = samba server log file = / var/log/samba/log%m max log size = 50 security = user map to guest = Bad User [share] comment = sharee source path = / share writable = yes browseable = yes guest ok = yesnetbios name=172.16.100.1 is the IP address of the current server 3. Create a shared directory and permissions # mkdir / share# chmod 777 / share# touch / share/test.file4. Turn off the security policy # sed-I'According to the systemctl stop firewalld# systemctl disable firewalld5 systemctl stop firewalld# systemctl disable firewalld5. Start the service # systemctl restart smb nmb# systemctl enable smb nmb 3. Windows uses a shared directory 1. Access test

two。 Map disk

Result

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