From owner-freebsd-questions@FreeBSD.ORG Thu Sep 3 12:43:33 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97608106566B for ; Thu, 3 Sep 2009 12:43:33 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 2C7D18FC1E for ; Thu, 3 Sep 2009 12:43:33 +0000 (UTC) Received: from significant-gravitas-shortfall.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n83ChLo8004743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 3 Sep 2009 13:43:26 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n83ChLo8004743 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1251981806; bh=bwdSCIFP9gMk/5os3hyWHl4vVM6pjGjYjWuBfEB+ju4=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4A9FB9E3.6060207@infracaninophile.co.uk>|Date:=20T hu,=2003=20Sep=202009=2013:43:15=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20090824)|MIME-Vers ion:=201.0|To:=20Free=20BSD=20Questions=20list=20|Subject:=20Re:=20What=20invokes=20cricket=20on=20Fr eeBSD|References:=20<20090903114857.GA635@teddy.fas.com>=20<200909 03122532.GA1604@teddy.fas.com>|In-Reply-To:=20<20090903122532.GA16 04@teddy.fas.com>|X-Enigmail-Version:=200.95.7|OpenPGP:=20id=3D60A E908C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha1=3B=0 D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary= 3D"------------enig7E694DC039DEFAE660C9DC9A"; b=T10GAkeBIIY7/pdaLV+7biExYK+UN7sMXbia3bGtSFuuhspGoKVgPzEIJqxZzMj0r JMj+ub8bG1kwwfTepsV/cZQErx3EKm5hsVT8ofX7txnjqiUDyJclDM8mvS3/8uQgTK zsVVMS0uVh6pMrC8WXAzVFqbEIgDr75i7B7oPMIo= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host gateway.ash.thebunker.net [213.129.64.4] claimed to be significant-gravitas-shortfall.thebunker.net Message-ID: <4A9FB9E3.6060207@infracaninophile.co.uk> Date: Thu, 03 Sep 2009 13:43:15 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20090824) MIME-Version: 1.0 To: Free BSD Questions list References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> In-Reply-To: <20090903122532.GA1604@teddy.fas.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7E694DC039DEFAE660C9DC9A" X-Virus-Scanned: clamav-milter 0.95.2 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,SPF_FAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Subject: Re: What invokes cricket on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2009 12:43:33 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7E694DC039DEFAE660C9DC9A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable stan wrote: > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: >> I have inherited a system that uses Cricket on FreeBSD to do some data= >> collection. I have set this up myself in the distnat past, but this ti= me I >> asked a contractor to set it up. I no longer have access to this >> contractor, and the toher day, we shut down the system this was runnin= g on, >> and when we rebooted the system, cricket id not resume collecting data= =2E >> >> I don't see anyhting in /usr/local/etc/rc.d to start it up, nor do I s= ee >> anything in /etc/crontag. I don't seen any processes owned by cricket >> running. >> >> In FreeBSD, how is this process noramally invoked? >=20 > Sorry to reply to my own message, but I have more data. I did find=20 >=20 > -rw------- 1 root wheel 288 Jan 12 2009 /var/cron/tabs/cricke >=20 > Which is, I am failry certain, what is _intended_ to invoke the cricket= > process. However, acording to the cricket logs, the last time I have an= > entry is Aug 29th, which was when the machine was shut down. So, I deci= ded > to try running this command by hand. Now, to do so I need to be the cri= cket > user, so I tried to su - cricket. I was told that this user was not > avaialble. Looking in /etc/passwd. I found that this users shell was li= sted > as /usr/sbin/nologin. I edited /etc/paswd to change this to /nin/sh, bu= t I > still get the smae error message when I try to su to that user. >=20 > What do I need to change to be able to su to this suer, and might this = be > the reason tha it's crontab entry is notbeing run? Try: # su -m cricket although the best way to examine and/or modify that user's crontab is: # crontab -e -u cricket The cricket user not having a usable shell should not stop cron(8) from running jobs, as it defaults to using /bin/sh or else the=20 value of any SHELL=3D line in the crontab for running the specified jobs.= Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK --------------enig7E694DC039DEFAE660C9DC9A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkqfuegACgkQ3jDkPpsZ+VbQGQCfeE2+2zCZVwny2qZ46dwK2kHJ vDgAniFoCpwj4LCoeL4cK+KrrZ6ioH4I =4Taz -----END PGP SIGNATURE----- --------------enig7E694DC039DEFAE660C9DC9A--