You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vagrant
I have a multi-system setup (node, work, chefserver) with their own private network. Each system is provisioned with a hosts file and /etc/ssh/ssh_config, so I can just automatically ssh into the system. The private key in that config file will be <code>/vagrant/.vagrant/machines/$SYSTEM/virtualbox/private_key</code> where $SYSTEM is either node, work, or chefserver.
The problem is that the VirtualBox mounted /vagrant directory has mangled permissions.
For example, from one of the systems:
]$ ls -l /vagrant/.vagrant/machines/node/virtualbox/private_key -rwxrwxrwx. 1 vagrant vagrant 1706 Dec 5 19:17 /vagrant/.vagrant/machines/node/virtu
This prevents me from logging into the various systems.
Outside of the guest, the permissions are set appropriately:
$ ls -l .vagrant/machines/node/virtualbox/private_key -rw-r--r-- 1 joaquin197609 1706 Dec 5 11:17 .vagrant/machines/node/virtualbox/private_key
Any idea how to fix this?
Alvaro Miranda Aguilera
unread,
Dec 5, 2015, 7:46:54 PM12/5/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vagra...@googlegroups.com
Hello,
I think will be easiest you provision files and set permissions
outside /vagrant since that is not a real filesystem and it's using
virtualbox file system.
You can try to get a proper mount point of the default vagrant (a more
restricted one),
Have a look at mount options
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vagrant
I ended up copying them to /etc/ssh and doing chmod.
for SYSTEM in $SYSTEMS; do cp -v /vagrant/.vagrant/machines/${SYSTEM}/virtualbox/private_key /etc/ssh/${SYSTEM}_key chmod 644 /etc/ssh/${SYSTEM}_key ... ... done