Share files on windows to Linux

Windows sharing permissions settings:
1. Unblock Guest,
right-click on my computer and select Manage -> Local Users and Groups -> Double-click Guest user in the user item -> Cancel the account is disabled option
Insert picture description here
2. Set the shared directory permissions,
right-click the shared directory Click Properties -> Click on the sharing option on the sharing page -> drop down and select the shared object as Everyone -> click on the share button

Insert picture description here
Set the local policy
Open the command box -> enter secpol.msc -> select the local policy
User rights assignment -> deny access to this computer from the network -> delete the guest user
security option -> network access: local account sharing and security model- >Drop down to select only guests

Insert picture description here
Insert picture description here
Linux mount terminal:
1. Scan shared directories

smbclient -L //192.168.249.1/			#Windows端的IP地址
不需要输入密码直接回车

Insert picture description here
Insert picture description here

2. Mount the shared directory

yum install -y cifs-utils
mkdir /data
mount.cifs //192.168.80.1/share /data
不需要输入密码直接回车

Insert picture description hereInsert picture description here

Guess you like

Origin blog.csdn.net/shengmodizu/article/details/113176713