smb share from centos to windows 2003

Posted by umcpgrad on 2012/2/9 8:27:05
what is the best way for centos to back up to a windows 2003 box? I have created redhat, suse smb shares
just wondering the best way for centos to back up to a windows 2003 box, my share doesn't seem to work
I have given access or read, write, execute on the folder, I have enabled the rules to be allowed on centos
it is still not connection, windows side keeps saying network can't be found
I have restarted the iptables, I have restarted the smb share

suggestions? thanks in advance

Re: smb share from centos to windows 2003

Posted by pschaff on 2012/2/11 22:34:59
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

Hard to guess the cause without some substantive information. About all you have told us is "it does not work". Anything relevant in the Samba logs? Please show the smb.conf and provide more information about your system by running "./getinfo.sh" and showing us the output file.

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:
setenforece 0
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