pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Samba 4 woes



On Thu, Dec 14, 2023 at 11:53:04AM +0000, Chavdar Ivanov wrote:
> On Thu, 14 Dec 2023 at 07:51, <tlaronde%kergis.com@localhost> wrote:
> >
> > Hello,
> >
> > I have a node serving files to a bunch of Windows nodes (various
> > versions). It is a STANDALONE server, with only a logical user
> > connecting.
> >
> > After having bluntly pkgin for update, the previous package has been
> > removed (I guess because it couldn't determine with which version to
> > replace it since there are 4 different versions on the CDN repository).
> >
> > Since the programs were loaded in memory, I didn't notice anything,
> > until I had to restart.
> >
> > I have then installed samba 4.18.9.
> >
> > But I'm now at a lost about the behavior: the user is correctly
> > identified. He can open and modify binary files, but every text file
> > fails for contents modification: the user can create or delete, but not
> > modify the contents of a file. Various programs creating temporary
> > files and renaming them fail because of that (while an application
> > using a binary file doesn't have problems modifying its file). It's
> > only with text files or with temporary lock files.
> >
> > The only suspicious thing I read in smb.conf(5) was about ACL mapping:
> > if the file is not rwx (for the user? Or does it need to be so for the
> > group also?), the rights are not mapped to FULL_CONTROL. So I changed
> > the permissions to rwx for all user's files, but this doesn't solve
> > the problem.
> >
> > One more precision: it is standalone, only file server. The users are
> > always sent as NODENAME/the_user. This never caused any problem before
> > and smbstatus(1) tells that the connections are made with the correct
> > Unix user. But the problem seems to be on the Windows client side, the
> > applications "deciding" there that they can't write---smbstatus(1)
> > tells that they put a DENY_WRITE when modifying a file, but this seems
> > logical for sharing.
> >
> > I have: mangled names = no (to protect from problem with temporary
> > names).
> >
> > Has anyone encountered this? The behavior is different from a
> > previous version (I don't remember what was the previous version;
> > not a 3.x series since, trying to "downgrade" to 3.6, it didn't
> > recognize some smb.conf parameters; would be better to put a comment
> > about the version in smb.conf for future reference).
> 
> I am running samba 4.19.3, built yesterday, on 10.99.10 as a
> standalone server now; I can't notice anything out of the ordinary.

I will try to build 4.19.3 to see if there were bugs corrected...

> 
> I mentioned a few days ago in one of the lists that I could not build
> samba4 at all until I removed compat90 and compat80 from the system,
> whether this has anything to bear with this problem, I doubt.
> 
> I plan to convert it to AD at some stage, which has worked for me
> previously, just for the test - I don't need it per se.
> 

Thanks for the info about 4.19.3. I will see if this works better.
-- 
        Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


Home | Main Index | Thread Index | Old Index