Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have created a directory in Virutalbox.

Using VBoxManage, I am executing a script inside the Ubuntu VM directory I created above from Ubuntu host OS. But if the script in the VM contains commands for creating a new file, they are not executing. "echo" commands before and after the touch ommand are working fine.

I even used root user for VBoxManage to install. I think the directory is not allowing the files to be created . How can I make a directory in Linux to be 777 to all new files created automatically. I mean, even if I make the directory (chmod 777 dir), I am unable to execute the script from the host. Please help. It may be simple permissions problem. Even root is unable to execute.

VBoxManage guestcontrol "Ubuntu_10_04" execute --image "/bin/bash" "/home/cloudlet/Desktop/temp2/three" --username root --password root  --verbose --wait-exit --wait-stdout -- -l /usr

Please help. I am struggling with this problem for the past one week.

share|improve this question
    
Could you tell us what command and parameters you want to execute via VBoxManage guestcontrol. Your syntax is incorrect (in the provided example) and it will be easier to give you an answer once we know what you want. Just give us the command exactly how you would type it in a terminal in the guest OS. –  Huygens May 2 '12 at 16:12
add comment

1 Answer 1

I believe your problem is caused by Ubuntu which does not activate the root account by default; instead, you have to use sudo. Therefore, you cannot issue commands as root remotely.

However, you can activate the root account as described here.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.