Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-17-2006, 09:41 PM   #1
Registered: Aug 2004
Distribution: Ubuntu 16.04 lts desk; Ubuntu 14.04 server
Posts: 342

Rep: Reputation: 31
Question File locking shared files and CIFS


Have just set up a smb/cifs file server under Ubuntu 6.06. The Windows and Linux workstations seem to respect the file locks when the others have a file open.

Except, that is, for the file server itself. Others can open files the server has open, and the server can open files the others have open.

Perhaps that is because that system has those files mounted outside the cifs system.

Is there a solution that will lock all parties out when one user has the file open?

One thought I had: edit /etc/fstab on the server to specifically mount these shared directories as cifs, like we do on the workstations, thus:

//samba1/etc    /sam/etc        cifs    rw,credentials=/root/.smbcredentials
0       0
But I wonder if this is mounting the same files twice, and if it might trash the system if I did it.

Any ideas how to get file locking here?



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
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 44 02-26-2016 12:45 PM
error while loading shared libraries: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
error while loading shared libraries: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM
vsftp - locking files? amanu1 Linux - Software 1 11-15-2003 07:46 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:42 AM.

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