LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-17-2006, 10:41 PM   #1
dgermann
Member
 
Registered: Aug 2004
Distribution: Ubuntu 8.04.1 desk; Red Hat 9.0 server
Posts: 298

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


Hi--

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:

Code:
//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?

Thanks!
 
  


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
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 41 11-16-2014 04:21 AM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 06:47 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 08:03 AM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 06:35 AM
vsftp - locking files? amanu1 Linux - Software 1 11-15-2003 08:46 AM


All times are GMT -5. The time now is 10:35 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