Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Permissions on keys #235

Closed
jamtur01 opened this Issue · 6 comments

3 participants

@jamtur01

I note in 0.6.8 that permissions on keys/vagrant is 0644. On 0.6.9 it seems to be 0600. This causes:

/Library/Ruby/Gems/1.8/gems/net-ssh-2.0.23/lib/net/ssh/key_factory.rb:38:in `read': Permission denied - /Library/Ruby/Gems/1.8/gems/vagrant-0.6.9.dev/keys/vagrant (Errno::EACCES)

I can't puzzle out where has been changed or if it's me? This is OSX 10.6.5.

@mitchellh
Owner

James,

Are you still getting this? I haven't been able to reproduce this in any way.

Mitchell

@jamtur01

Hmmm. I'll try again.

@jamtur01

Can't replicate this with 0.6.9.

@mitchellh
Owner

Well that was strange! Good to hear its not around though.

@Spenser309

Hi, I just ran into this issue with Vagrant 0.8.10.

spenser@vodka:/var/lib/gems/1.8/gems/vagrant-0.8.10/keys$ ls -alh
total 24K
drwxr-xr-x 2 root root 4.0K Dec 19 14:40 .
drwxr-xr-x 10 root root 4.0K Dec 19 14:40 ..
-rw-r--r-- 1 root root 821 Dec 19 14:40 README.md
-rw------- 1 root root 1.7K Dec 19 14:40 vagrant
-rw-r--r-- 1 root root 1.5K Dec 19 14:40 vagrant.ppk
-rw-r--r-- 1 root root 409 Dec 19 14:40 vagrant.pub

Problem
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- ssh: 22 => 2222 (adapter 1)
[default] Creating shared folders metadata...
[default] Running any VM customizations...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] Forcing shutdown of VM...
[default] Destroying VM and associated drives...
/var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/key_factory.rb:38:in read': Permission denied - /var/lib/gems/1.8/gems/vagrant-0.8.10/keys/vagrant (Errno::EACCES)
from /var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/key_factory.rb:38:in
load_private_key'
from /var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/key_manager.rb:137:in sign'
from /var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/methods/publickey.rb:62:in
authenticate_with'
from /var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/methods/publickey.rb:20:in authenticate'
from /var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/key_manager.rb:117:in
each_identity'
from /var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/key_manager.rb:114:in each'
from /var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/key_manager.rb:114:in
each_identity'
from /var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/methods/publickey.rb:19:in authenticate'
from /var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/session.rb:73:in
authenticate'
from /var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/session.rb:65:in each'
from /var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/session.rb:65:in
authenticate'
from /var/lib/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh.rb:187:in start'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/ssh.rb:79:in
execute'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/util/retryable.rb:14:in retryable'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/ssh.rb:78:in
execute'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/ssh.rb:118:in up?'
from /usr/lib/ruby/1.8/timeout.rb:67:in
timeout'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/ssh.rb:117:in up?'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/boot.rb:29:in
wait_for_boot'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/boot.rb:28:in times'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/boot.rb:28:in
wait_for_boot'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/boot.rb:15:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/modify.rb:32:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/customize.rb:21:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/network.rb:24:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/host_name.rb:10:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/share_folders.rb:15:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/clear_shared_folders.rb:22:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/nfs.rb:39:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/provision.rb:17:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/forward_ports.rb:95:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/clear_forwarded_ports.rb:21:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/clean_machine_folder.rb:17:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/check_guest_additions.rb:33:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/match_mac_address.rb:21:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/import.rb:26:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/vm/check_box.rb:30:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/warden.rb:30:in
call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action/builder.rb:120:in call'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action.rb:134:in
run'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/util/busy.rb:19:in busy'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action.rb:134:in
run'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/environment.rb:364:in lock'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/environment.rb:354:in
open'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/environment.rb:354:in lock'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/action.rb:133:in
run'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/vm.rb:140:in up'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/command/up.rb:13:in
execute'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/command/up.rb:8:in each'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/command/up.rb:8:in
execute'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in send'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in
run'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in invoke_task'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:124:in
invoke_all'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/config.rb:115:in map'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/core_ext/ordered_hash.rb:73:in
each'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:124:in map'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:124:in
invoke_all'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/group.rb:226:in dispatch'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:109:in
send'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:109:in invoke'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/lib/vagrant/cli.rb:45:in
up'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in send'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in
run'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in invoke_task'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor.rb:263:in
dispatch'
from /var/lib/gems/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:in start'
from /var/lib/gems/1.8/gems/vagrant-0.8.10/bin/vagrant:26
from /usr/local/bin/vagrant:19:in
load'
from /usr/local/bin/vagrant:19

@mitchellh
Owner

This issue has been fixed in master.

@sl4m sl4m referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.