You are not logged in.

#1 2019-07-13 11:47:04

goofy
Member
Registered: 2011-10-02
Posts: 25

smbclient fails because it cannot access /var/lib/samba/private/

Hello,
I'm trying to access Samaba share using smbclient. My system is up-to-date and I installed smbclient package. When I try to run it if fails with following error:

[goofy@tjankowski-laptop ~]$ smbclient -L 192.168.11.23 -U http
directory_create_or_exist: mkdir failed on directory /var/lib/samba/private/msg.sock: Permission denied
Unable to initialize messaging context
do_connect: Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)
[goofy@tjankowski-laptop ~]$ 

My smb.conf is empty. Do you have any idea what can be wrong? Should I change /var/lib/samba/private/msg.sock permissions so normal user can modify it?

Offline

#2 2019-07-13 12:04:12

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: smbclient fails because it cannot access /var/lib/samba/private/

Should I change /var/lib/samba/private/msg.sock permissions so normal user can modify it?

No, those files are supposed to be created by scripts / services .

post output of

$ smbtree -b -N

please.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2019-07-13 12:06:09

goofy
Member
Registered: 2011-10-02
Posts: 25

Re: smbclient fails because it cannot access /var/lib/samba/private/

goofy@tjankowski-laptop ~]$  smbtree -b -N
Unable to initialize messaging context

Huh, this is even more surprising to me.

Offline

#4 2019-07-13 12:14:21

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: smbclient fails because it cannot access /var/lib/samba/private/

yep, unfortunately my smb knowledge is not great.
I do suggest you change the title to reflect this is probably a setup problem.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2019-07-13 13:51:47

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 454

Re: smbclient fails because it cannot access /var/lib/samba/private/

i don't think an empty smb.conf can work

ezik

Offline

#6 2019-07-13 14:45:59

seth
Member
Registered: 2012-09-03
Posts: 51,233

Re: smbclient fails because it cannot access /var/lib/samba/private/

"Unable to initialize messaging context" is just [lost of swearing here] noise, there's a problem w/ the share - "NT_STATUS_CONNECTION_REFUSED" suggests there's none, so that's the side to check first.

Offline

Board footer

Powered by FluxBB