./VBoxLinuxAdditions.run: Permission Denied

Discussions about using Linux guests in VirtualBox.
Post Reply
cephasiii
Posts: 4
Joined: 24. Apr 2017, 10:53

./VBoxLinuxAdditions.run: Permission Denied

Post by cephasiii »

When inserting "Guest Additions CD" via the Devices tab, and running the below command, i receive this error:
cephasiii@debian:/media/cdrom0$ sudo ./VBoxLinuxAdditions.run
[sudo] password for cephasiii:
sudo: unable to execute ./VBoxLinuxAdditions.run: Permission denied
Anyone encountering this? I had Debian installed before and didn't have any issues. This seems to be from a recent update of VirtualBox.

Thanks.
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: ./VBoxLinuxAdditions.run: Permission Denied

Post by frank »

Probably because of the mount options of /media/cdrom0. Try

Code: Select all

sh ./VBoxLinuxadditions.sh
.
cephasiii
Posts: 4
Joined: 24. Apr 2017, 10:53

Re: ./VBoxLinuxAdditions.run: Permission Denied

Post by cephasiii »

@frank, thanks for the reply, but no such luck.

Error received:
cephasiii@debian:/media/cdrom0$ sh ./VBoxLinuxAdditions.sh
sh: 0: Can't open ./VBoxLinuxAdditions.sh
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: ./VBoxLinuxAdditions.run: Permission Denied

Post by frank »

Does it work if you copy that file to another location (e.g. your home directory) and start it from there?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: ./VBoxLinuxAdditions.run: Permission Denied

Post by Perryg »

cephasiii@debian:/media/cdrom0$ sh ./VBoxLinuxAdditions.sh
You still need to use sudo. " sudo sh ........"
ogMischiefMeow
Posts: 1
Joined: 14. Mar 2019, 07:38

Re: ./VBoxLinuxAdditions.run: Permission Denied

Post by ogMischiefMeow »

the correct command to run this installation is

Code: Select all

sudo sh ./VBoxLinuxAdditions.run
Obvs you need to change directory to the desired location, if you have an error mounting the drive you can easily download the iso and mount it manually using >download_virtualbox_org/virtualbox< just by choosing your version of VirtualBox. In my case it's >download_virtualbox_org/virtualbox/6.0.4/< meaning >download_virtualbox_org/virtualbox/6.0.4/VBoxGuestAdditions_6.0.4.iso< is my download location.

Wasn't allowed to post links - change all the _ inbetween download, virtualbox, and org. To fullstops!
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: ./VBoxLinuxAdditions.run: Permission Denied

Post by andyp73 »

ogMischiefMeow wrote:if you have an error mounting the drive you can easily download the iso and mount it manually
There are almost no circumstances in which a regular user of VirtualBox will need to manually download the Guest Additions ISO. The matching version of the file is always provided as part of the VirtualBox installation.

The correct procedure to make it available to the guest is "Devices" -> "Insert Guest Additions CD Image..." from the menu when the guest window has focus.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
Post Reply