How do I properly setup permissions on a shared folder?

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
jay_koutavas
Posts: 2
Joined: 27. Jul 2007, 15:02

How do I properly setup permissions on a shared folder?

Post by jay_koutavas »

On the guest side, I'm getting a "Write error in swap file" when I try to do a simple vi edit of a file in my shared folder and am unable to save the edits.

I'm using vbox beta 2 hosted on a Macbook Pro, OS X 10.4.10, my guest operating system is Ubuntu 7.0.4

I have set up the shared folder with this /etc/fstab entry:

Code: Select all

vb_share  /mnt/vb_share  vboxsf  rw,suid,dev,uid=1000,gid=1000  0  0
An ls -l of the share point shows I own everything:

Code: Select all

drwrwxrwx 1 jay jay 136 2007-07-27 09:07 vb_share
If I do a vi foo.txt in there, I get the swap file warning and a warning about vi not able to create a backup file. The resulting file has these permissions on it:

Code: Select all

-rw------- 1 jay jay 11 2007-07-27 09:14 foo.txt
What am I missing, or, are there known issues with Mac beta 2?

Thank you,

/Jay
jay_koutavas
Posts: 2
Joined: 27. Jul 2007, 15:02

No takers?

Post by jay_koutavas »

I see there has been over 30 views of my topic since I posted it yesterday, but no replies.

Has anyone else seen this problem? Or, better yet, has anyone NOT seen this problem while using a shared folder? If you fall into the latter category, I would love to hear how you set your shared folder up.

Thx,

/Jay
cloaking_device
Posts: 2
Joined: 31. Jul 2007, 02:14

Post by cloaking_device »

I'm running ubuntu 7.04, vbox 1.4.1beta2 on a MacBook Pro.

I noticed that vi and emacs can't write a backup file (illegal characters in file name?) when editing a document in a share. However, if I tell emacs to stop making backup files in the same folder, or use another editor (i.e. jed), things work fine.
Post Reply