[chef] Re: Re: knife winrm browsing network shares


Chronological Thread 
  • From: Grep Juice < >
  • To:
  • Subject: [chef] Re: Re: knife winrm browsing network shares
  • Date: Mon, 10 Jun 2013 11:55:00 -0400

Looks like I spoke too soon, this hack seems to be unreliable, sometimes it works other times I get a
System error 67 has occurred.
The network name cannot be found.
Access is denied.
It seems to be at random,and I've seen anecdotal evidence that "net use" is not reliable enough to use in batch files. Have you found a way to make this reliable?

Thanks.



On Fri, Jun 7, 2013 at 10:05 AM, Grep Juice < " target="_blank"> > wrote:
Works! Thank you.


On Thu, Jun 6, 2013 at 7:44 PM, Peter Donald < " target="_blank"> > wrote:
Hi,

The easiest way I have found is to re-login as part of the winrm
session. So execute the command

net use \\filer\share mypwd

before you access the dir in the same session. We also had some issues
around the authentication code and ended  up having to add a patch
that looks like code in [1]. (We use AD for authentication but all our
deploy tools run on Linux).

HTH

[1] https://gist.github.com/realityforge/5725935

On Fri, Jun 7, 2013 at 7:00 AM,  < " target="_blank"> > wrote:
> Has anyone successfully used knife winrm for accessing remote shares?
> I can successfully do a:
> $ knife winrm -m server.mydomain.local -P 'mypwd' -p 5985 -x
> 'mydomain\Administrator' dir
>
> but get an "Access is denied" when doing dir \\\\filer\\share
>
> I have followed this doc and the knife winrm doc to setup the client
> http://msdn.microsoft.com/en-us/library/windows/desktop/ee309365%28v=vs.85%29.aspx
> with no luck.
>
> I see that the NTLM auth is successful on the windows host logs, but it seems
> like it's not using the CredSSP correctly. Toggling the CredSSP settings on the
> windows server has no effect at all.
>
> Any help is appreciated thanks!



--
Cheers,

Peter Donald





Archive powered by MHonArc 2.6.16.

§