It is important that the 'enswitch' user and group have the same UID and GID on each machine if using NFS. Therefore this step is done first, before any other accounts are created.

Debian / Ubuntu:

  • adduser --system --group --no-create-home --home /var/lib/enswitch/home --disabled-password enswitch

Others:

  • groupadd -r enswitch
  • useradd -r -g enswitch -d /var/lib/enswitch/home enswitch

If using NFS, also do:

  • grep enswitch /etc/passwd /etc/group

and check the UIDs and GIDs are the same on each machine. If not, edit /etc/passwd and /etc/group by hand, and change the ownership of any files already on the system.