Record locking problem between linux and Windows

I need to run a bunch of old DOS FoxPro / Clipper applications in linux under DOSEMU. The programs access their "databases" located on a network server (could be a Windows or Linux...

Progress bar during smbclient put

I'm trying to show a progress bar during a remote copy using smbclient put, maybe using pv or dialog, or any other option. The smbclient-put command il working fine: smbclient //usbrouter/backup...

CentOS 6.3 Samba share over internet not working

Summary: This is a 2 part question. A simple Samba share on one ISP with router doesn't work while another ISP with a different router setup the same and a similar server with same Samba...

smbclient NT_STATUS_ACCESS_DENIED

About once every 10 years I need to wrestle with SAMBA as I migrate to new hosts, and then I repress the traumatic memory until I have to relearn it all the next time :S Hence this newbyish...

SMB Client Commands Through Shell Script

I have a shell script, which I am using to access the SMB Client: #!/bin/bash cd /home/username smbclient //link/to/server$ password -W domain -U username recurse prompt mput...

Running smbclient command from Java using Runtime

I am trying to run smbclient command to copy a file to a share drive using Java Runtime class with the following code: private void copyFiles(String filePath) throws Exception { String...

Get latest file from samba share using smbclient

My directory contains the file and it's different versions out of which I want to pick the latest version which can either be sorted by date or by the revision number at the end of file name some...

smbclient tree connect failed nt_status_bad_network_name when folder exists

When i try to enter in a specific folder in windows from samba there is always the same error, can someone please help with error: smbclient //CLOUDBOX/team/PS -Uuser%pass -c...

Why smbclient -L returns info where OS=[Windows] if Samba server installed on Ubuntu?

Samba server works on Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-31-generic x86_64). When I use smbclient for looking on available services on this server smbclient -L server_name I get this...

Unable to read file using java and smbj on shared drive

I am trying to use the SMBJ jar (https://github.com/hierynomus/smbj) to fetch a file from shared drive. I am able to connect to the shared disk. After the connect, any operation I perform is...

Not sure how to implement the SMB project into my app

I'm trying to implement SMB into my app and found this https://github.com/amosavian/AMSMB2. I'm not sure how to implement this code into the UI of my app. For example, do I connect the connect...

How to access a folder via SMB protocol from ASP Net Core

Hello i have a folder on a network that i can access via SMB. I can connect through a linux bash using Samba SMB Client using: smbclient [IP] -U [user] --i am required to enter password and...

How to install pdo_odbc in Docker php image

I'm trying to connect to mssql with PDO and Laravel but I think I'm having issues installing the driver. There are no build errors, but I've looked around everywhere to try to find a solution, and...

How to add an Ubuntu Bionic packages (php-smbclient) into php:7.4-cli docker file, currently only showing Debian packages?

I'm trying to include the php-smbclient into a Docker image build using the php:7.4-cli image however i'm getting an error: Package 'php-smbclient' has no installation candidate. I've included RUN...

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...

Unable to Launch VLC Application in Debian Buster

I have setup debian on a newly built machine. I have installed XFCE4 DE. I also installed VLC but I am unable to launch it. My environment details: uname -a returns Linux debianNew 4.19.0-8-amd64...

Using sed to print content of files in columns

I have an file , my file name is lookup.txt. Sometimes this file content is 100 lines , so everything scroll while printing. Thats why i like to print it on screen in 2 or more columns. my bash...

Azure File Share - Mount [SOLVED]

I create an Azure File Share on my Storage Account v2. Going under the label Connect I copied the command lines to mount the File Share with Samba v3.0 I didn't achieve my goal. Error received:...

Golang - smb2 module + Basic understanding of Golang

I have been trying to use the module: https://godoc.org/github.com/hirochachacha/go-smb2#RemoteFile.ReadAt In order to authenticate to my smb2 on a windows machine, the authentication process goes...

Why smbprotocol connection is getting timeout

I'm trying to transfer some file from ubuntu to Window(AWS EC2 instance).But I'm getting following error. ValueError: Failed to connect to '35.154.105.236': timed out For reference import...

Getting owner of file from smb share, by using python on linux

I need to find out for a script I'm writing who is the true owner of a file in an smb share (mounted using mount -t cifs of course on my server and using net use through windows machines). Turns...

Connect to a distant directory via SMB - Failed to retrieve share list from server

I tried to connect to a distant directory via SMB. The directory is hosted in 10.1.13.211. The execution of smbclient -L 10.1.80.118 --debuglevel 2 returns : protocol negotiation failed:...

"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:...

How to remotely execute a file on a SMB share as a guest

I have a Windows machine I'm trying to compromise and I've managed to gain access to a SMB share as a guest user. Currently, I've uploaded a bind_tcp payload to the share and I'd like to execute...

SMB session setup failed: NT_STATUS_LOGON_FAILURE

I'm setting a mini Windows AD. My setup is a Windows Domain (2019), a W10 Client and a Linux Machine When I am accessing the C$ of the W10 client with smbclient as any user (even Administrator...

pysmb from linux to Windows, Unable to connect to shared device

Trying to connect to an smb share via pysmb and getting error... smb.smb_structs.OperationFailure: Failed to list on \\\\H021BSBD20\\shared_folder: Unable to connect to shared device The code I...

Mounting cifs share using kerberos fails with 'Operation not supported'

I'm trying to mount a network share using cifs and kerberos on a CentOS 8 distro. I am able to mount the share correctly using my explicit credentials, but passing the option of sec=krb5 doesn't...

Set up nextcloud with postgres both via docker

I would like to set up nextcloud locally with postgres via docker. I am able to do so without attempting to use postgres (i.e. with default sqllite) but I run into problems when using postgres...

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...

NT_STATUS_IO_TIMEOUT when trying to connect with samba client

I am trying to connect to a windows machine in my local network from ubuntu with samba client. To send a message I type : smbclient -M 192.168.1.10 But I get Connection to 192.168.1.10 failed....