I haven't done it in a long time before! It's not the firewall, but the selinux!.
1. First install Samba
# yum Install Samba samba-client Samba-swat
Packages with dependencies Samba-common,samba-winbind-clients,libsmbclient will be installed automatically.
2. Check the installation status
Rpm-qa | grep Samba
3. Start the Samba server
Samba Services can be started, shut down, and restarted via /ETC/INIT.D/SMB Start/stop/restart
4. View Samba service startup status
# Service SMB Status
5. Set Boot from boot
# chkconfig--level SMB on//at Level 3,5 to automatically run Samba services
6. Modify the configuration file (Shared Htdoc directory)
7. Restart SMB
# Service Samba Restart
8. Create a user (Apache user)
To add an Apache user to an SMB
Set a directory permission for Apache users
Set a directory default permission for Apache users
8, test
The error was reported at the time:
Session setup Failed:nt_status_logon_failure
I couldn't solve it for a long while, and then I found the reason
(1), shut down the firewall
# Service Iptables Stop
(2), close SELinux
Modify the /etc/sysconfig/selinux to change the enforcing to disabled; then the command line Setenforce 0;
In Windows access
Get!
Samba Server Installation and configuration