SMBCLIENT error message [Solved]
SMBCLIENT error message
I am trying to network this machine with Windows 10. When I run smbclient (with or without the Windows share) or smbtree, the error "unable to initialize messaging context" returns. I have Googled this but cannot find anything helpful. Any ideas?
Kernel : Linux 4.19.0-6-amd64 (x86_64)
Version : #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11)
C Library : GNU C Library / (Debian GLIBC 2.28-10) 2.28
Distribution : Debian GNU/Linux 10 (buster)
Kernel : Linux 4.19.0-6-amd64 (x86_64)
Version : #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11)
C Library : GNU C Library / (Debian GLIBC 2.28-10) 2.28
Distribution : Debian GNU/Linux 10 (buster)
Re: SMBCLIENT error message
Are you trying to mount a windows share?
Please install "cifs-utils" and mount the share like this:
Or use thunar to mount it
Ofcourse you need to add the windows user to samba like this before
Please install "cifs-utils" and mount the share like this:
Code: Select all
mount -t cifs -o username=<>,password=<> //<windows-ip-or-fqdn>/<name-of-share> /mount/point
Ofcourse you need to add the windows user to samba like this before
Code: Select all
smbpasswd -a <user>
Re: SMBCLIENT error message [Solved]
This is what I ran and what I got.
Bob@MXLinux:~
$ mount -t cifs -o username=bob, password=**** //10.0.0.2/bob /mount/point
mount: only root can use "--options" option
Bob@MXLinux:~
What am I missing?
Bob@MXLinux:~
$ mount -t cifs -o username=bob, password=**** //10.0.0.2/bob /mount/point
mount: only root can use "--options" option
Bob@MXLinux:~
What am I missing?
Re: SMBCLIENT error message
I forgot to mention that I can see shared Linux folders on the Windows machine but Linux cannot see Windows. This was true whether I set Windows to smb client or smb server.
Re: SMBCLIENT error message
sudobromelain wrote: Tue Dec 24, 2019 9:41 am This is what I ran and what I got.
Bob@MXLinux:~
$ mount -t cifs -o username=bob, password=**** //10.0.0.2/bob /mount/point
mount: only root can use "--options" option
Bob@MXLinux:~
What am I missing?
Code: Select all
sudo mount -t cifs -o username=bob, password=**** //10.0.0.2/bob /mount/point
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB
Re: SMBCLIENT error message
BTW, the "unable to initialize messaging context" is a confirmed bug in Buster's Samba version.
It's a warning message that shouldn't affect mounting a share, although it can mess up scripts that do mounting by introducing the extraneous response.
It's a warning message that shouldn't affect mounting a share, although it can mess up scripts that do mounting by introducing the extraneous response.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB
Re: SMBCLIENT error message
Thank you. Seems like it has been a bug for a long time with a few so-so workarounds.
Still cannot mount. I am probably not naming the path properly.
Still cannot mount. I am probably not naming the path properly.
Re: SMBCLIENT error message
Become root and run it???
Maybe?
Maybe?
Re: SMBCLIENT error message
What doesshow?
Code: Select all
smbtree
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB
Re: SMBCLIENT error message
Here is the solution.
sudo mount -t cifs -o user=Jonathan //10.0.02/Desktop ~/Documents/Windows-Share/
This syntax works. //10.0.02/Desktop is the shared Windows folder. It connects with the Linux folder ~/Documents/Windows-Share/. However, the key is that the Linux folder must already exist. The command will not create hit.
sudo mount -t cifs -o user=Jonathan //10.0.02/Desktop ~/Documents/Windows-Share/
This syntax works. //10.0.02/Desktop is the shared Windows folder. It connects with the Linux folder ~/Documents/Windows-Share/. However, the key is that the Linux folder must already exist. The command will not create hit.