Service fail when using UID or GID value 65535 on a systemd unit with "Bad message"

Solution Verified - Updated -

Issue

  • During service start of a custom systemd unit, or a unit that has overrides the following message is displayed:
Apr 02 15:00:01 hostname systemd[PID]: example.service: Failed to determine user credentials: Bad message
Apr 02 15:00:01 hostname systemd[PID]: example.service: Failed at step USER spawning /usr/local/bin/example: Bad message

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • systemd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content