LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2010, 02:17 PM   #1
brianpbarnes
Member
 
Registered: Dec 2005
Posts: 143

Rep: Reputation: 15
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
 
Old 06-11-2010, 02:27 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
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.
 
Old 06-11-2010, 05:22 PM   #3
brianpbarnes
Member
 
Registered: Dec 2005
Posts: 143

Original Poster
Rep: Reputation: 15
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
 
Old 06-14-2010, 11:11 AM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

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

Last edited by rweaver; 06-14-2010 at 11:43 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ubuntuzilla Repository is all you need to get the Latest Firefox Updates in Ubu LXer Syndicated Linux News 0 02-03-2010 05:00 AM
flash audio broken in Ubu 9.04 / 64 bit? brianpbarnes Linux - Software 0 06-01-2009 03:09 PM
Botched dual-boot XP/Ubu. 8.10 - XP won't load properly Eddie_the_Hated Linux - Newbie 2 02-28-2009 07:17 PM
LXer: Wisconsin Girl Cancels Online College Courses Thanks To A Mind Blown By Her Ubu LXer Syndicated Linux News 0 01-17-2009 08:41 PM
Geforce 6600 graphics card will only allow me to install PCLinux os...not Mint or Ubu g4yjsbarrie Linux - Distributions 2 06-16-2008 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration