dgzyk / phpvirtualbox

Automatically exported from code.google.com/p/phpvirtualbox
Other
0 stars 0 forks source link

VBoxInit does not work with users that have /bin/false as shell -> "fix" included #591

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The provided vboxinit script is usefull and works in most situations. Anyhow, 
if your vbox-user happens to have /bin/false as shell since he does not need to 
login, the script will totally fail without any notice.

This is due to su - $vboxuser -c ... uses the shell from /etc/passwd. 
/bin/false may not do anything. Thus add the -s parameter /bin/bash as custom 
shell and the script works even in the situation listed above.

Modified script attached.

Original issue reported on code.google.com by johanne...@web.de on 26 Sep 2012 at 4:06

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you. Incorporated into local code.

Original comment by imooreya...@gmail.com on 27 Sep 2012 at 12:00

GoogleCodeExporter commented 8 years ago
Just downloaded 4.1-11 and its not included in the included vboxinit script. 
Should it be?

Original comment by johanne...@web.de on 5 Oct 2012 at 2:42