CASA/CASA/micasad/startup/casaucfgpam
2008-04-11 15:28:55 +00:00

19 lines
404 B
Bash

#!/bin/bash
# Remove the CASA pam entries from pam files.
SERVER=`grep -i server /etc/SuSE-release`
if [ "$SERVER" != "" ]
then
exit 0
else
prefix="/etc/pam.d"
for pam_file in "$prefix/login" "$prefix/sshd" "$prefix/xdm" "$prefix/gdm" "$prefix/kdm" "$prefix/passwd" "$prefix/gnome-passwd"
do
if [ -f $pam_file ]
then
sed -i '/pam_micasa/d' $pam_file
fi
done
fi