I had the same question about logout/login to get new group credentials for 
the user.
I can certainly go the reboot route, but this was asked over 4 years ago, 
and it's the only discussion about this I was able to find so I thought I'd 
check if anything had changed.
Thanks

On Thursday, January 14, 2016 at 1:44:07 PM UTC-5 Brett Russ wrote:

> On Thursday, January 14, 2016 at 12:29:57 AM UTC-5, Alvaro Miranda 
> Aguilera wrote:
>
>> The ssh session i believe is reused, so the best will be do a reboot.
>>
> I can understand the reboot is not required or may sound like too much, so 
>> you could potentially try `exit` at the end of the first block and see if 
>> that works.
>>
>
> Thank you! This heavy hammer solved the problem. I'm surprised there isn't 
> an option to force a new ssh/shell to be used.
> -Brett
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/4aa71a0f-7e4d-4b2b-81fe-8285ffe397ban%40googlegroups.com.

Reply via email to