We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3a369b commit a9c2711Copy full SHA for a9c2711
esxi-fix-pam-ssh-auth.sh
@@ -1,18 +1,18 @@
1
#!/bin/sh
2
3
-grep '^#PAMFix' /etc/rc.local.d/local.sh > /dev/null 2>&1
+/bin/grep '^#PAMFix' /etc/rc.local.d/local.sh > /dev/null 2>&1
4
5
if [ $? != 0 ]
6
then
7
- sed -i '/exit 0/d' /etc/rc.local.d/local.sh
+ /bin/sed -i '/exit 0/d' /etc/rc.local.d/local.sh
8
cat <<EOF >> /etc/rc.local.d/local.sh
9
10
-for i in \$(grep "/bin/sh" /etc/passwd | cut -f1 -d":")
+for i in \$(/bin/grep "/bin/sh" /etc/passwd | cut -f1 -d":")
11
do
12
/bin/sed -i 's/^-:'\$i':/+:'\$i':/g' /etc/security/access.conf
13
done
14
15
-grep local.sh /var/spool/cron/crontabs/root > /dev/null 2>&1
+/bin/grep local.sh /var/spool/cron/crontabs/root > /dev/null 2>&1
16
if [ \$? != 0 ]
17
18
echo '* * * * * /etc/rc.local.d/local.sh' >> /var/spool/cron/crontabs/root
0 commit comments