Samba User can't log in

NethServer Version: 7.8.2003 (final)

Suddenly I cannot login into centos with my Samba AD user. Login into Windows still works

Even a newly created user: smbpasswd -a neuer
cannot login to the shell.
kinit neuer works though.
I cannot find anything on the web how samba is accessed by the login process to get the password from samba.
the rights on the shadow file are:
---------- 1 root root 1.4K May 4 19:28 /etc/shadow
----------. 1 root root 1.4K Apr 12 11:22 /etc/shadow-
but I think this is ok?

passwd by root returns:
passwd neuer
Changing password for user neuer.
Password reset by root is not supported.
passwd: Authentication token manipulation error

su neuer
hangs

looks like somethings broken between samba and centos.

another problem that comes with it (i hope) is that SOGo tells me there are no emails. I hope that is because it cannot acces the mail files in the vmail folders…

Maybe no free disk space or read-only file system?

See this article about what to check, if this error occurs…

well…
I must have used one wrong command 2 weeks ago and trying to find a fix I put two more in the system. Linux is not very robust yet…
Anyway.
I reinstalled the server which is less time consuming than finding a mistake.
I will try to do less things on the server and use virtual Ubuntu to do things…
Since this is likely to happen again I tried to bare-metal backup the new working server with mondorescue, but the mindi subtask failes.
Is there any working bare-metal backup for Nethserver?
And BTW: I like nethserver very much, the config restore saved me hours of work…

It should work for RHEL but maybe you can share some more error details.

Did you already try BareOS?

The mindi part doesn’t work:

INFO: If you use syslinux 5.x, you may miss ldlinux.c32. If your syslinux RPM doesn’t include ldlinux.c32, you may want to download another one
FATAL ERROR. Please install syslinux.efi first. If your syslinux RPM doesn’t include syslinux.efi, you may download an syslinux RPM from Mondo’s website - go to Mondo Rescue - GPL disaster recovery solution

I don’t want to play around with the new server since I just installed it and don’t want to crash it again

I’l take a look into bareos, thanks for the advice

OK, I removed mondo and I don’t want to install bareos, it has too many dependencies.
I tried a simple dd and will eventually check it on another machine…
Thanks…

@ThomasM

Hi Thomas

You could also use the free Clonezilla CD. Boot your NethServer with that, and you have the option to create a bootable clone, or a bootable Image (eg in a VM…) even over network…

I’ve often found this usefull, especially for migrations P2V…

My 2 cents
Andy

Yes I used this software before. The problem is that the server is down for the time of the copy and I have to be where the server is.
On the other hand it saves a lot time when I have to reinstall the system…

@ThomasM

Yes, that’s why nowadays you don’t install physical servers anymore.
Only virtualized, in a proper Class 1 Hypervisor.

I use now Proxmox at home and for all my 25-30 clients, after 15 years of VMWare.

  • Fast, live backups
  • Fast snapshots
  • Live Migration between hypervisor nodes in 90 seconds…
  • Even full HA Clustering.

Proxmox is free to use. You can get a fairly simple support (I use Comunity for my clients, at 100€ / CPU socket (not core!) / year.
Test environments I run without subscription.

And cloning can be done live, per remote with the Web GUI…

I did mention P2V in my earlier post… :slight_smile:

My 2 cents
Andy