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

mplayer build with address sanitizer (asan)

I am trying to build mplayer using clang with the address sanitizer flag. However, I keeps getting errors when I execute make. Here is the full output log including the commands I used. Any help...

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

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

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

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 <RESULT_FROM_PIPE> <AS_THIS_FILENAME>" Any idea?

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

Build statically linked binary with waf

I'm trying to build a smbclient binary from the latest source using static linking so it can be portable. I'm doing this on a RHEL 7 machine with all the configure dependencies installed...

puppet install multiple samba packages with different version

I have a mixed environment where I need to install samba/samba3x, libsmbclient packages onto different red hat servers. What is the best way to write the module, should I write a separate module...

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

apt-get upgrade, apt-get install not working.

I recently updated Python 2.7.6 to Python 2.7.12. Since then, when I run apt-get upgrade or apt-get install or apt-get autoremove` I get the following error: Reading package lists... Done Building...

How to fix broken apt-get on debian wheezy?

I'm using a debian wheezy at work. Packages are held in specific versions. My /etc/apt/sources.list contains lines like : deb http://mycompany.com/debian/debian-main/ wheezy main non-free...

PHP7.0: Call to undefined function utf8_encode()

I'm developing with PHP 7.0 and I have tried to use the function utf8_encode() and I have got the error "Call to undefined function utf8_encode()" I have to try to install php7.0-xml module with...

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

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

PHP GD library is NOT installed but it has been enabled actually

I have PHP GD installed and enabled: sudo gedit...

Open files from Linux bash shell on Windows 10

Using Windows 10 and I have the Linux Bash Shell to use with Jekyll. All I am looking to do is open the explorer or filesystem to copy some files. Does anyone know how you browse the file explorer...

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

Cannot install php7.2-fpm on the latest Ubuntu "18.04.2 LTS (Bionic Beaver)"

It looks like PHP 7.2 now comes out of the box on Ubuntu 18.04 but there are 2 versions: 7.2.3-1ubuntu1(base) and 7.2.15-0ubuntu0.18.04.1(security). When I try run apt install php7.2-fpm I get: #...

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

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

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

Conversion to HEVC using FFmpeg produces video s incompatible with Keynote, but Handbrake works

I have a video ( https://www.dropbox.com/s/01rg7rgarqfruy3/Spore%20-%20Assymetrical%20Creatures%2C%20excerpt.mov?dl=0 ) that I want to convert to HEVC (H265). When I convert it using Handbrake, it...

How to compile FFmpeg as static (single file)

I would like to compile FFmpeg 4.1.3 as static or single file, After compiled. It's shared binary. Here is what I do Install the dependencies apt-get -y install build-essential autoconf automake...

Having trouble compiling ffmpeg code in command terminal

I am having a bit of trouble compiling my c++ code in my terminal. I have ffmpeg installed as shown below. ffmpeg version n4.1 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7...

Mysql will not install due to mariadb install but mariadb is not installed

Been trying for hours to get mysql installed but it failed due to a conflict. This is a brand newly installed CentOS 8 x64 (latest) and it's fully updated. There are no custom packages installed...

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

How to fix the errors encountered while processing installation

I wanted to reinstall java which was accidently deleted, using this post. As mentioned in the above post on runningsudo apt install default-jre, I got this error: Reading package lists......

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

Relevant tags