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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.