mount_smbfs - Finder - write access mismatch
mount_smbfs - Finder - write access mismatch
- Subject: mount_smbfs - Finder - write access mismatch
- From: "Van Vlierberghe, Steven" <email@hidden>
- Date: Wed, 27 Oct 2004 10:21:08 +0200
- Thread-topic: mount_smbfs - Finder - write access mismatch
Context:
In my application (java), on request of the user, I mount a Windows share and open a directory on that share.
How it is done:
via Runtime.getRuntime.exec () of (spawn)
1. /sbin/mount_smbfs -d0777 -f0777 //trapcd039/JobContainer /Users/digi/.esko_automounts/smb_TRAPCD039
2. "open local_filespec" (some directory beneath the mountpoint)(The mountpoint has rwx access for all.)
Result:
after fillling in a user and password in the dialog that pops up, the Finder pops up a window in which the specified directory is displayed.
(The local Mac OS X user is a standard user (not Admin). The supplied credentials for mounting indicate a windows user that has sufficient permissions on the windows share.)
Conclusion
So far so good. The volume gets mounted and the Finder window displays the contents of the directory.
Problem
When I drag a file with the Finder into the above mentioned window/directory to copy it onto the Windows share,
this always fails: a window pops up saying: "The item ... cannot be copied because there is not enough free space."
Also, The Finder window shows on bottom line in that window: "91 items, Zero KB available"
However, if I do in a shell window (Terminal): "cp xyz.pdf /mountpoint/and_below", this operation succeeds !!
So, apparently, the smb volume is nicely mounted for read AND write, but the Finder has another opinion on this.
( Strange also is: if I mount the same volume (with same credentials) with the Finder (Go-Connect to Server-Address smb://trapcd039/JobContainer), then I can copy onto the share using the Finder. )
Can somebody explain, or better, does anyone has a tip how to solve this ??
Why does the Finder think that the share is not writable ? (it should Think Differently)
kr
steven
PS: I am only an occasional Mac developer: if this is the wrong mailling list, can someone point me to the appropriate one ? Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden