User failed to delete due to stuck process

Solution Unverified - Updated -

Issue

Execution of '/usr/sbin/userdel username' returned 8: userdel: user username is currently used by process pid

The pid may be related to systemd-user process such as sd-pam

Environment

Redhat Enterprise Linux 8.6

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