./VBoxLinuxAdditions.run: Permission Denied

Discussions about using Linux guests in VirtualBox.

./VBoxLinuxAdditions.run: Permission Denied

Postby cephasiii » 27. Apr 2017, 10:47

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.
cephasiii
 
Posts: 4
Joined: 24. Apr 2017, 10:53

Re: ./VBoxLinuxAdditions.run: Permission Denied

Postby frank » 27. Apr 2017, 11:48

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

Code: Select all   Expand viewCollapse view
sh ./VBoxLinuxadditions.sh
.
frank
Oracle Corporation
 
Posts: 3362
Joined: 7. Jun 2007, 09:11
Location: Dresden, Germany
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows

Re: ./VBoxLinuxAdditions.run: Permission Denied

Postby cephasiii » 28. Apr 2017, 08:24

@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
cephasiii
 
Posts: 4
Joined: 24. Apr 2017, 10:53

Re: ./VBoxLinuxAdditions.run: Permission Denied

Postby frank » 28. Apr 2017, 13:12

Does it work if you copy that file to another location (e.g. your home directory) and start it from there?
frank
Oracle Corporation
 
Posts: 3362
Joined: 7. Jun 2007, 09:11
Location: Dresden, Germany
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows

Re: ./VBoxLinuxAdditions.run: Permission Denied

Postby Perryg » 28. Apr 2017, 13:52

cephasiii@debian:/media/cdrom0$ sh ./VBoxLinuxAdditions.sh


You still need to use sudo. " sudo sh ........"
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: ./VBoxLinuxAdditions.run: Permission Denied

Postby ogMischiefMeow » 14. Mar 2019, 07:43

the correct command to run this installation is
Code: Select all   Expand viewCollapse view
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!
ogMischiefMeow
 
Posts: 1
Joined: 14. Mar 2019, 07:38

Re: ./VBoxLinuxAdditions.run: Permission Denied

Postby andyp73 » 14. Mar 2019, 10:41

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.
andyp73
Volunteer
 
Posts: 1641
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


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 18 guests