-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
==
dear all,
mohon bantuannya dalam membuat script utk pengamanan
server nih :
skenarionya sbb :
setiap 2 jam /etc/crontab akan menjalankan :
0 */2 * * * root /usr/sbin/secure.sh
=
Halo
Coba begini
-- snip snip --
#!/bin/bash
md5sum "/sbin/iptables" > /home/current/iptables
diff "/home/current/iptables" "/home/backup/iptables"
if [ "$?" -eq "0" ]
then
echo "sama"
# do nothing
else
echo "lain"
# cp
fi
rm -f "/home/current/iptables"
-- snip snip ---
if [$md5sum /home/ba
#seperti ini kali ye...
#semoga berhasil... soalnya tidak saya test :)
#!/bin/bash
md5backup=`md5sum /home/backup/iptables`
md5prod=`md5sum /etc/iptables`
if [md5backup = md5prod] ; then
echo "aman2x aja"
else
echo "ada yang berubah"
cp -fr /home/backup/iptables /etc/sysconfig/iptables
fi
On Thu, Mar 18, 2004 at 11:56:52AM +0800, Dhia Shahab M. wrote:
> #seperti ini kali ye...
> #semoga berhasil... soalnya tidak saya test :)
> #!/bin/bash
> md5backup=`md5sum /home/backup/iptables`
> md5prod=`md5sum /etc/iptables`
> if [md5backup = md5prod] ; then
mungkin maksudnya :
if [ "$md5b
On Thu, Mar 18, 2004 at 11:12:50AM +0700, Asfihani wrote:
> On Thu, Mar 18, 2004 at 11:56:52AM +0800, Dhia Shahab M. wrote:
>
> > #seperti ini kali ye...
> > #semoga berhasil... soalnya tidak saya test :)
> > #!/bin/bash
> > md5backup=`md5sum /home/backup/iptables`
> > md5prod=`md5sum /etc/iptabl
-<<- I.R.Harahap-Medan ->>- wrote:
==
dear all,
mohon bantuannya dalam membuat script utk pengamanan
server nih :
skenarionya sbb :
setiap 2 jam /etc/crontab akan menjalankan :
0 */2 * * * root /usr/sbin/secure.sh