MacOS – How to change permissions of mount point of a network resource on Mac OS X 10.6.8 (Snow Leopard)

file-sharingfilesystemmacosmountsnow leopard

I want to give another user permission to a mount point of a network resource. The directory mode is 700 and the owner is, of course, the logged in user who created the mount point.

I have programs running as different users which have to access the resource as well, but they are unable to. I would like to change the file mode of the mount point located in /Volumes/, but -probably for security reasons- this cannot be done by simply using the sudo chmod go+rx /Volumes/<mount point>/ command.

How can I give other users permissions to my mount point of a network resource?

EDIT:
Mounting is done the Mac way: via Finder. It's an AFP share (located on a Mac Server). Mount output: afp_4dskZR4jbiYw4tTvjg2EIbez-2.2d000004 on /Volumes/Work in Progress (afpfs, nodev, nosuid, mounted by foto5). I prefer to keep it the Mac way. I don't want to edit fstab manually to create static mount points (for example).

Best Answer

The syntax will vary upon the filesystem use, but if it's SMBFS or CIFS based, you will need to specify the mode of the mount point, e.g. -d=777. For example:

mount -o nosuid,-d=777 -t smbfs //domain;uid:passwd@server/share /Volumes/<mount point>

where:

  • domain = Domain or Workgroup
  • uid = Username
  • passwd = Password
  • server = Name or IP address of the server
  • esri = Name of the share