You are not logged in.

#1 2015-03-08 22:56:06

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Upgrading to samba 4.2.0-1 breaks usershares

I have set up usershares following the wiki and everything was working fine so far. After updating I'm getting the same issue as here. However, my NETBIOS name is "zacate", so it is already <15 characters.
I can still access my shares, but they drop connection all the time.

# journalctl -r

shows:

Mar 08 23:31:19 Zacate smbd[943]: Failed to delete pidfile /var/run/smbd.pid. Error was No such file or directory
Mar 08 23:31:19 Zacate smbd[943]: [2015/03/08 23:31:19.180132,  0] ../lib/util/pidfile.c:153(pidfile_unlink)
Mar 08 23:31:09 Zacate smbd[943]: process_usershare_file: stat of /var/lib/samba/usershare/myshare failed. Permission denied
Mar 08 23:31:09 Zacate smbd[943]: [2015/03/08 23:31:09.060916,  0] ../source3/param/loadparm.c:3170(process_usershare_file)
Mar 08 23:31:02 Zacate smbd[942]: messaging_reinit() failed: NT_STATUS_ACCESS_DENIED
Mar 08 23:31:02 Zacate smbd[942]: [2015/03/08 23:31:02.857296,  0] ../source3/lib/util.c:480(reinit_after_fork)
Mar 08 23:31:02 Zacate smbd[942]: messaging_dgm_init failed: Permission denied
Mar 08 23:31:02 Zacate smbd[942]: [2015/03/08 23:31:02.855527,  0] ../source3/lib/messages.c:346(messaging_reinit)
Mar 08 23:30:08 Zacate smbd[936]: process_usershare_file: stat of /var/lib/samba/usershare/myshare failed. Permission denied
Mar 08 23:30:08 Zacate smbd[936]: [2015/03/08 23:30:08.690421,  0] ../source3/param/loadparm.c:3170(process_usershare_file)
Mar 08 23:30:02 Zacate smbd[935]: messaging_reinit() failed: NT_STATUS_ACCESS_DENIED
Mar 08 23:30:02 Zacate smbd[935]: [2015/03/08 23:30:02.845360,  0] ../source3/lib/util.c:480(reinit_after_fork)
Mar 08 23:30:02 Zacate smbd[935]: messaging_dgm_init failed: Permission denied
Mar 08 23:30:02 Zacate smbd[935]: [2015/03/08 23:30:02.844136,  0] ../source3/lib/messages.c:346(messaging_reinit)

Downgrading from 4.2.0-1 to 4.1.17-1 gets rid off the NT_STATUS_ACCESS_DENIED, but the process_usershare_file stat message stays. The shares work though.
And yes, I do have a samba user for each of my linux users and the shared path is accessible by everyone.


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#2 2015-10-01 11:24:10

Ranzpirat
Member
From: Germany
Registered: 2013-10-13
Posts: 1

Re: Upgrading to samba 4.2.0-1 breaks usershares

Hey Soukyuu,

I recently had the same problem (mind with archlinux-arm on my rpi). Running the samba daemon in foreground and logging to stdout threw me this pretty straight forward message: "invalid permissions on directory '/var/cache/samba/msg': has 0700 should be 0755". Fixing the permissions let me start the daemon just fine again.

Best regards!

edit: sorry for the necrobump, but I found this topic on the first page of websearching for my logs so I thought maybe others will as well

Last edited by Ranzpirat (2015-10-01 11:33:38)

Offline

#3 2015-10-01 17:49:30

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: Upgrading to samba 4.2.0-1 breaks usershares

I've had this as well and yes, setting correct permissions helps. It's a different issue, though.
Also, now samba actually segfaults randomly when accessed via a windows machine, but is fine when accessed by a linux machine. (see here)
I'm still using 4.1.9 server side.

Last edited by Soukyuu (2015-10-01 17:50:59)


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

Board footer

Powered by FluxBB