UNIX v2 Account Deletion Does Not Remove Mail File from /var/spool/mail Directory
search cancel

UNIX v2 Account Deletion Does Not Remove Mail File from /var/spool/mail Directory

book

Article ID: 233866

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Suite

Issue/Introduction

When deleting a UNIX v2 account, the account is successfully removed from /etc/passwd/etc/group, and /etc/shadow, but the user's corresponding mail file remains in the /var/spool/mail directory.

The following steps explain how to configure Identity Manager to automatically remove the mail file alongside the user account.

Environment

Identity Manager 14.x

Cause

This behavior occurs because the default connector configuration does not include the mail file directory in the deletion cleanup process. This is a configuration setting rather than a product defect.

Resolution

You can ensure the mail file is deleted during account removal by selecting the appropriate configuration option in the Identity Manager User Console.

Option 1: Using the Identity Manager User Console

  1. Log in to the Identity Manager User Console.
  2. Navigate to the UNIX v2 Endpoint configuration.
  3. Locate the checkbox labeled Delete Home Directory When Deleting Account.
  4. Select this checkbox to enable it.
  5. Save the changes. With this option enabled, Identity Manager will delete both the user’s home directory and the associated mail file in /var/spool/mail when the account is deleted.

Option 2: Using the etautil Command If you prefer to use the command line, you can enable this setting using the etautil command:

etautil -d im -u etaadmin -p <password> -DYN update "eTNamespaceName=UNIX v2" eTDYNDirectory eTDYNDirectoryName=<Directory_Name> to eTDYN-str-multi-ca-16=1

(Replace <password> and <Directory_Name> with your specific environment values.)