diff options
-rwxr-xr-x | profile.d/msec.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/profile.d/msec.sh b/profile.d/msec.sh index 76508ae..4a902e7 100755 --- a/profile.d/msec.sh +++ b/profile.d/msec.sh @@ -1,7 +1,8 @@ # shell security options -if [ -r /etc/security/shell ]; then - . /etc/security/shell +if [ -z "$SECSHELL" -a -r /etc/security/shell ]; then + . /etc/security/shell + export SECSHELL=1 fi if [ `id -u` -ge 500 ]; then |