Re: smb share from centos to windows 2003
Posted by vanecka on 2012/4/17 23:41:21
Try stopping your firewall first and accessing the share from Windows. If it works, you know that there is something wrong with your firewall. Port 445 should be opened, and perhaps port 137:139 too.
Execute the following to stop iptables:
service iptables stop
Then check the share again. If it works, fix your firewall. Remember to restart your firewall after you fixed/tested iptables.
If that doesn't solve your problem, ensure that Samba is running correctly and perhaps restart Samba and check your system logs.
If that does not work, it could be a user permission problem. Ensure that you have a Samba user and that the password is correct. Samba passwords differ from the Linux password and not all Linux users have a Samba counterpart. Also ensure that the user has access to browse to the path that is specified as the share. To do this, log in as the user on the Linux system and change into that directory. If you get a permission denied error, you know that the specific user doesn't have permission to the directory. Fix the permission with chmod/chown.
Finally, if that does not work, ensure that SELinux is not giving you problems. You can try to temporary disable SELinux and restart Samba to test:
service smb restart
On a side note, if you "make backups" of Linux files to a Windows machine, you may want to tar the files/directories first and copy those tar balls to ensure that the user permissions are also backed up.
Hope it helps.
This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=37&topic_id=35721&post_id=160654