[SOLVED] CentOS 7.4 (1708) - Shared folder access

Yes.
But if you have have nethserver-samba installed, make sure to get the latest package which fix the read-only filesystem issue.

Still not installed. Thereforeā€¦ yum update right now.

Thank you @dnutan for the great workaround!

I did a bit of research and this is what Iā€™ve found:

  • the bug is not present if AD and Samba re installed on a clean NethServer 7.4
  • the Fedora patch works

Iā€™ve create a new sssd-libwbclient patched RPM.
Please, be sure to update everything from CentOS updates repository, than install the patch it using this commands:

yum --enablerepo=nethforge-testing update sssd-libwbclient
signal-event nethserver-samba-update

The patch works in our production environment; tested with following clients:

  • Windows 10 with AD join
  • Windows 10 without AD join
  • Nautilus on Fedora without join
  • smbclient on Fedora without join

This is the associated issue:

If everything goes well, we can release it in nethforge repository, also we will do not need anymore the vault repository.
This will bring issue-free updates for all NethServers.

Please help me test this hack! /cc @Andy_Wismer @GG_jr @mrmarkuz @compsos @des @greavette

3 Likes

Tested and working on:

  • non-joined GNU/Linux system (smbclient, GUI)
  • Windows 7 Pro: non-joined, joined

after resetting permissions.

letā€™s get it clear:

install fresh ns7 (without patches)
install sambaad
try to join domain
add your patch
try to join domain
??

The fix should work for new installation but also for currently broken ones.
So, install the patch on a new or old machine where shared folders authentication doesnā€™t work :slight_smile:

Itā€™s working! :thumbsup:
Tested on joined/unjoined Win7/Win10 and on Raspbian with smbclientā€¦

2 Likes

Can I safely upgrade my production system now or should I still wait?

It should be safe, we have the fix on our production server.
If nobody finds any error, I plan to release the fix tomorrow.

3 Likes

Ok, Iā€™ll wait till tomorrow, just to be sure.
Thanks :slight_smile:

Tested on NS 7.3.1611 (DC-AD-FS) -> PASSED!

How I tested:

  • login from Win 10 Pro, non joined workstation to domain, with domain user credentials, to shared folders (user and/or guest) -> OK!
  • I made all updates, without reboot.
  • login from Win 10 Pro, non joined workstation to domain, with domain user credentials, to shared folders (user and/or guest) -> FAIL!
  • Reboot NS
  • login from Win 10 Pro, non joined workstation to domain, with domain user credentials, to shared folders (user and/or guest) -> FAIL!
  • installed ā€œthe patchā€, whitout reboot
  • login from Win 10 Pro, non joined workstation to domain, with domain user credentials, to shared folders (user and/or guest) -> OK!
  • Reboot NS
  • login from Win 10 Pro, non joined workstation to domain, with domain user credentials, to shared folders (user and/or guest) -> OK!

After all tests, can we tell that we have NS 7.4?

1 Like

Almost! :smiley: Iā€™m preparing all repositories and start building the ISO :wink:

4 Likes

Congrats first to @dnutan and @giacomo and to all which have made the tests!

Good job!
Good Team!

3 Likes

when itā€™s safe to upgrade, can someone please update the title of this topic? Or post another ā€˜pinnedā€™ topic? Otherwise the first BIG message on this forum is NOT to upgrade, and only after reading this whole topic you realize itā€™s already fixedā€¦

2 Likes

Thatā€™s a great idea,
if @giacomo is ready with his work we can change the title I think.
Something like SOLVED in front of the title.

1 Like

Thatā€™s huge man. You saved so many lives :slight_smile:

3 Likes

That works!!! I still running tests after doing the donwgrade, but the server apparently is working. Thanks. Now I am worried about next updatesā€¦ And how do I solve the mess after doing manual downgrade (When the problem is solved)

Until itā€™s fixed upstream, there are two known solutions/workarounds:

  • downgrade method: unless excluded, updates will reinstall the offending packages
  • patched package: with a system up to date, the patched package will ā€œoverrideā€ the bugged one. Updates shouldnā€™t be a problem.

Once fixed upstream, updates should be hassle free on both cases. You shall look after an sssd-libwbclient package version higher than 1.15.2-50.el7_4.2.

/cc @giacomo, correct me if Iā€™m wrong (nethserver vs upstream package naming)

1 Like

I was trying to understand how this was going to go reading through this thread and was going to suggest the first thing in the first post of this thread to be exactly, step by step, for a newbie, what was needed to upgrade, but I checked the updates available in the software center using the gui and see this;

nethserver-samba-2.0.10-1.ns7.noarch     nethserver-updates
* Mon Sep 18 05:00:00 2017 Giacomo Sanchietti <giacomo.sanchietti@nethesis.it> - 2.0.10-1
- Read-only filesystem with kernel 3.10.0-693 - Bug NethServer/dev#5349

ā€¦ and I see that for an unbroken, non-updated production install should be upgraded without issue from the software center.

We should still fix the thread so that the first thing someone sees is the pertinent necessary info without the need to read through the whole thread to figure out whatā€™s going on and what to do.

my 2c

2 Likes

Youā€™re not wrong, but just to recap:

  • bugged RPM: sssd-libwbclient-1.15.2-50.el7_4.2.x86_64
  • patched RPM: sssd-libwbclient-1.15.2-50.el7_4.2.ns7.x86_64

I will do it :wink:

Patch released!

We just released the patched RPM inside nethforge to avoid problems for users which configured temporary frozen repositories.
Since all installations have nethforge enabled by default, everyone should get the update.
If unsure, please use following command:

yum --enablerepo=nethforge update sssd-libwbclient
5 Likes