Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need to impliment a multi-platform filesharing network with nfs and samba from a central server running linux. it needs to share files over both samba to windows and nfs to linux. This will be a multi-user environment with several stations, sometimes many stations might try to access the same file (autocad) currently with only a windows machine acting as a server with windows sharing autocad will lock a file when it is opened and unlock it when it closes this way we don't have several people modifying the file at once. I need t make sure the same thing will happen w/ samba and nfs, cause if autocad opens a file over samba and someone else tries to open the file it needs to prevent it.
so I guess my question is this, is file locking handled universally so that any program can lock a file and any other program will be prevented from using the locked file?
also does nfs recognise file locks and allow files to be locked when opened remotely
same question but for samba witht he addition of windows programs being able to request a file lock so that the linux system will nto allow use of the file by another party.
I think it's a mistake to mix the NFS and SAMBA protocols. If I were you I'd either use samba to share between the linux boxes or install a NFS client on the windows machines. This solve the problem nicely as you wouldn't have to worry about having two different servers trying to lock and unlock files.
Personally I would favor the Samba solution, simply because I haven't found a windows NFS client that I like much.
I was asking about both partially to see about mixing them, but mainly it was fo rocmparison and questioning weather eather or both would lock files, say if samba did not lock files I would need nfs, and vice versa.
Oh, I mis-understood you. I'm not sure about NFS locking files, becuase I don't have much experiance with it. Samba however does provide for locking files . Let me dig around real quick and I'll post some thinks about Sambas file locking....
Last edited by cyberliche; 11-09-2004 at 06:28 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.