Page 1 of 1

[SLOVED]Cannot write to the shared folder from inside guest?

Posted: 22. Sep 2010, 06:41
by lugoteehalt
Debian Lenny amd64 host, 32 bit guest.

Cannot write to the shared folder inside the guest. And am unable to work out how to remedy this, especially as 'chown', change owner, does not work.

Code: Select all

                                                  
debian:/home/lugo# ls -l VBShare/                                                            
total 56                                                                                     
-rw-r----- 1 root root 23065 2008-10-01 12:31 babeoftheday_100705.jpg                        
-rw-r----- 1 root root 30208 2008-09-30 17:29 super-bonus-02.jpg                             
debian:/home/lugo# chown lugo:lugo VBShare/babeoftheday_100705.jpg                           
debian:/home/lugo# ls -l VBShare/                                                            
total 56                                                                                     
-rw-r----- 1 root root 23065 2008-10-01 12:31 babeoftheday_100705.jpg                        
-rw-r----- 1 root root 30208 2008-09-30 17:29 super-bonus-02.jpg                             
debian:/home/lugo# ls -l
total 24
drwxr-xr-x 2 lugo lugo 4096 2010-09-20 06:15 Desktop
drwxr-xr-x 2 lugo lugo 4096 2010-06-30 04:22 dwhelper
-rw-r--r-- 1 lugo lugo  525 2010-09-21 06:58 help
-rw-r--r-- 1 lugo lugo  188 2010-07-14 02:05 quotes.txt
drwxr-xr-x 1 root root 4096 2010-09-21 07:25 VBShare
drwxr-xr-x 3 lugo lugo 4096 2010-07-02 03:51 Videos
debian:/home/lugo# chown lugo:lugo VBShare/
debian:/home/lugo# ls -l
total 24
drwxr-xr-x 2 lugo lugo 4096 2010-09-20 06:15 Desktop
drwxr-xr-x 2 lugo lugo 4096 2010-06-30 04:22 dwhelper
-rw-r--r-- 1 lugo lugo  525 2010-09-21 06:58 help
-rw-r--r-- 1 lugo lugo  188 2010-07-14 02:05 quotes.txt
drwxr-xr-x 1 root root 4096 2010-09-21 07:25 VBShare
drwxr-xr-x 3 lugo lugo 4096 2010-07-02 03:51 Videos
debian:/home/lugo#
On the host everything is owned by lugo. In the guest fstab simply uses 'defaults', as suggested in the manual. Everything virtualbox is up to date.

Thanks for any help.

Thought I'd better post since googling seems to indicate a bug is involved.

Re: Cannot write to the shared folder from inside guest?

Posted: 22. Sep 2010, 15:07
by Perryg
Try putting this in your rc.local and comment out the entry in the fstab.

Code: Select all

mount -t vboxsf -o rw,uid=1000,gid=1000 share /mount point
Replace the uid and gid with your id and the share /mount point with the proper information and the /mount point must be the complete path not shorthand.

Re: Cannot write to the shared folder from inside guest?

Posted: 23. Sep 2010, 03:44
by lugoteehalt
Great thanks, that works. Sorry did not notice howto.