Questions tagged [libsmbclient]

libsmbclient is a library toolset in Samba that permits applications to manipulate CIFS/SMB network resources using many of the standards POSIX functions available for manipulating local UNIX/Linux files.

It permits much more than just browsing, files can be opened and read or written, permissions changed, file times modified, attributes and ACL's can be manipulated, and so on. Of course, its functionality includes all the capabilities commonly called browsing.

libsmbclient can not be used directly from the command line, instead it provides an extension of the capabilities of tools such as file managers and browsers. This man page describes the configuration options for this tool so that the user may obtain greatest utility of use.

32 questions
3
votes
0 answers

How to build libsmbclient.a

I want to build libsmbclient.a. This library must then be statically included in the C++ project. I see there is wscript_build in samba/source4/torture/libsmbclient. But this script build module, not library. If I build with >>./configure…
2
votes
1 answer

How make a SMB connection through Network object in Android?

I'm trying to make a SMB (Samba) connection to get a list of files and download them with the SMBClient of smbj library. To that I have to connect to a specific network and use that class, but in Android Q I have to change the way to connect to the…
2
votes
1 answer

How to read data residing on Windows Shared folder from a Linux Server using python

In my current situation I have a python script on my Linux server which would work on some pdf files residing on a remote windows shared folder. I am currently using smbclient to make connection to it but I am not able to work on the files,…
Mousam Singh
  • 675
  • 2
  • 9
  • 29
2
votes
1 answer

Problem with getting list of directories : SMBLibrary

I'm trying to get the list of shared folders from SMB server using following code but I'm getting "STATUS_USER_SESSION_DELETED" from ListShares() : var client = new SMB2Client(); var success =…
vishwas-trivedi
  • 516
  • 2
  • 8
  • 26
2
votes
1 answer

Cannot access file on Samba server via Python

I'm trying to access a file on our Samba server using Python. I found out I need to use a Samba client for this, so I started using PySmbClient. Even though there are many examples online of how to do this, mine just does not want to work. See…
Grant Bartel
  • 363
  • 1
  • 3
  • 21
2
votes
1 answer

How to put result from pipe to Samba drive with smbclient?

I would like to do something like this? echo "test" | smbclient //server/share -c "cd /target/location/;put " Any idea?
Babu
  • 4,324
  • 6
  • 41
  • 60
2
votes
1 answer

how to only build libsmbclient-raw.so

I only need to build libsmbclient-raw.so in samba. I don't need any other tool or daemon in samba package. The samba version I am working on is samba-4.1.13. How can I only build libsmbclient-raw.so ?
Shuo Dong
  • 37
  • 4
2
votes
0 answers

Unable to build JCIFS jar file

I had installed the apache ant and I would like to make the SMB library into a jar file together with the java/class that I had created. I tried entering the "ant jar" into the cmd. however, I dont seem to be able to build it as I keep getting this…
AuroraBlaze
  • 421
  • 2
  • 8
  • 25
1
vote
0 answers

Problem while trying to access files in sub-directories using 0.11.5 SMBJ library

I would like to check if a file exists in a particular directory in shared drive using SMBJ library. For example this is the file I want to check the existence of - \\server1\CF\Sub1\Sub2\Sub3\test.txt Below is the code snippet I'm using …
kola
  • 27
  • 7
1
vote
0 answers

FileStore.CreateFile returns ntStatus = 3221226071

I am using this SMBLibrary. Related to this closed issue, I sometimes get ntStatus = 3221226071 when I attempt to FileStore.CreateFile(). What does "DFS pathname not on local server" mean? If I keep trying, eventually it will work. Leads me to…
duyn9uyen
  • 9,585
  • 12
  • 43
  • 54
1
vote
0 answers

smbclient NT_STATUS_LOGON_FAILURE with "Cannot do GSE to an IP address"

tl;dr smbclient -I 1.2.3.4 '\\hostname-abc\share1' prints Cannot do GSE to an IP address with final status NT_STATUS_LOGON_FAILURE. What is GSE? Running the following smbclient command smbclient -I 1.2.3.4 '\\host-unix1\share1' --command=ls -A…
JamesThomasMoon
  • 6,169
  • 7
  • 37
  • 63
1
vote
1 answer

Transferring from Windows to Linux in node js with smbget

How do you retrieve a file if your node express web service is on a linux server (ubuntu) and you need to download files from a windows server? 2 Valid Options: Windows Servers do not support SFTP/SSH. There are some ways to do this (with…
astanley86
  • 313
  • 1
  • 2
  • 11
1
vote
0 answers

Setting network hosts as variables with Nmap scan in Perl

I'm working on writing a Perl script that will automatically run and automatically access shared SMB drives on a network, when connected to said network. What I have gotten it to do so far, using the code below, is to check to make sure an internet…
1
vote
1 answer

How can i install SMB Client on Openshift Gear

How can i install SMB Client on Openshift Gear Actually i have successfully installed OwnCloud Using https://hub.openshift.com/quickstarts/4-owncloud but the only problem is after installing the External storage support plugin it gives me hard…
1
vote
1 answer

where is the implementation of smbc_open() function in libsmbclient

I am taking a look at the implementation of libsmbclient. The source code I have for samba is 4.1.13. I can find the example testXXX.c functions which shows the examples of using libsmbclient functions. I also found a header file called…
Shuo Dong
  • 37
  • 4
1
2 3