The server always reads /etc/profile at login.
Segrace is called in the /etc/profile file to prompt the user X number of days before the password expiry
/sw/seos/bin/segrace -p -d 7
But, when a non-root user logs into the AIX 7.x release they get an error message immediately after login.
Last unsuccessful login: Wed Apr 1 23:55:12 2020 on ssh from 10.230.89.127
Last login: Thu Apr 2 00:27:10 2020 on ssh from 10.230.89.127
*******************************************************************************
* *
* *
* Welcome to AIX Version 7.2! *
* *
* *
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
* *
* *
*******************************************************************************
You are not allowed to perform this operation
Release : 12.8 SP1
Component : CA ControlMinder
Operating System : AIX 7.x release