[jcifs] Re: Problem mkdirs with NtlmPasswordAuthentication

Michael B Allen mba2000 at ioplex.com
Thu Feb 5 20:04:10 GMT 2004

Peter Bos said:
> Hi,
> - I added "/" to my folder for purity. As said, this does not have any
> effect.
> - Stacktrace :
> jcifs.smb.SmbAuthException: Access denied
> jcifs.smb.SmbTransport.send(SmbTransport.java:678)
> jcifs.smb.SmbSession.sessionSetup(SmbSession.java:138)
> jcifs.smb.SmbSession.send(SmbSession.java:102)
> jcifs.smb.SmbTree.treeConnect(SmbTree.java:124)
> jcifs.smb.SmbFile.connect(SmbFile.java:580)
> jcifs.smb.SmbFile.connect0(SmbFile.java:550)
> jcifs.smb.SmbFile.queryPath(SmbFile.java:923)
> jcifs.smb.SmbFile.exists(SmbFile.java:998)
> jcifs.smb.SmbFile.mkdirs(SmbFile.java:1862)
> - I tried with 0.8.0b1, but the problem persists. Same stacktrace.
> - the renameTo and copyTo-methods seem to work just fine.

I'll have to try testing more inputs with mkdirs. Is it possible that this
is on a DFS share? What is the server? If it's samba, maybe it's a UNIX
directory permissions problem? What is the SMB URL you are using *exactly*
and what part of that path exists?

Can you send me a packet capture[1] of renameTo succeeding followed by
mkdirs failing?


[1] http://jcifs.samba.org/capture.html

More information about the jcifs mailing list