You are not logged in.

#1 2017-07-05 19:52:23

swatquest
Member
Registered: 2013-01-07
Posts: 30

[SOLVED]usershare - Failed to init messaging context

thunar-share
nemo-share
No longer work

Usershare returns the message
Failed to init messaging context

for example:
~ $ Net usershare list
Failed to init messaging conte

Follow the steps of the wiki
https://wiki.archlinux.org/index.php/Sa … share_path

/var/lib/samba/usershare
drwxrwx--T 2 root sambashare   4096 Jul  4 22:37 usershare
Permission 1770

User groups
samba $
groups
wheel users sambashare lpadmin

Smbclient works without problems
smbclient -L localhost

/etc/samba/smb.conf

[global]
   workgroup = TEST
   server string = Server Linux
   log file = /var/log/samba/%m.log
   max log size = 50
   security = user
   map to guest = Bad User
   guest account = swatquest
   usershare path = /var/lib/samba/usershare
   usershare max shares = 100
   usershare allow guests = yes
   usershare owner only = yes

If I modify the permission to group sambashare
/var/cache/samba/msg.lock works

sudo chown :sambashare /var/cache/samba/msg.lock
sudo chmod g+w /var/cache/samba/msg.lock

Last edited by swatquest (2017-07-17 21:54:29)

Offline

#2 2017-07-07 18:20:05

TomaszGasior
Member
From: Poland
Registered: 2017-06-03
Posts: 16
Website

Re: [SOLVED]usershare - Failed to init messaging context

I confirm this problem.

Offline

#3 2017-07-12 00:24:09

flops
Member
Registered: 2017-07-06
Posts: 1

Re: [SOLVED]usershare - Failed to init messaging context

The same thing with samba but i can't change permissin on .lock file cause
"invalid permissions on directory '/var/cache/samba/msg.lock': has 0775 should be 0755"
message appears sad

Current samba version is:

extra/samba 4.6.5-1
extra/smbclient 4.6.5-1

Downgrade give me no luck.
As i found on is starts from 4.6:
https://sourceforge.net/p/smb4k/discuss … /f9ec6154/
https://github.com/KaOSx/apps/issues/108

Here is a patch discussion:
http://samba.2283325.n4.nabble.com/net- … 19523.html

Update:
downgrade to 4.5.10-1 gave me the positive result.
Packages needed to be downgraded are: samba-4.5.10-1, smbclient-4.5.10-1, libwbclient-4.5.10-1
The best way i found for myself is to use downgrader and downgrade should be done in the direct order to solve dependency problems.

Last edited by flops (2017-07-12 01:18:40)

Offline

#4 2017-07-17 20:24:07

swatquest
Member
Registered: 2013-01-07
Posts: 30

Re: [SOLVED]usershare - Failed to init messaging context

Patch fix

Bug 12828 - net command fails due to incorrectly return code  ( https://bugzilla.samba.org/show_bug.cgi?id=12828 )

patch: https://bugzilla.samba.org/attachment.cgi?id=13264

Offline

#5 2017-07-17 21:52:56

swatquest
Member
Registered: 2013-01-07
Posts: 30

Re: [SOLVED]usershare - Failed to init messaging context

Patch tested and working

Compiled (asp)

pkgver=4.6.6

asp export samba
Download pach in the samba folder ( patch: https://attachments.samba.org/attachment.cgi?id=13264 )
Added in PKGBUILD

source=(http://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar.gz
        http://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar.asc
        samba.logrotate
        samba.pam
        samba.service
        samba.conf.d
        smbd.service
        smbd.socket
        nmbd.service
        smbd@.service
        winbindd.service
        samba.conf
        v4-6-test.patch)
prepare() {
  cd samba-${pkgver}
  patch -p1 -i "${srcdir}"/v4-6-test.patch
}
md5sums=('04493bbe8d71e52393dffdbba301697d'
         'SKIP'
         '5697da77590ec092cc8a883bae06093c'
         '96f82c38f3f540b53f3e5144900acf17'
         'ee4763a656cf00d92bfda31b6bb2c5cb'
         '6c447748a064d631435dbef0a3dcf32f'
         'e4ae6a3cac080602120aa151918c4a36'
         'a78b9aa93eb14b0ac445897395693225'
         'df6380c73cb73163968eabc8650f7358'
         '70afd2db60a2e8eff7615dbdecd887ac'
         'd5f56f43e1280bba20f6bbd88d16fa41'
         '49abd7b719e3713a3f75a8a50958e381'
         'd927a88f9e021ef7d8997a3115c1d202')

As it worked, I'll mark it as solved.

Last edited by swatquest (2017-07-18 00:42:04)

Offline

Board footer

Powered by FluxBB