SMBCLIENT error message  [Solved]

Message
Author
bromelain

SMBCLIENT error message

#1 Post by bromelain »

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)

alamahant
Posts: 42
Joined: Thu Dec 19, 2019 9:48 pm

Re: SMBCLIENT error message  [Solved]

#2 Post by alamahant »

Are you trying to mount a windows share?
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
Or use thunar to mount it
Ofcourse you need to add the windows user to samba like this before

Code: Select all

smbpasswd -a <user>

bromelain

Re: SMBCLIENT error message

#3 Post by bromelain »

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?

bromelain

Re: SMBCLIENT error message

#4 Post by bromelain »

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.

User avatar
timkb4cq
Developer
Posts: 3564
Joined: Wed Jul 12, 2006 4:05 pm

Re: SMBCLIENT error message

#5 Post by timkb4cq »

bromelain 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?
sudo

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

User avatar
timkb4cq
Developer
Posts: 3564
Joined: Wed Jul 12, 2006 4:05 pm

Re: SMBCLIENT error message

#6 Post by timkb4cq »

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

bromelain

Re: SMBCLIENT error message

#7 Post by bromelain »

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.

alamahant
Posts: 42
Joined: Thu Dec 19, 2019 9:48 pm

Re: SMBCLIENT error message

#8 Post by alamahant »

Become root and run it???
Maybe?

User avatar
timkb4cq
Developer
Posts: 3564
Joined: Wed Jul 12, 2006 4:05 pm

Re: SMBCLIENT error message

#9 Post by timkb4cq »

What does

Code: Select all

smbtree
show?
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

bromelain

Re: SMBCLIENT error message

#10 Post by bromelain »

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.

Post Reply

Return to “Software / Configuration”