Get the App
SLTechnology News&Howtos  ›  Servers  › 

CentOS7 installs the samba service

Shulou Source: shulou.com Published: 2022-06-03 09:10:01 09月21日 Update

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

Tags: Directory configuration service development security content lead blog address variety student development work file method method server permissions environment disk policy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Tech Info Docker Xiaomi MariaDB