Questions tagged [smbj]

Use this tag if your question is related to Server Message Block (SMB2, SMB3) implementation in Java.

Server Message Block (SMB) is a network protocol for file, print and other services in computer networks.

The SMBJ is the Java implementation of this network protocol.

44 questions
0
votes
0 answers

com.hierynomus.mssmb2.SMBApiException: STATUS_ACCESS_DENIED (0xc0000022): Create failed for \\*hostName*\*shareName*\*path*

I get an error STATUS_ACCESS_DENIED (0xc0000022) every time I try to connect to a share on a host with linux. And I don't get an error if I try to connect to a share on host with windows. Here is an example of my java code SMBClient client = new…
0
votes
1 answer

How to get a Subfolder with the SMBLibrary in .Net Core?

So I need to acces a subfolder in Sharedrive with the SMBLibrary. I was expecting a list of folders of the subfolder but I always get a 0 count. SMB2Client client = new SMB2Client(); bool isConnected = client.Connect("myServername",…
AaronH2001
  • 48
  • 5
0
votes
1 answer

CodenameOne SMB shared folder access

I need to build a mobile app for Android and IOS that can read and write to a SMB2/3 network share. Is this possible in CodenameOne? If so is there an example of how to do this? If it is not possible in CodenameOne is there another framework that…
Doug Sisco
  • 121
  • 9
0
votes
1 answer

How to convert com.hierynomus.sbmj.share.File to Base64 String?

Using Java 1.8 and SMBJ 0.11.5 Trying to read file from Network share using.. File remoteFile =…
Sathishkumar C
  • 91
  • 1
  • 11
0
votes
0 answers

How to handle timeout exception - Smbj

I'm just getting started with java development. My ex-colleagues write a code(Code 1). I recently faced the timeout exception. Code 1: public String deleteFiles(String DOMAIN0, String USER, String PASSWORD, String SRC_DIR, String DST_DIR,…
Mahesh M
  • 7
  • 5
0
votes
1 answer

STATUS_ACCESS_DENIED (0xc0000022): Could not connect to - Azure Netapps File Share (Network Drive) access with smbj JAVA library

Trying to read files from Azure Netapps (Network Drive). We successfully mount and read files with Window File Explorer. With the same credentials, we are trying with JAVA smbj library. While executing the java code in eclipse, getting following…
Sathishkumar C
  • 91
  • 1
  • 11
0
votes
2 answers

hierynomus smbj write - share file access denied issue

Using smbj to rite file to shared folder and the below code is giving me access denied issue. But i have mounted the same shared folder under "Network Locations" and i can write file to the same folder by manually creating. I am guessing the options…
Pat
  • 535
  • 1
  • 16
  • 41
0
votes
1 answer

Android Studio and SMBJ

I am trying to make a File List from my SMB Shared Folder with Android Studio. I want to press a Button in my Android App and then get the List stored as *.txt in my root or SD Card Root. I am using Android Studio API Version Level 30 and SMBJ…
Fry1990
  • 1
  • 1
0
votes
1 answer

Use the smbj module without authentication in Java

there is a little amount of actually useful examples for SMBJ on the internet and didn't find one for establishing a connection with an smb file share using Java & the smbj module. Can someone provide me with an example? thanks :)
0
votes
1 answer

Rename files on SMB using smbj fails

I'm strugging to rename files with content to SMB using com.hierynomus.smbj. Files are generated with content, but after renaming content is gone. Following implementation renames files: public void rename(String pathFrom, String pathTo) { …
flomo83
  • 195
  • 1
  • 9
0
votes
2 answers

Getting com.hierynomus.mssmb2.SMBApiException: STATUS_ACCESS_DENIED (0xc0000022) exception while reading files from shared drive

I am trying to access files from a shared drive using SMB Java Library. I am trying it in two ways a) SMB JCIFS b) hierynomus but both the ways I am getting exception, below is the code and exception I am getting JCIFS try { String path…
Karthik P
  • 107
  • 2
  • 12
0
votes
2 answers

Append data to existing file using SMBJ client

I need to append data to an existing file using the SMBJ client. The below code appends the data, but the final file is corrupted, not able to read/open the file. Set accessMask = new HashSet<>(); …
saravanan
  • 151
  • 2
  • 15
0
votes
1 answer

Which NTLM version (1 or 2) does SMBJ authenticator support?

I am developing an application which needs to access a network share using SMB. I was told that if security detects an authentication attempt using NTLM v. 1, then the respective firewall rules will be revoked. Therefore I need to make sure that…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
0
votes
0 answers

"com.hierynomus.mssmb2.SMBApiException: STATUS_ACCESS_DENIED: Authentication failed ..." on authenticate call

I'm trying to connect to an SMB server using com.hierynomus.smbj v0.10.0. Connection is ok but as soon as I try to authenticate I'm getting this exception: com.hierynomus.mssmb2.SMBApiException: STATUS_ACCESS_DENIED (0xc0000022): Authentication…
GreenTurtle
  • 1,144
  • 2
  • 21
  • 35
0
votes
1 answer

Disable logging on third party dependency "SMBJ" using simplelogger

I am using com.hieronymous.smbj and try to disable the logging. The doc says, it uses sl4j so I tried a simplelogger.properties file in my resources # App logging…