I'm having a problem with a samba connection between two linux computers. I can mount the samba shares and access the files. I can delete files from within the sahre with no problems. But when I try to create a file, either a new file or copy or move something to the share I have problems. At the command prompt the files copy very slowly and don't give an error message. You can see the network just sitting idle most of the time and eventually you see some activity, when the file actully copies, then idle for a while and activity when the next file copies.
In KDE when I do try to copy a file with Konqueror it sits idle for a while, then copies and gives an error that the file permissions could not be changed. Probably that same thing that the command does but it doesn't show the error.
My next thought was to have my umask for both users match. This did not work either. The username, uid, gid, umask and password for both users are all the same.
When I mount the shares I use a command that makes the share have the uid and gid of my main user and not the normal root user. I also make the fmask and dmask match what samba has assigned for the shares. This didn't help either.
mount -t smbfs -o uid=1000,gid=1000,fmask=600,dmask=700,credentials=filename //192.168.1.12/share mountpoint
I did this after I got the problem without it, hoping that would fix the problem and it didn't.
When I connect to an actual windows share and copy files there they work with no problems. They copy quickly and do not sit idle at all. I tried changing the fmask to match what comes out in windows also, 644, and it didn't have any effect on the linux shares.
Anyone have any suggestions how to copy files to the linux samba shares without having this problem? Copying a 50k file can take a couple mintues because of the problem it has with the permissions. Copying any file from the samba shares works with no problems at all, just files going to the shares have the problems and only to shares on the samba server, actual windows shares do not have this problem.