Are there scripts or best practices to cleanup home directories of users that do no longer exist?

Solution Verified - Updated -

Issue

  • Are there scripts or best practices to cleanup home directories of users that do no longer exist?
  • We have a central user management, users log onto multiple systems. On first login home directories get created, is there something to have homedirectories removed if users do no longer exist?
  • We use oddjob_mkhomedir or pam_mkhomedir to create user directories, how to remove them?

Environment

  • Red Hat Enterprise Linux (RHEL)

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