• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to mount a windows folder programmatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to mount a windows folder programmatically?


  • Subject: Re: How to mount a windows folder programmatically?
  • From: Wen Xia <email@hidden>
  • Date: Thu, 17 Jun 2004 15:07:31 -0700

On Jun 17, 2004, at 12:03 PM, Christian Evans wrote:

Hi Wen,

Sounds to me like you need to setup a smb mount on the xserve through the Workgroup Manager after you mount the windows server directory on the xserve.

Hi Christian, could you explain how to do it? On the server with Panther, I didn't see a /Volumes directory for sharing in Workgroup Manager. However, on the server with Jaguar, there is a /Volumes directory which I can set the access rights. I wonder what I need to do differently to make /Volumes shown. Appreciate your help.
Wen



In the SMB Share settings you can determine what permissions you want users to have that need to write to that shared directory.


Let me know if I am way off base on this.

Thanks,
Christian

On Jun 17, 2004, at 12:08 PM, Xia, Wen wrote:

Thank you for your response.

We have a MS SQL2000 server named "ntrk1" with IP address 123.456.789.000,
my application needs to read/write files from/to certain folders of ntrk1.
In order to do that, after deploying the application on xserve1(with
Jaguar), we will mount ntrk1 on xserve1. Usually, the admin of xserve1 will
mount the folder through Finder -> Connect To Server, and put in
"smb://123.456.789.000" as the server address, after authentication (put in
the user id and password to access ntrk1), the list of shared folders of
ntrk1 will be displayed and one of them will be selected.


After the admin finishes his job, there is a directory under /Volumes on
xserve1 as follows:
drwxr-xr-x 1 kd6cji wheel 16384 Jun 7 08:22 123.456.789.000
And in the application, I use "/Volumes/123.456.789.000/remoteDirName" to
access the remote folder.


But after we bought a new xserve with Panther, the application stopped
working. After mounting the remote folder the same way, somehow the
directory under /Volumes looks like:
drwx------ 1 kd6cji admin 16384 7 Jun 08:22 123.456.789.000
If I mounted the folder on my development mac, I will have full access
rights too. But only the person who mounted the folder is able to read and
write. We tried to use chmod to change the permission of the directory, but
in vain. There is no error message to the command chmod, but just nothing
is changed.


I wonder what is the solution to this problem. Any thoughts? Appreciate
your help.
Wen


Begin forwarded message:


From: wojingo <email@hidden>
Date: June 17, 2004 6:52:49 AM PDT
To: "Xia, Wen" <email@hidden>
Cc: Apple "Mailing List (E-mail)" <email@hidden>
Subject: Re: How to mount a windows folder programmatically?

On Wed, 2004-06-16 at 01:59, Xia, Wen wrote:

	Here is the problem after we migrated xserve to Panther: the mounted
drives
	which are windows folders can no longer be accessed by the
application.
	Only the user who mounted the drive is able to read/write the
folder, other
	users have zero authority to access the folder.

	Has anyone encounter the same problem?  How to resolve it?  Is there
a way
	to programmatically mount a windows folder?


Hi,

Isn't this just a directory permission issue?

When you say 'windows folders' do you meant you nfs? mounted the
filesystem on a remote windows box? Could you describe your setup in a
bit more detail?


I think you might be able to add the user that is running the
application to the group that can read/write/execute files in the
mounted directory.

If this doesn't work, pretend someone else told you. :)

HTH.
-
shaun




Thanks in advance. Wen _______________________________________________ webobjects-dev mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: How to mount a windows folder programmatically?
      • From: Joe Little <email@hidden>
References: 
 >Fwd: How to mount a windows folder programmatically? (From: "Xia, Wen" <email@hidden>)
 >Re: How to mount a windows folder programmatically? (From: Christian Evans <email@hidden>)

  • Prev by Date: NSMacOSRomanStringEncoding / Check your connection dictionary
  • Next by Date: Re: NSMacOSRomanStringEncoding / Check your connection dictionary
  • Previous by thread: Re: How to mount a windows folder programmatically?
  • Next by thread: Re: How to mount a windows folder programmatically?
  • Index(es):
    • Date
    • Thread