Questions tagged [smbclient]

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

smbclient is a fully functional command line tool for interacting with Samba servers.

Further reading

33 questions
11
votes
1 answer

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
  • 111
  • 1
  • 1
  • 3
10
votes
1 answer

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 = systemd" >> /etc/samba/smb.conf since the smb…
Matthias Braun
  • 7,797
  • 7
  • 45
  • 54
6
votes
2 answers

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 share (no error message; mount point is in…
Hauke Laging
  • 88,146
  • 18
  • 125
  • 174
3
votes
1 answer

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 something like: smb: \Source\> get 'filename.txt' This…
Shroom
  • 31
  • 2
3
votes
1 answer

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 smbclient //intranet.host/ -U myuser I'm not asked…
user106745
  • 33
  • 3
3
votes
1 answer

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). I don't think I can use rsync, because rsync only…
thedoctar
  • 131
  • 4
3
votes
1 answer

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 moving files from Linux to Windows.The files are…
Janki Vyas
  • 43
  • 1
  • 4
2
votes
0 answers

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) Processing section "[global]" added interface ens192…
2
votes
0 answers

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 computer in the Active Directory under…
T. Pluess
  • 470
  • 1
  • 5
  • 16
2
votes
1 answer

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 module and it looks like the Samba version is…
cyzczy
  • 356
  • 1
  • 6
  • 19
2
votes
1 answer

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 "Another folder with spaces/" -c "mkdir…
Chris Nevill
  • 123
  • 1
  • 1
  • 6
2
votes
2 answers

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 connect to it from Windows and even from my Android…
proless8
  • 25
  • 1
  • 4
1
vote
0 answers

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$ Disk Remote Admin C$ Disk …
dubis
  • 1,430
  • 2
  • 18
  • 31
1
vote
1 answer

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 NT_STATUS_CONNECTION_DISCONNECTED immediately upon…
Mikhail T.
  • 804
  • 10
  • 19
1
vote
2 answers

smbclient throws "ERROR NT_STATUS_IO_TIMEOUT"

I am trying to get a SMB connection to a HTB 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 client max protocol = SMB3 to my /etc/samba/smb.conf file but this…
Lil Peep
  • 11
  • 1
  • 2
1
2 3