exec permission denied as root

Discussions about using Linux guests in VirtualBox.
Post Reply
crdr
Posts: 2
Joined: 5. Aug 2013, 15:28

exec permission denied as root

Post by crdr »

Hi,

i have a problem with running exec as root in Debian. When I tried to run exec command I received:

Code: Select all

exec: 131: /home/m/mcp# Permission denied
output of ls -la in /home/m/ shows:

Code: Select all

lrwxrwxrwx 1 root root 39 Aug 5 13:50 mcp-> /media/sf_shared/
output of ls -la in /media/ shows:

Code: Select all

lrwxrwx--- 1 root vboxsf 4096 Jul 23 11:40 sf_shared
I have tried to mount folder manually using /etc/fstab i received:

Code: Select all

mounting failed with the error: Protocol error
So I have mount the folder through GUI Devices->Shared Folders. I have also noticed that during the startup following message occured:

Code: Select all

ERROR: '/home/m/mcp' is not found, or does not have execute permissions.
Any idea what to do?

Thank you
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: exec permission denied as root

Post by noteirak »

I am not a regular user of Shared Folders, so anyone please correct me if I am wrong, but as I understand share folders are only emulated implementation.
So you don't necessarly have every command working properly on them.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: exec permission denied as root

Post by Perryg »

http://www.virtualbox.org/manual/ch04.h ... mount_auto

Best to remove the auto mount and do a manual mount instead and set options.
crdr
Posts: 2
Joined: 5. Aug 2013, 15:28

Re: exec permission denied as root

Post by crdr »

Hi,

thanks for ideas. I have removed auto-mount and mount shared folder manually. Mounting in /etc/fstab does not work so I used mounting through rc.local

Code: Select all

mount -t vboxsf -o rw,exec,dev,uid=1000,gid=1000 shared /mnt/share 
It does not help so i tried to cp all of necessary files to /home/m/mcp but when I run exec I still receive

Code: Select all

exec: 131: /home/m/mcp# Permission denied
Post Reply