Samba caching directory handles? (Writes to incorrect home dir)

Richard Sharpe sharpe at
Wed May 16 00:38:11 GMT 2001

At 07:51 AM 5/15/01 -0700, Gerald Carter wrote:
>On Wed, 16 May 2001, Richard Sharpe wrote:
>> >Does
>> >
>> >	[%u]
>> >		path = %H
>> >
>> >suffer from the same problems?

This approach is fine where people have got a well structured relationship
between usernames and home directories, and where they are all in one

However, if someone has home shares in different locations, this will not

That is why [homes] is so useful, since the info comes out of the passwd
file or wherever ...

Secondly, as James Sutherland has mentioned, 'net use /home' only works for
your home drive, it does not work where people want to gain access to their
UNIX home dir on a server other than their logon server.

My suggestion is the following:

Why not special-case access to \\server\homes, and if the requesting client
is a WinNT or Win2K client, return a DFS referal, otherwise allow the

This avoids issues around Win95 clients (of which there are still plenty)
not having DFS support and so on, and retains the usefulness of [homes]
while avoiding the nasty caching behaviour of NT clients.

Richard Sharpe, sharpe at
Samba (Team member,, Ethereal (Team member,
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba

More information about the samba-technical mailing list