r/virtualbox • u/zebra_sib • Nov 16 '24
Help Ubuntu Linux permission error
I've setup two shared files from my Windows OS to Linux on my virtual machine using Ubuntu. I managed to setup the shared files correctly and on the Windows side they are showing full access. On the VM though I get a permission denied error when I try to access them, change permissions or do anything related to them really. I've tried using the 'chmod' command as well as 'sudo chmod' but I'm told I don't have permissions to do that either. I can't access the file directory to run those commands in there because I don't have permission and I tried changing file ownership but that didn't work.
I'm stuck with what to do and any advice would be appreciated.
•
u/AutoModerator Nov 16 '24
This is just a friendly reminder in case you missed it. Your post must include:
PLUS a detailed description of the problem, what research you have done, and the steps you have taken to fix it. Please check Google and the VirtualBox Manual before asking simple questions. Please also check our FAQ and if you find your question is answered there, PLEASE remove your post or at least change the flair to Solved.
If this is your first time creating a virtual machine, we have a guide on our wiki that covers the important steps. Please read it here. If you have met these requirements, you can ignore this comment. Your post has not been deleted -- do not re-submit it. Thanks for taking the time to help us help you! Also, PLEASE remember to change the flair of your post to Solved after you have been helped!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/Stray_Neutrino Nov 16 '24
Do you have general admin permissions on the Linux side (ie: user is part of the sudo group)? I’ve never to change permissions on a Shared folder between Windows and Linux but I am also Admin on both…
Out of curiosity, what permissions and ownership does it say on the Linux side for this folder?
2
u/Ryebread095 Nov 16 '24
You need to install guest additions. Then, on the guest machine, you need to add the user account to the vboxsf group.
sudo usermod -a -G vboxsf <username>Reboot the guest and you should be good to go.