LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-10-2006, 07:45 AM   #1
Frank616
Member
 
Registered: Dec 2004
Location: Canada
Distribution: Kubuntu, Fedora
Posts: 56

Rep: Reputation: 16
Linux equivalent of share violation?


Windows networking has a share violation setup that prevents one machine on the network from modifying a file already open on another machine. I have already verified that this does not work with Samba when the machines in question are running Linux as the main OS.

Is this a Samba limitation? Is there some way of preventing two machines on the same network from opening the same file at the same time?

If this cannot be done in Samba, what about NFS?

I assume that I can run NFS and Samba at the same time, yes? For instance: if I set everything to NFS, but leave Windows networking set up, then a Windows box should be able to log into the network and use the Samba server to access the files on the machines, even though those machines normally communicate with each other using NFS, right?

Thanks.

Frank.
 
Old 01-11-2006, 12:18 PM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
here is the samba file locking document:
http://de.samba.org/samba/docs/man/S...n/locking.html
 
Old 01-11-2006, 01:24 PM   #3
Frank616
Member
 
Registered: Dec 2004
Location: Canada
Distribution: Kubuntu, Fedora
Posts: 56

Original Poster
Rep: Reputation: 16
Finlay:

Thank you for the link. I also got a link to:

http://www.oreilly.com/catalog/samba...k/ch05_05.html

from another source. I'll have a look at both and see if I can decipher how to set these up.

I was unaware of the *nix way of doing things, which I why I used the "windowese" terminology in my original post.

Now, with regard to NFS, if I run that on all my machines, do I automatically get the *nix file locking, and can therefore skip the Samba setup altogether? I am assuming that I can run both NFS and Samba on the same network, setting up the machines themselves to use one or the other?

I'm sure I could switch to NFS full-time, as all my machines run Linux-only now anyway. However, for the occasional visiting machine (my brother's laptop), I need to be able to leave the network 'windows friendly' as well.

Thanks.

Frank.
 
  


Reply



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
Is this a violation of the GPL? gplenforcer General 4 08-03-2005 03:58 AM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
segment violation Jozsef Linux - Software 1 10-06-2004 09:46 AM
Access Violation??? sh4k3y Linux - Software 3 03-25-2004 07:22 AM
Copy Winbloze file to Samba Share -Sharing Violation tornadoburn Linux - Software 1 11-25-2003 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:19 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration