aboutsummaryrefslogtreecommitdiffstats
path: root/profile.d/msec.sh
diff options
context:
space:
mode:
Diffstat (limited to 'profile.d/msec.sh')
-rwxr-xr-xprofile.d/msec.sh5
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