Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [smbclient]

Questions about the Samba file sharing application's command line tool, smbclient.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Smbcacls faster connection

I am having issue with smbcacls performance. I have extracted the code from the utils source to create a custom smbcacls function. What I am having issue is this work flow is this talloc_stackframe ...
Sam1324's user avatar
  • 101
0 votes
0 answers
19 views

How to copy files from Debian PC to MediaBox folders PC use terminal?

Debian 11 (bullseye) and MediaBox (running linux) in local network. MediaBox accessible via SMB protocol and SSL. How to copy files from Debian to MediaBox folders use command line?
minto's user avatar
  • 543
0 votes
1 answer
57 views

smbclient deltree with read-only directories

I'm trying to delete files on a NetApp server using smbclient //servername/share -c "deltree directory_to_delete". It works except for folders which have the read-only flag set. In this case,...
Schorschii's user avatar
2 votes
0 answers
371 views

Linux SMB Client Failed to Connect to SMB Server Forcing AES-256?

I'm trying to connect to SMB share on my TrueNAS from my Fedora. It works well until I decided to enable encryption of SMB data. I put following in the service config on TrueNAS (global settings) unix ...
citrate's user avatar
  • 151
0 votes
0 answers
37 views

Why is my SMB mount using credentials from a different fstab entry

I'm seeing a strange behavior on my Linux server. I have 2 different SMB shares in my fstab: //192.168.x.x/Share1 /home/user/mnt1 cifs credentials=/etc/credential_1,dir_mode=0755,file_mode=...
SKAL's user avatar
  • 1
1 vote
2 answers
2k views

How to use smbclient with space in the name of the share directory for apply the command dir

I'm using this command for testing the SMB connection: smbclient -A=credential_file -L \\hostname Sharename Type Comment --------- ---- ------- ADMIN$ ...
dubis's user avatar
  • 1,460
2 votes
0 answers
203 views

smbclient does not work on RHEL 8.7: "Illegal instruction (core dumped)"

smbclient //10.206.241.204/C$ -U administrator -d 3 lp_load_ex: refreshing parameters Initialising global parameters rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) ...
SamAndrew81's user avatar
3 votes
1 answer
12k views

Using 'get' to transfer contents of folders using smbclient

Using smbclient and the 'get' command to move files from a Windows network share over to a Linux box. I can smbclient from Linux to the network share and bring individual files over by doing ...
Shroom's user avatar
  • 31
0 votes
1 answer
993 views

Can't make samba share writable

I'm trying to make my samba share (running on Debian 10) writable but it seems that anything I try just breaks the share and I cannot access it anymore. Here's my current configuration: [...
giovi321's user avatar
  • 907
3 votes
1 answer
2k views

smbclient not entering smb shell

I want to access an SMB share on our intranet. When I execute smbclient -L //intranet.host/ -U myuser I can enter my password and get a list of all shares. When I want to enter the smb shell with ...
user106745's user avatar
1 vote
1 answer
5k views

How to connect to old Samba-server with new smbclient?

A Linux-based multimedia-box I have runs smbd, which reports its version as 3.0.30. smbclient 4.10 used to be able to connect to it, but, after upgrading the client to 4.13.8, I'm getting ...
Mikhail T.'s user avatar
0 votes
0 answers
769 views

Problems connecting Debian to Windows SMB share using smbclient?

I'm having problems connecting my Debian Linux system to my Windows SMB share. The other windows VMs have no problem mounting the drive, just Linux. This VM is connected to the AD by realmd, and ...
Hughesey's user avatar
  • 101
1 vote
2 answers
12k views

smbclient throws "ERROR NT_STATUS_IO_TIMEOUT"

I am trying to get a SMB connection to a HackTheBox box with an open SMB port. But smbclient throws an "ERROR NT_STATUS_IO_TIMEOUT" error every time. I've added client min protocol = CORE ...
Lil Peep's user avatar
2 votes
0 answers
2k views

SMB mount with Kerberos

I have set up a server with Fedora 33 and joined it to an Active Directory. This worked successful and users can authenticate themselves with their Active Directory user names. I can also see my Linux ...
T. Pluess's user avatar
  • 552
2 votes
1 answer
6k views

smbclient protocol negotiation failed: NT_STATUS_IO_TIMEOUT not supported SMB dialect?

I'm trying to do some enumeration on the kioptrix vm from vulnhub and failing to list available shares using smbclient. According to nmap tcp/139 is open. I've used metasploits auxiliary smb_version ...
cyzczy's user avatar
  • 376
1 vote
0 answers
7k views

smbclient NT_STATUS_LOGON_FAILURE

Trying to access and smb drive on a Windows machine (Windows 10 Pro) in linux (CentOS7) via smbclient, but having login problems. Seeing... [root@airflowetl etl]# smbclient -U my_user -L 172.18.7.102 ...
lampShadesDrifter's user avatar
0 votes
0 answers
2k views

Cannot install Samba client on Ubuntu 20.04

I just upgraded my Ubuntu from 18.04 to 20.04. Now I lost my access to my NAS and I am trying to re-install it. I read several posts about the issue that others had when upgrading, including the fact ...
user654019's user avatar
  • 2,337
7 votes
2 answers
10k views

smbclient can access Windows share content, mount.cifs cannot

I have been given an account on a Windows file server. The (to me) very strange situation is that I can connect with smbclient, change to the (deep) subdirectory or show its content I can mount the ...
Hauke Laging's user avatar
  • 90.5k
1 vote
2 answers
1k views

Can smbclient put quietly?

I invoke smbclient from cron to upload backups to an entertainment set-top box, which only speaks SMB. The device has a large disk and is far away from the computers making it a good place to store ...
Mikhail T.'s user avatar
1 vote
3 answers
5k views

Why does smbclient and enum4linux can't identify Samba version in Kioptrix level 1?

I've been trying kioptrix-level-1 exercise at https://www.vulnhub.com/entry/kioptrix-level-1-1,22/ and wondering why smbclient can't identify the Samba version? smbclient version 4.11.5-Debian wolf@...
Wolf's user avatar
  • 1,641
0 votes
1 answer
470 views

Polling script in Linux machine which will notify arrival of new files on Windows shared folder

I am trying to write shell script in Linux server, which will notify the user about arrival of new file on Windows shared drive. Most of the solutions suggests following approach: Mount Windows ...
Prakhar's user avatar
0 votes
1 answer
39 views

Are there alternate disk mounters running in Raspbian?

When I boot my Raspberry Pi it can't mount the Samba shares and it halts the booting process. Which is curios since those shares have the nofail option in the fstab file. But to get over this I've ...
Wukerplank's user avatar
0 votes
1 answer
2k views

Cannot log in into samba share with smbclient but mount it via cifs

The problem We have a NAS, which I can easily mount via CIFS, but I cannot access it via smbclient. On the NAS itself I have very little influence. I just got a permission for a set of shares there. ...
physicus's user avatar
  • 123
0 votes
0 answers
62 views

Errors on startup

I have installed 3 days ago Debian 10.3.0 with LXQT. It's great and I like it, it boot fine, each kernel line on boot is so great to see when appears 2 red lines that are so ugly! [OK] Started /etc/...
Wario's user avatar
  • 1
13 votes
1 answer
28k views

Smbclient protocol negotiation failed

Im trying to transfer a file using samba. I started a smbserver and can not connect to it. Command: smbclient -L //ip address/temp Error: protocol negotiation failed: NT_STATUS_NOT_SUPPORTED
Martin's user avatar
  • 131
3 votes
1 answer
2k views

Only mget new files with smbclient

I'm using smbclient to access a shared Windows file system. I cannot mount it, because I don't have the permissions. How do I mget only the files which are new or have been updated? (Likewise mput). ...
thedoctar's user avatar
  • 131
1 vote
1 answer
1k views

Why can I see my samba shares from CentOS 7 but not Fedora 30?

I'm experiencing problems configuring samba on my Fedora machines. Everything has always worked great on CentOS but identical configurations are having problems with Fedora. I have three computers on ...
Zhro's user avatar
  • 2,709
1 vote
1 answer
18k views

smbclient copy from linux to windows (SMB)

Want to copy directory from linux machine to windows (SMB) with shell script. [user@host home]$ smbclient -W WORKGROUP --user='admin%admin$123' -c "put /data/directory" "//192.168.1.1/share" Domain=[...
Mehrdad's user avatar
  • 41
3 votes
1 answer
7k views

smbclient throwing error NT_STATUS_INVALID_PARAMETER while copying large files from linux to windows

We are trying to copy files from linux system to windows and vice versa using smbclient. The files are successfully copied using mget from Windows to Linux, however, we are getting below error while ...
Janki Vyas's user avatar
3 votes
1 answer
12k views

Use spaces in smbclient mkdir

I'm trying to use smbclient in a bash script to make a directory on a remote windows server. Whilst this works: smbclient -U "DOMAIN/$username" "//remoteserver/folder with spaces" --directory "...
Chris Nevill's user avatar
0 votes
0 answers
6k views

smbclient fails with NT_STATUS_IO_TIMEOUT

I have a Debian:stretch installed in my Docker container. I want use smbclient with my shared dir. Dir is shared on a host (Windows 10 x64). I created a user and permitted the access to that dir like ...
Roman's user avatar
  • 121
10 votes
1 answer
38k views

Not enough '\' characters in service

Gleaning from the Arch Linux Wiki entry, I have what I think is the minimal setup of accessing a Windows shared drive via SMB from my Arch Linux 4.20.6: sudo pacman -S samba sudo echo "logging =...
Matthias Braun's user avatar
2 votes
2 answers
9k views

Can't connect to SMB shared Storage from Ubuntu 18.04

i have an external hard drive connect to my TP-Link router and shared using USB Share, i am unable to connect to this Share from Ubuntu, i can only see shared volumes but can't gain access. I can ...
proless8's user avatar
0 votes
1 answer
7k views

How can I disable "WORKGROUP\" in smbclient

I have a pretty old version of Samba Server installed on a Linux machine. Which Linux normally doesn't require "WORKGROUP" or "SAMBA" or any domain name to log in. Normal username and password should ...
AkiEru's user avatar
  • 101
2 votes
1 answer
14k views

Cannot connect to Windows 10 via smbclient because of the wrong password

I downloaded the samba package from arch (https://wiki.archlinux.org/index.php/samba#Client) Then I enabled Network discovery as described in this article: https://websiteforstudents.com/access-...
xetra11's user avatar
  • 546
0 votes
2 answers
8k views

smbclient not able to connect to after upgrade to RHEL7

smbclient //ERERYMJF/pwiwerp_Informatica -U 'PWI.kpp.com\a121212' Above command was working fine before and not working on RHEL7. I am getting below error. SPNEGO(gse_krb5) NEG_TOKEN_INIT failed: ...
Koshur's user avatar
  • 1,359