How to Fix Failed to Start Create System Users in Ubuntu

During the Ubuntu operating system boot sequence or after running package upgrades, seeing the red startup failure [FAILED] Failed to start Create System Users (unit systemd-sysusers.service) indicates that systemd was unable to compile the required system daemon user accounts. Because essential services (such as systemd-resolved, messagebus, and polkit) require dedicated unprivileged system users to operate safely, this failure can prevent graphical desktop managers from launching. Resolving this issue involves inspecting sysusers configuration files and repairing corrupted user databases.

Inspect Failure Logs Using Systemd Journalctl

The systemd-sysusers utility reads declarative configuration files from /usr/lib/sysusers.d/ and /etc/sysusers.d/. Querying the system journal highlights exactly which line or database entry caused the failure.

  1. Open a terminal or drop into a root rescue shell via recovery mode.
  2. Query the service status:
    systemctl status systemd-sysusers.service
  3. View detailed diagnostic log lines:
    journalctl -u systemd-sysusers.service -b --no-pager
  4. Look for errors such as Failed to parse /etc/sysusers.d/[file].conf: Invalid syntax, Cannot lock /etc/passwd: File exists, or Duplicate UID.

Remove Orphaned Passwd and Group Lock Files

If an interrupted package installation or sudden power loss occurred while an administrative script was creating a user, residual lock files prevent systemd-sysusers from modifying user databases.

  1. Check for leftover lock files in /etc/:
    ls -la /etc/*.lock
  2. If lock files exist (e.g. /etc/passwd.lock, /etc/group.lock, /etc/shadow.lock, or /etc/gshadow.lock), ensure no adduser or usermod processes are running, then remove them:
    sudo rm -f /etc/passwd.lock /etc/group.lock /etc/shadow.lock /etc/gshadow.lock
  3. Restart the service:
    sudo systemctl restart systemd-sysusers.service

Verify Integrity of /etc/passwd and /etc/group via pwck

Corrupted line entries, missing trailing colons, or invalid character encodings inside /etc/passwd will cause systemd-sysusers to abort execution immediately.

  1. Execute the password file verification utility:
    sudo pwck
  2. Execute the group database verification utility:
    sudo grpck
  3. Review any reported syntax errors or missing home directories. Allow the utilities to automatically fix straightforward formatting inconsistencies.

Test Manual Sysusers Execution via Terminal

Executing systemd-sysusers directly in your terminal allows you to test fixes without restarting the operating system.

  • Run the binary directly with administrative privileges:
    sudo systemd-sysusers
  • If execution completes cleanly with zero terminal errors, query the systemd unit status:
    sudo systemctl status systemd-sysusers.service
  • Confirm that the service returns active (exited) with status SUCCESS.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.