LINUX and WINDOWS share settings

Windows settings

1. Unban Guest

Right-click on My Computer and select Manage -> Local Users and Groups -> Double-click Guest user in the user item -> Cancel the account disabled option

2. Set shared directory permissions

Right click on the shared directory and click on the properties -> click on the sharing option on the sharing page -> drop down and select the shared object as Everyone -> click on the share button

3. Set up local policies

  1. Open the command box -> enter secpol.msc -> select local policy
  2. User rights assignment -> Deny access to this computer from the network -> Delete the Guest user
  3. Security Options -> Network Access: Sharing and Security Model for Local Accounts -> Drop-down and select Guest Only

Linux mount end:

1. Scan shared directories

smbclient -L //192.168.80.1/ #Windows IP address
No need to enter the password and press Enter

2. Mount the shared directory

yum install -y cifs-utils
mkdir /data
mount.cifs //192.168.80.1/share /data
does not need to enter a password and press Enter

Problems and solutions and points of attention

problem:

Solution:

First open

Then pay attention to connecting the computer with a network cable, not a wireless connection, otherwise it will not connect

 

Guess you like

Origin blog.csdn.net/Alen686/article/details/113667938