You are not logged in.

#1 2011-09-11 01:41:48

shiv
Member
Registered: 2011-09-11
Posts: 3

Creation/deletion problem for user on VirtualBox shared folder

Hi,

I have the latest ArchLinux installed as a *guest* on VirtualBox 4.1.2 on Windows 7 *host*.

I have installed "guest additions" from pacman as indicated in the wiki.

I share a Windows folder and mount it in Arch:

sudo mount -t vboxsf -o uid=1000,gid=100 share mountpoint

I can read and *modify* existing files as an ordinary user no problem. However, I can only create and delete files with sudo!
I tried 'sudo chmod a+w' on directories, files, etc., to no avail. I get a 'Permission denied' error. The mountpoint permission
does indicate that after I mounted the shared folder I lost 'w' permission. Even sudo chmod +w does not give it back.

Can someone help me get file creation/deletion permission for ordinary users on a shared folder? Otherwise I have to run
all my compilation commands with sudo!

Thanks in advance,

--shiv--

Offline

#2 2011-09-14 16:21:13

AMW
Member
Registered: 2011-09-14
Posts: 2

Re: Creation/deletion problem for user on VirtualBox shared folder

Hello,

I'm also an absolute newbie both in Linux and Arch.

But mounting the VirtualBox shared folder 'Library' to mountpoint /home/amw/Library
in /etc/fstab like this worked for me:

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
tmpfs           /tmp    tmpfs   nodev,nosuid    0       0
UUID=1bba9ef1-0eb9-453b-b565-f9ad6fb8225b swap swap defaults 0 0
UUID=b0b24611-a3d7-42e3-9fc9-d18ac993a797 /home ext2 defaults 0 1
UUID=de71a26a-90b4-45da-b246-7b50188bc871 / ext2 defaults 0 1
UUID=e7a8f35a-a275-4bba-a0c3-1ddfdea0f16f /boot ext2 defaults 0 1
#
# 20110910 AMW
Library /home/amw/Library vboxsf uid=1000,auto,rw,exec,suid,dev 0 0

Succes,


AMW

Offline

#3 2011-09-16 13:19:46

Barafu Albino Cheetah
Member
From: Moscow
Registered: 2011-09-16
Posts: 34

Re: Creation/deletion problem for user on VirtualBox shared folder

Seems like you accidentaly set sticky bit on mount point in guest. Try this.

 chmod a+rwx-t mountpoint 

before mounting.

Offline

#4 2011-09-16 20:22:06

shiv
Member
Registered: 2011-09-11
Posts: 3

Re: Creation/deletion problem for user on VirtualBox shared folder

I tried removing the sticky-bit as you suggested, but that did not work either.

I will now try the previous suggestion ...

Thanks for taking the time to answer.

--shiv--

Offline

#5 2011-09-16 20:29:32

shiv
Member
Registered: 2011-09-11
Posts: 3

Re: Creation/deletion problem for user on VirtualBox shared folder

This did not work either. Thanks for taking the time!

--shiv--

AMW wrote:

Hello,

I'm also an absolute newbie both in Linux and Arch.

But mounting the VirtualBox shared folder 'Library' to mountpoint /home/amw/Library
in /etc/fstab like this worked for me:

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
tmpfs           /tmp    tmpfs   nodev,nosuid    0       0
UUID=1bba9ef1-0eb9-453b-b565-f9ad6fb8225b swap swap defaults 0 0
UUID=b0b24611-a3d7-42e3-9fc9-d18ac993a797 /home ext2 defaults 0 1
UUID=de71a26a-90b4-45da-b246-7b50188bc871 / ext2 defaults 0 1
UUID=e7a8f35a-a275-4bba-a0c3-1ddfdea0f16f /boot ext2 defaults 0 1
#
# 20110910 AMW
Library /home/amw/Library vboxsf uid=1000,auto,rw,exec,suid,dev 0 0

Succes,


AMW

Offline

Board footer

Powered by FluxBB