LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-10-2005, 03:47 PM   #1
muxman
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 198

Rep: Reputation: 30
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.


 
Old 07-10-2005, 03:50 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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!
 
Old 07-10-2005, 08:20 PM   #3
muxman
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 198

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora4 and Ubuntu boxes won't Samba futz Linux - Networking 8 10-18-2005 02:41 AM
School switching some boxes to linux, showstopper: samba idamlaj Linux - Networking 5 05-22-2005 07:55 AM
Samba, Smbpasswd, and Multiple Linux Boxes soopafresh Linux - Networking 2 08-02-2004 05:17 PM
can't get boxes back on Samba mehesque Linux - Networking 0 04-02-2004 07:14 PM
Samba with linux box, 2 win boxes, cable, router kuber Linux - Networking 2 09-04-2001 09:07 PM


All times are GMT -5. The time now is 11:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration