LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Ubu 10.4 VB guest can't write to shares on Ubu 9.10 host (https://www.linuxquestions.org/questions/linux-software-2/ubu-10-4-vb-guest-cant-write-to-shares-on-ubu-9-10-host-813608/)

brianpbarnes 06-11-2010 02:17 PM

Ubu 10.4 VB guest can't write to shares on Ubu 9.10 host
 
Hi,
I just upgraded to the newest VirtualBox, version3.2.4.r62467 and installed Ubuntu 10.4/64 guest on an Ubuntu 9.10/64 host. I installed the guest additions and set 3 shared drives. I can see them in the "machine folders" names, paths and access modes in the "shared folders" dialog. But, when I try to write to them, I always get PERMISSION DENIED!

I mounted it as root:
mount -t vboxsf tera /vb/tera
It shows up in mtab:
root@ubu-10:/vb# grep tera /etc/mtab
tera /vb/tera vboxsf rw 0
I can see the listing:
root@ubu-10:/vb# ls /vb/tera
bak Recycled <snip>

But, the permissions are wrong and can not be corrected. Chmod and chown are ignored?!:
root@ubu-10:/vb# ll /vb | grep tera
drwxr-xr-x 1 root root 12288 2010-05-04 09:42 tera/
root@ubu-10:/vb# chown brianp /vb/tera
root@ubu-10:/vb# chmod 775 /vb/tera
root@ubu-10:/vb# ll /vb | grep tera
drwxr-xr-x 1 root root 12288 2010-05-04 09:42 tera/

I am running as root:
root@ubu-10:/vb# whoami
root

The VB shared folders dialog, machine folders shows /tera with access Full. /etc/mtab confirms that it is rw

I own it on the host:
brianp@trex:~$ ll / | grep tera
drwxr-xr-x. 16 brianp root 12K 2010-05-04 09:42 tera

Why can't I write to it?

Thank you,

Brian

rweaver 06-11-2010 02:27 PM

Try this: on the HOST chmod it 777. On the GUEST (remount it and then) touch a file at that location (eg:touch test.file)

Then check permissions of the file you just created on the HOST.

brianpbarnes 06-11-2010 05:22 PM

RWeaver,
On host:
root@trex:/home/brianp/ain# chmod 777 *
root@trex:/home/brianp/ain# ll
total 201M
-rwxrwxrwx 1 brianp brianp 326 2010-06-11 16:09 01 - Put A Little Love In Your Heart (2005 Digital Remaster).m3u

On the guest:
root@ubu-10:/vb/brianp/ain# ls -l
total 4
-rwxrwxrwx 1 root root 326 2010-06-11 17:09 01 - Put A Little Love In Your Heart (2005 Digital Remaster).m3u
root@ubu-10:/vb/brianp/ain# touch 01\ -\ Put\ A\ Little\ Love\ In\ Your\ Heart\ \(2005\ Digital\ Remaster\).m3u
root@ubu-10:/vb/brianp/ain# ls -l
total 4
-rwxrwxrwx 1 root root 326 2010-06-11 17:12 01 - Put A Little Love In Your Heart (2005 Digital Remaster).m3u

root@ubu-10:/vb/brianp/ain# touch test
root@ubu-10:/vb/brianp/ain# ll
total 4
-rwxrwxrwx 1 root root 326 2010-06-11 17:12 01 - Put A Little Love In Your Heart (2005 Digital Remaster).m3u
-rw-r--r-- 1 root root 0 2010-06-11 17:16 test

CHOWN has no effect:
root@ubu-10:/vb/brianp/ain# chown brianp test
root@ubu-10:/vb/brianp/ain# ll
total 4
-rwxrwxrwx 1 root root 326 2010-06-11 17:12 01 - Put A Little Love In Your Heart (2005 Digital Remaster).m3u
-rw-r--r-- 1 root root 0 2010-06-11 17:16 test

CHMOD works only on files I create:???
root@ubu-10:/vb/brianp/ain# chmod 777 test
root@ubu-10:/vb/brianp/ain# ll test
-rwxrwxrwx 1 root root 0 2010-06-11 17:16 test

On host:
root@trex:/home/brianp/ain# ll
total 4.0K
-rwxrwxrwx 1 brianp brianp 326 2010-06-11 17:12 01 - Put A Little Love In Your Heart (2005 Digital Remaster).m3u
-rwxrwxrwx 1 brianp brianp 0 2010-06-11 17:16 test

Too weird.

It appears that all permissions have to be set on the host and that full access is broken either in VB or in Ubuntu 10.4?

BrianP

rweaver 06-14-2010 11:11 AM

What's the permissions on the directories? 'ls -ald . .. ../..' from /vb/brianp/ain


All times are GMT -5. The time now is 06:16 PM.