LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   samba problem with 2 linux boxes (https://www.linuxquestions.org/questions/linux-software-2/samba-problem-with-2-linux-boxes-341920/)

muxman 07-10-2005 02:47 PM

samba problem with 2 linux boxes
 
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.

example
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.


:scratch:

trickykid 07-10-2005 02:50 PM

By reading your title tells me the answer.. use NFS to share between Linux and *nix hosts... not Samba. Samba is to share and mount from Linux to Windows and vice versa, not Linux to Linux.

Keyword here is NFS! ;)

muxman 07-10-2005 07:20 PM

I was trying to have a fileserver without having to run two different types of file server. I'm running samba to make files available for the windows machines and didn't want to run nfs as well. Guess I'm going to have to run nfs also.


All times are GMT -5. The time now is 08:24 AM.