Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Samba file locks

Posted on 1999-07-28
4
Medium Priority
?
258 Views
Last Modified: 2011-10-03
Here's the deal: Linux (RH6), Samba, CD ROM drive shared. I use the CD ROM from another machine, fine. Then I stop using it, close all explorer windows on the drive, etc etc. Mount won't unmount the CD because smbstatus claims I still have open files from the other machine. I have thought of logging off or rebooting client machine but I'm not prepared to do that. I've thought of restarting Samba itself, which works, but I'd rather not have Samba going up and down all the time as there are other people using it. So, what I need is some way to forcefully close the link on the Linux box. Any thoughts?
0
Comment
Question by:Loggytronic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
chytrace earned 200 total points
ID: 1585939
HI,

       it seems that your client PC has the shared CDROM still mounted as shared
disk and this volume is connected even all the explorer windows are closed. So try
to explicitly disconnect the CDROM from your client PC by clicking right mouse button on the icon of shared CDROM in the explorer window and choose disconnect option in the pop-up menu.

Hope this helps

Radovan
0
 

Author Comment

by:Loggytronic
ID: 1585940
Yes, I suppose I could do that, but is there any way I can get Samba to throw the client PC off? (Without restarting Samba). Or, get mount to disregard the file locks from samba? Some way to close the files from the Linux box regardless of what the client is doing.

0
 
LVL 1

Expert Comment

by:chytrace
ID: 1585941
Hi,

            the problem is probably the mount mechanism in the kernel. Even if you mount CDROM locally as an ISO9660 filesystem you can't siply umount the filesystem  if your working directory in some of your shell sessions is on the mounted filesystem. This applies generally to any type of filesystem.
Well, may be there is a possibility to do what you want but I can't give the right answer now without look at the Linux kernel and Samba sources :-))
0
 

Author Comment

by:Loggytronic
ID: 1585942
ok, thanks.

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question