Umarzuki Mochlis wrote:
> 2009/9/22 Fábio Rabelo <[email protected]>:
>> And I can only run scripts on boot with root user ....
>>
>> So, how can I solve this ??
> 
> it depends on what command are you trying to run. Whether it needs
> root permission or not but VBoxHeadless doesn't not need to be run as
> root
> 
If you don't want it to run as root, you can use the su command.
Although most people use it to become root, you can use it to become
any user. ( su -c "VBoxHeadless --startvm ubuntu-server" - fabio )

I haven't checked if VBoxHeadless returns after starting the virtual
machine, or after you exit the virtual machine, so you may end up
needing a & after the command.
( su -c "VBoxHeadless --startvm ubuntu-server &" - fabio )

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to