2012-06-25 - Re: [GRASE-Hotspot] Uninstalling Grase leave behind several pieces

Header Data

From: Timothy White <ti***8@gmail.com>
Message Hash: d43508e65c3b61feba733da0b702ae7f719e4b4fc66ccd5161158d74d08d0e01
Message ID: <CAESLx0JUXVeUK-tHQuYG2gK3Ay1nfbm5VxL2=uUSBAtT+3BQUg@mail.gmail.com>
Reply To: <201206251417.21651.solbu@solbu.net>
UTC Datetime: 2012-06-25 07:02:18 UTC
Raw Date: Mon, 25 Jun 2012 22:02:18 +0800

Raw message

On Mon, Jun 25, 2012 at 8:17 PM, Johnny Solbu <so***u@solbu.net> wrote:
> Hi.
>
> I have been asked by someone about removing Grase from their router, as it doesn't belong there.
> I can't figure out how to remove the crontab it installes as part of the installation process.
>
> So, where is the crontab installed?

The crontab will be in one of the /etc/cron.* directories.
However, it's normal to be "left behind" when you uninstall. When you
remove a package in Ubuntu/Debian, it leaves behind it's config files,
one of which is the crontab. To completly remove it, you need to use
--purge with your "apt-get remove". If you've already uninstalled it,
you can use "dpkg --purge" to remove the config files.

I probably need to modify the crontabs to check if the script exists
before trying to run it too.

It appears you used the Nginx config with it (CRON[8443]: (www-data)
CMD (/usr/share/grase/scripts/start_php_cgi), how'd that go for you?

Tim


>
> ===
> # grep grase /var/log/syslog|tail
> Jun 25 13:25:01 gw-mb /USR/SBIN/CRON[7740]: (root) CMD (   /usr/share/grase/scripts/update_grase_networksettings.sh)
> Jun 25 13:30:01 gw-mb /USR/SBIN/CRON[7821]: (root) CMD (   /usr/share/grase/scripts/update_grase_networksettings.sh)
> Jun 25 13:35:01 gw-mb /USR/SBIN/CRON[7896]: (root) CMD (   /usr/share/grase/scripts/update_grase_networksettings.sh)
> Jun 25 13:40:01 gw-mb /USR/SBIN/CRON[7979]: (root) CMD (   /usr/share/grase/scripts/update_grase_networksettings.sh)
> Jun 25 13:45:01 gw-mb /USR/SBIN/CRON[8060]: (root) CMD (   /usr/share/grase/scripts/update_grase_networksettings.sh)
> Jun 25 13:50:01 gw-mb /USR/SBIN/CRON[8209]: (root) CMD (   /usr/share/grase/scripts/update_grase_networksettings.sh)
> Jun 25 13:55:01 gw-mb /USR/SBIN/CRON[8358]: (root) CMD (   /usr/share/grase/scripts/update_grase_networksettings.sh)
> Jun 25 14:00:01 gw-mb /USR/SBIN/CRON[8443]: (www-data) CMD (/usr/share/grase/scripts/start_php_cgi > /dev/null)
> Jun 25 14:00:01 gw-mb /USR/SBIN/CRON[8447]: (root) CMD (   /usr/share/grase/scripts/update_grase_networksettings.sh)
> Jun 25 14:05:01 gw-mb /USR/SBIN/CRON[8527]: (root) CMD (   /usr/share/grase/scripts/update_grase_networksettings.sh)
>
> # LC_ALL=C ls /usr/share/grase/scripts/
> ls: cannot access /usr/share/grase/scripts/: No such file or directory
>
> # crontab -l -u www-data
> no crontab for www-data
>
> # crontab -l -u root
> #
>
> # ls -l /var/spool/cron/crontabs/
> totalt 8
> -rw------- 1 root      crontab 175 feb.   8 17:21 root
>
> root@gw-mb:/etc/ppp/peers# cat /var/spool/cron/crontabs/root
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (- installed on Wed Feb  8 17:21:42 2012)
> # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
> ===
>
> --
> Johnny A. Solbu
> web site, http://www.solbu.net
> PGP key ID: 0xFA687324
> ********************************
> Kom Arbeidslyst og treng deg på,
> her skal du motstand finne.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Grase-hotspot mailing list
> Gr***t@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/grase-hotspot
>




Thread