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

Discussions about using Linux guests in VirtualBox.
Post Reply
lugoteehalt
Posts: 57
Joined: 14. Jun 2008, 12:12

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

Post 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.
Last edited by lugoteehalt on 23. Sep 2010, 04:17, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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.
lugoteehalt
Posts: 57
Joined: 14. Jun 2008, 12:12

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

Post by lugoteehalt »

Great thanks, that works. Sorry did not notice howto.
Post Reply