Access RedHat Samba sharing in win7
First, enable Samba:
Service SMB start
Service SMB restart
The Samba configuration file is/ECT/samba/smb. conf. You do not need to change it. Use the default configuration.
By default, the security = user mode is used for sharing. You need to enter the user name and password to access this service.
[Homes] is shared by default. Each user can access his/her home directory.
For example, add a new user:
Useradd jinqing
Passwd jinqing
Smbpasswd-A jinq
SMB needs its own user password and smbpasneed to be set.
In this way,/home/jinqing is shared.
Test: smbclient // localhost/jinqing-ujinqing
You need to set the SELinux parameter to allow shared access. You can run it by referring to the annotations in smb. conf:
Setsebool-P samba_enable_home_dirs on
Then, you need to set security policies for Windows 7, or you will not be able to connect to Windows 7.
Open the management tool and choose "Local Policies"> "Security Options"> "Network Security: LAN Manager authentication level ";
Click Send LM and NTLMv2 In the list. If the negotiation is completed, the NTLMv2 protocol is used.