Ubuntu in VirtualBox does not have permission to access the shared folder/media/sf_bak

Source: Internet
Author: User

has been done to automatically share folders, but now found unable to access, non-root users, using the "Ls/media/sf_bak" prompt does not have permission, of course, if you switch to root, it is possible.

"Resolution Process"
1, add the ordinary user name into the vboxsf. Because your user name is not vboxsf this user group.
Add Boarmy to vboxsf this user group below.
[email protected]: ~$ sudo adduser boarmy vboxsf
Adding user "Boarmy" to "vboxsf" group ...
Adding user "Boarmy" to the "vboxsf" group
Complete.
[email protected]: ~$
2. Go back to the command line:
[email protected]: ~$ ls/media/sf_bak
However, you still cannot access the shared folder.

3. Restart Ubuntu to see if it is useful.

The result is that you can actually use the shared folder:

http://blog.csdn.net/boarmy/article/details/19074473

--------------------------------------------------------------------------

I've done this before. You can automatically share folders:

"Resolved" Win7 cannot and VirtualBox in Ubuntu 13.04 shared folder

But now found unable to access, no permissions:

Even if it is:

?
123 [email protected]:~$ sudochown -R crifan /media/sf_win7_to_ubuntu/[email protected]:~$ sudo chown777 /media/sf_win7_to_ubuntu/[email protected]:~$

I still don't have permission.

"Resolution Process"

1. Reference:

[SOLVED] Can ' t access shared folder in VBox

Said to be the current user, Crifan, does not belong to "VirtualBox Guest Additions Installer" created by the user group vboxsf.

2. So to add the current user to the corresponding group to try:

Tried for a long while, cannot change.

3. To unlock:

can be modified, but still cannot add Crifan to vboxsf.

This user group cannot be found because of vboxsf.

4. You can only refer to the post, to use the command line operation:

?
12345 [email protected]:~$ sudoadduser crifan vboxsf正在添加用户"crifan""vboxsf"组...正在将用户“crifan”加入到“vboxsf”组中完成。[email protected]:~$

5. However, you still cannot access the shared folder.

Restart Ubuntu to see if it works.

The result is that you can actually use the shared folder:

Can really be achieved by:

Win7 copy a file to a shared folder, and then you can see it in Ubuntu.

Summary

But a problem was found:

In Ubuntu, copying a file from another folder to this shared folder Sf_win7_to_ubuntu results in a protocol error:

"Unresolved" VirtualBox access to shared folders in Ubuntu Error: protocol error

http://www.crifan.com/can_not_access_share_folder_in_ubuntu_virtualbox/

-------------------------------------------------------------------------------------------

Irtualbox shared folders are generally mounted under/media, with LL view will find that the owner of the folder is root, all groups are vboxsf, so file management to go inaccessible is normal, the solution is to add yourself to the VBOXSF group inside.

The code is as follows:
sudo usermod-a-G vboxsf Yourusernanme


Reboot, it's ready.

Http://www.jb51.net/os/Ubuntu/343237.html

Ubuntu in VirtualBox does not have permission to access the shared folder/media/sf_bak

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.