3.4 卸载

要完全清除 Identity Audit 安装,必须运行卸载脚本,然后执行一些手动清理步骤。

  1. root 登录 Identity Audit 服务器。

  2. 停止 Identity Audit 服务:

    /etc/init.d/identity_audit stop
    
  3. 运行卸载脚本:

    /opt/novell/identity_audit_1.0_x86-64/setup/root_uninstall_service.sh
    
  4. 删除 Identity Audit 主目录及其内容。

    rm -rf /opt/novell/identity_audit_1.0_x86-64
    
  5. 最后的步骤取决于您是否要保留有关 Novell 用户和组的任何信息。

    • 如果您不想保留有关 Novell 用户的任何信息,请运行下列命令以删除该用户、其主目录和组:

      userdel -r novell && groupdel novell

    • 如果您想保留 Novell 用户及其主目录,但要删除 Identity Audit 的所有相关设置,请执行下列步骤:

      1. 删除 Novell 用户的配置文件中用于 Identity Audit 的下列环境变量(位于 ~novell/.bashrc 中):

        APP_HOME=/opt/novell/identity_audit_1.0_x86-64 export PATH=$APP_HOME/bin:$PATH

      2. 从 PostgreSQL 文件 ~novell/.pgpass 删除 dbauser 项。*:*:*:dbauser:口令

        注:尽管 dbauser 口令显示为明文,但只有 Novell 和 root 用户才可以查看该文件,这些用户已有 Identity Audit 服务器上所有功能的完全访问权限。