You are not logged in.

#26 2013-05-09 23:22:37

mellofone
Member
Registered: 2009-03-13
Posts: 34

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

Just to add another .02, the Samba 3 to 4 upgrade seemed to work, but I no longer had any users, according to Samba. Looks like there was a change with where the "private" directory was located. Here is the specific lines for both versions using testparm -vv

$ smbd -V
Version 3.6.10

private dir = /etc/samba/private
$ smbd -V
Version 4.0.5

private dir = /var/lib/samba/private

After a few smaller system upgrades, I finally tracked this down. Moving the passdb.tdb and secrets.tdb from the old location to the new seemed to have solved that issue.

Offline

#27 2013-05-25 15:24:59

SamSpade
Member
Registered: 2012-10-29
Posts: 9

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

mellofone wrote:

... Moving the passdb.tdb and secrets.tdb from the old location to the new seemed to have solved that issue.

Thanks for the info. My Samba3 smb.conf was actually completely compatible with Samba4. The only issue was the change in the private directory location. Either moving the passdb.tdb and secrets.tdb files to the new location, or creating new users with pdbedit -a -u username solves it.

First thing to check is to use pdbedit -L to check if all previously made Samba3 users are in the Samba passdb.tdb. If the result is empty, then doing the above solves it.

Offline

#28 2013-06-02 09:41:52

MilanKnizek
Member
Registered: 2005-12-13
Posts: 58

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

I had another problem:

valid users = root, foo, bar

has to include the user in

force user = root

even that "root" does not have a password created by pdbedit and "root" never actually authenticates to any samba share from any client station. I just want the files created to be "chown root".

That's IMHO fairly confusing since

man smb.conf wrote:

valid users .... This is a list of users that should be allowed to login to this service.

and

man smb.conf wrote:

force user  ... This specifies a UNIX user name that will be assigned as the default user for all users connecting to this service.

In any case that's a change in behaviour of Samba.

Offline

#29 2014-03-30 17:39:19

jik779
Member
From: Germany
Registered: 2012-08-04
Posts: 17

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

Arch made my day again.
After struggeling hours with Samba 4 on Ubuntu 14.04rc, i finally searched the my Distro-Of-Choice Forum and viola, Asaf K's file is instantly working. THANKS MAN, i was about to throw that shitty Ubuntu machine out of the window! (maybe i should have)

Offline

#30 2014-03-31 00:48:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 20,082
Website

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#31 2014-03-31 00:52:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 13,805

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

Please no not post for the sake of posting
Please do not necrobump
and, absolutely do not malign other distributions or operating systems

Thank You.

edit:  Slower than Jason.  As usual.

Last edited by ewaller (2014-03-31 00:52:54)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
You assume people are rational and influenced by evidence.  You must not work with the public much. -- Trilby
----
How to Ask Questions the Smart Way

Offline

#32 2014-03-31 02:11:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 20,082
Website

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

ewaller wrote:

Slower than Jason.  As usual.

Trade secret... smile


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB