You are not logged in.

#1 2010-04-03 22:01:49

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

How to mount Virtualbox shared folder as a normal user [solved]

I am trying to run Arch as guest in Virtualbox on Windows 7 host.

Everything was smooth until I tried to use "shared folder" feature.

Here is the line in /etc/fstab for shared folder

Documents               /home/user/Documents        vboxsf        defaults,uid=1000,gid=100        0           0

I was able to modify files which ALREADY EXIST in the mounted folder, but I was UNALBE to CREATE NEW files or REMOVE files in the mounted folder.

I checked the ownership of /home/user/Documents which shows that "user" do NOT have write privilege .




Can someone tell me how to mount a Virtualbox shared folder as a normal user with full read/write privilege?

Thanks!

Last edited by phabulosa (2010-04-04 23:08:02)

Offline

#2 2010-04-04 13:37:57

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: How to mount Virtualbox shared folder as a normal user [solved]

Did you try changing

gid=100

to

gid=1000

Offline

#3 2010-04-04 17:07:04

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Re: How to mount Virtualbox shared folder as a normal user [solved]

skunktrader wrote:

Did you try changing

gid=100

to

gid=1000

NO, it does not help.

The gid of my user is 100. So, that's not the issue.

The same problem is still there.

Offline

#4 2010-04-04 17:47:14

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Re: How to mount Virtualbox shared folder as a normal user [solved]

RESOLUTION:


mount with "dmode" option to override the permissions of mounted folder.

in /etc/fstab

shared                   /home/user/shared                defaults,uid=1000,gid=100,dmode=1755                 0                      0

Last edited by phabulosa (2010-04-04 17:47:29)

Offline

Board footer

Powered by FluxBB