Questions tagged [smbclient]
Questions about the Samba file sharing application's command line tool, smbclient.
33
questions
0
votes
0
answers
27
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=...
1
vote
0
answers
738
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$ ...
2
votes
0
answers
165
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)
...
0
votes
0
answers
123
views
Linux shows wrong file size for samba share
I got a strange error in my linux file system (Linux Mint) that drives me crazy and prevents me from using rsync without CRC.
The file size is just shown wrong. The correct size is 13638, while it is ...
3
votes
1
answer
4k
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 ...
0
votes
1
answer
445
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:
[...
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
...
1
vote
1
answer
4k
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 ...
0
votes
0
answers
631
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 ...
1
vote
2
answers
9k
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
...
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 ...
2
votes
1
answer
5k
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 ...
0
votes
0
answers
5k
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
...
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 ...
6
votes
2
answers
9k
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 ...
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 ...
1
vote
3
answers
4k
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@...
0
votes
1
answer
435
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 ...
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 ...
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.
...
0
votes
0
answers
57
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/...
11
votes
1
answer
25k
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
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).
...
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 ...
1
vote
1
answer
16k
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=[...
3
votes
1
answer
6k
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 ...
3
votes
1
answer
11k
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 "...
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 ...
10
votes
1
answer
31k
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 =...
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 ...
0
votes
1
answer
6k
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 ...
2
votes
1
answer
12k
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-...
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: ...