Merge pull request #4387 from BackSlasher/allow-sudo

Ignoring SSHKeyBadOwner if user is root (uid 0)
This commit is contained in:
Mitchell Hashimoto 2014-08-29 09:48:34 -07:00
commit 417c2b7c7b
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ module Vagrant
LOGGER.debug("Checking key permissions: #{key_path}")
stat = key_path.stat
if !stat.owned?
if !(stat.owned? || (Process.uid == 0))
# The SSH key must be owned by ourselves
raise Errors::SSHKeyBadOwner, key_path: key_path
end