Arik Baratz wrote:

1. Do you get a valid responce when do:
nmblookup <win2000host>


[snip]


Hostname resolution seems ok.

Also check the following:

1. Has the share (mount) been unused for over a week? (Windows cycles host credentials once a week)


It's been mounted for over a week, but used during this period. How come my Win2K can maintain a share window open for this amount of time but SAMBA can't? And if the credentials are incorrect, why can't I unmount?

Windows updates host credential at least once a week. Both the server and the workstation have to be online for this to happen.
This is the theory. In practice, I noticed that windows 2k pro will cache server credentials for longer peroids of time, even to a point where a loptop user who has dissconnected and reconncted to the network, while his password has expired, managed to contiune working with the ssupposidle expired password.


2. Has the user information under which the mount taken place changed?


Now that you've mentioned it, I recently replaced my password (in Active Direcory). I will test it again, because I am pretty sure that I have had that happen even between password changes (our policy is 45 days).

And then again: So the credentials don't match; so what? Why prevent me from unmounting it? Can I change the credentials in smbmount while the folder is mounted?

You have to remmeber that Unix network mount types (such as NFS) are host based:
1. Host A exports a file system to one or more hosts
2. Host B's root mounts a file system from host A
3. Permissions are based on UID and GID which can be centraleized (as in NIS), or localized.


In CIFS (a.k.a SMB a.k.a. Windows) network shares are based on one of the following:
1. Centralized users database (SAM or AD)
2. Share passsword


In your case, number 1 applies.

More to the point:
You cannot change credentials on a monted CIFS share. Even in Windows, if you changed your password while logged in, you will find that network shares will act in an unpredicted manner (Some will work, some will not, as windows caches the credentials).
the smbmount command is acts as a proxy between the unix mount and the CIFS file system. If the credentials have changed, samba cannot determine the state of the share and returns the actual mount (or umount) an invalid state.


I usually try to keep smbmount within the scope of a login session (more like AutoFS or AMD), this is what a CIFS session expects.




Thanks for the info and for your help.


-- Arik
**********************************************************************
This email and attachments have been scanned for
potential proprietary or sensitive information leakage.


PortAuthority(TM) Server Keeping Information Inside
Vidius, Inc. www.vidius.com
**********************************************************************



To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]




--
===============================================
Gil Freund                       Systems Analyst
------------------------------------------------
Sysnet consulting   POB 396 Rehovot 76103 Israel
email: [EMAIL PROTECTED] http://www.sysnet.co.il
voice: +972-52-676906        Fax: +972-8-9356026
================================================



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to