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
1
vote
1 answer

Mono DllImport libsmbclient not authenticating

I need to be able to access a Samba/Cifs share from Mono using specific credentials. The best option I've found so far is to use libsmbclient. Unfortunately, I can't get it to authenticate. To rule out firewall/security/etc, I've tried using the…
Basic
  • 26,321
  • 24
  • 115
  • 201
0
votes
0 answers

How to write to excel file on NFS using Python

I am looking to read and write excel files that are on NFS drive using python. I am using smbclient to open the file The following read operation works. fileopenmode = 'rb' with smbclient.open_file(nfsfilepath, mode=fileopenmode) as fd: …
Jim
  • 3
  • 3
0
votes
0 answers

How to pass authentication stage of SMB

I need to prepare a samba server and an SMB traffic captured between the samba server and smbclient. Then I want to replay the traffic to communicate with the server so I need to pass the auth stage. First, I started the samba with the following…
0
votes
0 answers

How to connect to Windows domain controller using pysmb as user from different domain?

I am able to connect to a W2019 domain controller using python smb modules on Linux using the following type of code: from smb.SMBConnection import SMBConnection conn = SMBConnection('administrator', 'p@ssw0rd', 'anything',…
Rahul
  • 963
  • 9
  • 14
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
0 answers

displaying picture in tkinter label smbclient Python

I hope you guys can help me. I've got pictures on my Fileserver, which I want to display in a label. Unfortunately, I always get notifications, that the path doesn‘t exist. That's not true. Is there any other way to download the pictures from the…
0
votes
1 answer

Saving an Excel File using an smbclient in Python

I've been trying to overwrite an Excel file after performing some workbook operations using openpyxl. Due to access permissions being required to use the file in question, smbclient is being employed to access it. The problem arises when trying to…
0
votes
2 answers

SMBClient from multiple ip

I would like to make a bash script where I read a list of IP addresses and run the following command: smbclient \\\\ $ ip \\ ipc $ -U ". \ User" --pw-nt-hash which does an exit and try with another IP, regardless of that it throws a message if the…
Raven
  • 1
0
votes
0 answers

Error while connecting to windows drive from linux machine [via java program]

I am trying to connect to windows network drive using Jcifs = 1.3.17 in java code String baseAddress = "smb://file-123/XYZ_Others/" String DOMAIN = "XYZ" smbFile = new SmbFile(baseAddress, new NtlmPasswordAuthentication(DOMAIN, userName,…
Jeya Kumar
  • 1,002
  • 1
  • 13
  • 36
0
votes
1 answer

Ubuntu Smbclient Error returning browse list: NT_STATUS_IO_TIMEOUT

I was trying to list the windows fileshare from Ubuntu server. sometimes (no pattern) i can get a list of shares using smbclient -L 10.1.31.11 -U domain/user%password but after couple of times i am not able to get the list. the error i get is…
Lasit Pant
  • 317
  • 1
  • 8
  • 18
0
votes
1 answer

smbclient copy file with single quote

how can i use single quote in smbclient "put" command? For example: smbclient -c 'put "/mydir/video.avi" "\Music\Guns N' Roses\video.avi"' The ' in "Guns N' Roses" generate an error, but i cannot use "Guns N\' Roses", because will change path.
Vardar
  • 1
  • 3
0
votes
1 answer

smbclient connect from Linux to Windows Directory

I need to connect from Linux to Windows to copy some files. My Windows directory looks like this: \Server\Pucblic\dir\offline\etc I tried: smbclient -U user%pw \Server\Public\dir\offline\etc Also smbclient -U user%pw \\Server\Public --directory…
patrick_
  • 156
  • 2
  • 12
0
votes
1 answer

Python ,TypeError: not all arguments converted during string formatting, SMB mount command

I am trying to smb mount using below script but facing "TypeError" issue can someone please help me to solve this. the actual command i want to execute is mount -t cifs //111.11.111.111/SMBShare /mnt -o username=admin,password=admin,vers=3.0…
0
votes
1 answer

How to keep samba connection with TOSMBClient Library

I'm following TOSMBClient library link:TOSMBClient to share file from pc to my iPhone,This library is working to connect and copy file to my iPhone. But it takes very long time to connect to host and every time when copy file is done samba will…
pch
  • 13
  • 6
0
votes
0 answers

Duplicate symbol found

I have just imported MailCore2 into my project and I have followed all the steps that they have stated, but I am still getting an issue. duplicate symbol _hmac_md5_final…
BunkerBilly
  • 172
  • 2
  • 11