


How to realize file sharing between windows and Linux
1. Ban Guest
1. Right-click "My Computer" —> Click Management
2. Enter the computer management interface:
Click System Tools —> Local Users and Groups -> Users -> Cancel the "Account is disabled" option
2. Set shared directory permissions
1. Right-click the directory that needs to be shared (this example file Name TEST), click Properties——> Sharing-Sharing
drop-down option and select Everyone——> Click Add——> Sharing
2. Then click Security——> Edit - Select Everyone user - Check all allowed permissions - Apply - OK - OK
3. Set local policy
1. Open the command box (win key R)——>Enter secpol. msc——>Select local policy——>User rights assignment——>Deny access to this computer from the network——>Delete Guest user
2. Security options——>Network access: Sharing and security model for local accounts——>Select: Guest only
3. Control Panel——>Programs——>Programs and Features——>Turn Windows features on or off——> Check the SMB 1.0/CIFS file sharing option and sub-options
The computer will be restarted after the settings are completed
4. Close Windows Firewall
Control Panel——> Windows Defender Firewall ——> Enable or turn off Windows Defender Firewall——> Select to turn off the firewall——> Click OK
Now the windows server configuration is completed
5. Llinux client configuration and mounting
1. Check whether samba-client is installed
[root@localhost ~]# rpm -q samba-client samba-client-4.10.16-20.el7_9.x86_64 # 如果没有安装 [root@localhost ~]# yum -y install samba-client # smbclient -L //服务端ip (服务端ip也就是windows电脑ip) [root@localhost ~]# smbclient -L //192.168.88.57 # 回车之后提示输入密码,不需要输入直接回车 Enter SAMBA\root's password: Sharename Type Comment --------- ---- ------- ADMIN$ Disk 远程管理 C$ Disk 默认共享 D$ Disk 默认共享 E$ Disk 默认共享 IPC$ IPC 远程 IPC TEST Disk Reconnecting with SMB1 for workgroup listing. do_connect: Connection to 192.168.88.57 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND) Unable to connect with SMB1 -- no workgroup available
2. Check whether cifs-utils is installed
[root@localhost ~]# rpm -q cifs-utils cifs-utils-6.2-10.el7.x86_64 # 如果没有安装 [root@localhost ~]# yum -y install cifs-utils
3.Mount directory
# 创建挂载目录 [root@localhost ~]# mkdir /data [root@localhost ~]# mount.cifs //192.168.88.57/TEST /data # 提示输入密码,不需要输入直接回车 # 查看挂载目录 [root@localhost ~]# df -hT
The above is the detailed content of How to realize file sharing between windows and Linux. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



VS Code system requirements: Operating system: Windows 10 and above, macOS 10.12 and above, Linux distribution processor: minimum 1.6 GHz, recommended 2.0 GHz and above memory: minimum 512 MB, recommended 4 GB and above storage space: minimum 250 MB, recommended 1 GB and above other requirements: stable network connection, Xorg/Wayland (Linux)

VS Code can run on Windows 8, but the experience may not be great. First make sure the system has been updated to the latest patch, then download the VS Code installation package that matches the system architecture and install it as prompted. After installation, be aware that some extensions may be incompatible with Windows 8 and need to look for alternative extensions or use newer Windows systems in a virtual machine. Install the necessary extensions to check whether they work properly. Although VS Code is feasible on Windows 8, it is recommended to upgrade to a newer Windows system for a better development experience and security.

VS Code is the full name Visual Studio Code, which is a free and open source cross-platform code editor and development environment developed by Microsoft. It supports a wide range of programming languages and provides syntax highlighting, code automatic completion, code snippets and smart prompts to improve development efficiency. Through a rich extension ecosystem, users can add extensions to specific needs and languages, such as debuggers, code formatting tools, and Git integrations. VS Code also includes an intuitive debugger that helps quickly find and resolve bugs in your code.

VS Code To switch Chinese mode: Open the settings interface (Windows/Linux: Ctrl, macOS: Cmd,) Search for "Editor: Language" settings Select "Chinese" in the drop-down menu Save settings and restart VS Code

The reasons for the installation of VS Code extensions may be: network instability, insufficient permissions, system compatibility issues, VS Code version is too old, antivirus software or firewall interference. By checking network connections, permissions, log files, updating VS Code, disabling security software, and restarting VS Code or computers, you can gradually troubleshoot and resolve issues.

How to back up VS Code configurations and extensions? Manually backup the settings file: Copy the key JSON files (settings.json, keybindings.json, extensions.json) to a safe location. Take advantage of VS Code synchronization: enable synchronization with your GitHub account to automatically back up all relevant settings and extensions. Use third-party tools: Back up configurations with reliable tools and provide richer features such as version control and incremental backups.

VS Code One-step/Next step shortcut key usage: One-step (backward): Windows/Linux: Ctrl ←; macOS: Cmd ←Next step (forward): Windows/Linux: Ctrl →; macOS: Cmd →

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.
