I've a condition in which I want to restrict a unix user from setting up environment variables or modifying the environment variables locally during the user's active unix session.
For example, if I've set my
then the user might not be able to change/modify it during his login.
I did a workaround of restricting via
/etc/security/limits.conf, but this type of restriction can restrict the use of that command locally. I don't want to restrict the use of that command(
export in this case), rather restrict the use of that command for modifying the environment variables.