|
| Recent
Articles |
PC-BSD I do like BSD OSEs, but I think the most interesting thing about the release of PC-BSD is that the download page incudes a VMware image.
Oracle Ponders Novell Purchase For Linux With an earnings announcement coming up on April 18th, Oracle founder Larry Ellison has been wondering whether his firm should pick up SuSE Linux by buying Novell.
Microsoft Virtually Supporting Linux The Windows maker announced at the LinuxWorld Conference & Expo it would make the Microsoft Virtual Server 2005 R2 available at no charge to customers.
Google Hires Creator Of Vim
Bram Moolenaar, creator of the text editor Vim,
or Vi improved, will begin working with Google in
the company's Zurich offices...
IBM Wants To Eclipse Unix Developers The command line is a wonderful thing, and a developer skilled in the ways of vi (or emacs if you must) can build great applications; IBM thinks developers can do even better with its Eclipse IDE.
Misunderstanding Security
At UNIX
Security: Don't Believe the Truth, Thom Holwerda
makes a rather silly argument that Unix security
is no better than the worst of Windows security
because the result to the user is the same...
Forbes Holding Exit Door For McNealy
Sun Microsystems CEO Scott McNealy could be at a
point where his work with Sun is complete, which
makes one analyst believe the outspoken executive
may depart the company...
|
|
|
05.23.06
SMB Caching
By
A.P. Lawrence
A customer had a particular shared folder setup so that only he had access to it.
This happened to be a SCO Visionfs system, but you could run into similar problems with Samba.
A change in business practice required giving two other people read/write access to files in that directory.
The customer had forgotten that it had originally been restricted to only his user name, so he set up mapped drives on the other two users machines and of course couldn't write to the necessary files. I was on site for other reasons, so he called me over to observe the problem.
I immediately reminded him that he probably set restrictions and we went into the Visionfs profedit tool to add the two new users and set the file creation mask appropriately.
I also chmodded the files on the server so that the group of these three users could write to the files.
| Enter
to Win a FREE iPod Nano or 3 Months of Channel Management
- Click Here |
|
We restarted the Visionfs server, and tried overwriting a file. That still failed from the new users machines.
I realized it had to be caching on the users machines, so disconnected the mapped drive, reconnected, and tried again. It still failed.
That surprised me. I expected that unmapping and remapping would clear the cache, but apparently it does not. On a whim, I tried deleting a file, and that was successful. Once that had been done, any of the users could now write and overwrite as desired.
I suppose that if I had rebooted the Windows machines that would have cleared up the problem also. Windows side SMB caching can be confusing.
There are various Samba notes you can find with Google; for example How *exactly* does the file caching mechanism work?. This is related to opportunistic locking, so that's another Google search that can show you more about it. See Chapter 16. File and Record Locking Part III. Advanced Configuration in the Samba docs.
About the Author:
A.P. Lawrence provides SCO Unix and Linux consulting services http://www.pcunix.com
|