At 2007-05-15T09:03:12+1200, Zane Gilmore wrote:
> However, just recently, I had a few problems with permissions on a CIFS
> connection. When I changed to smbfs it all worked.  The ownership of the
> share refused to change to something other than the UID of the owner of
> the directory on the directory on the server.

Was the server running Samba?  There's an extension to the CIFS protocol for
Unix-specific features.  It's enabled by default with in most versions of
the CIFS VFS module.

It can cause problems like the one you describe as a result of disparate
configurations of the server and client (e.g. if they don't have matching
UIDs for the same named users, like the problems you can run into with NFS).
I end up turning the Unix extensions features off when the CIFS module is
loaded by sticking the following in /etc/modprobe.d/options:

install cifs /sbin/modprobe --ignore-install cifs; /bin/echo 0 > 
/proc/fs/cifs/LinuxExtensionsEnabled

I don't recommend doing this in general, but if you're in a network none of
the UIDs map correctly, it can be handy.

You can also control it on a per-mount basis by setting
/proc/fs/cifs/LinuxExtensionsEnabled to 0 before mounting and setting it
back to 1 after mounting.  It should be a mount-time option rather than yet
another abuse of /proc, but it's not.

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                    [EMAIL PROTECTED]

Reply via email to