From owner-freebsd-questions@FreeBSD.ORG Thu Sep 3 14:42:59 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 288F3106568B for ; Thu, 3 Sep 2009 14:42:59 +0000 (UTC) (envelope-from gesbbb@yahoo.com) Received: from smtp109.prem.mail.ac4.yahoo.com (smtp109.prem.mail.ac4.yahoo.com [76.13.13.92]) by mx1.freebsd.org (Postfix) with SMTP id C2C898FC25 for ; Thu, 3 Sep 2009 14:42:58 +0000 (UTC) Received: (qmail 83913 invoked from network); 3 Sep 2009 14:42:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Received:Date:From:To:Subject:Message-ID:In-Reply-To:References:Reply-To:Organization:X-Mailer:Face:Mime-Version:Content-Type:Content-Transfer-Encoding; b=HXajjQ/r3u7bgWfTw7MYME0iQzV81vas2g+7hr1jwFr3aWdG0EtCZv46FYredUoevZDL6HfnbAc6Bbp8nzyPYN1/cxeUG80ZpE1GoFe7r8YLPdqk9EVHLo/7ym+QWRQ3n3rcKA2nrL6jbYqRFZQ0BzgP7e+K5KIgNQ4OT5ZGB8A= ; Received: from c-67-189-183-172.hsd1.ny.comcast.net (gesbbb@67.189.183.172 with login) by smtp109.prem.mail.ac4.yahoo.com with SMTP; 03 Sep 2009 07:42:57 -0700 PDT X-Yahoo-SMTP: yeAAMgKswBATCul4lSbCWspvTA-- X-YMail-OSG: Al0B4cMVM1k0irT6W2JUYPNGwSOjt2uCxZfr3Zy2bDtzlpPGPounCQg.ZrtjW_0zTg.SODh5tDKkDixg8maUPZmpOELrRQH8xysfKRVMzH5Xr.aUltKw4GLWBsbEsosSPIZjPRhSGLRI6BeLg4hNVh1hGghDKN5NcVWw6N.Cv4UG82lVGA37s10Ga_mAdOdX12FkJbU8UnC3nkgmQQZanUUoKVdCOK9HaoFh8ROa2P6eAv.iaxlyGrt030v_9.hGj88RWjtuwoq_cmGgrqMxAdo9aHjMNvpw5bhiQdq50bEselah7efbqWE8_zINq6bvQrxlEZ9q2Q-- X-Yahoo-Newman-Property: ymail-3 Received: from scorpio.seibercom.net (scorpio.seibercom.net [192.168.1.103]) (Authenticated sender: gesbbb@scorpio.seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPA id 73F8A228A5 for ; Thu, 3 Sep 2009 10:42:57 -0400 (EDT) Date: Thu, 3 Sep 2009 10:42:57 -0400 From: Jerry To: freebsd-questions@freebsd.org Message-ID: <20090903104257.547e05ce@scorpio.seibercom.net> In-Reply-To: <20090903134107.GA3930@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> <4A9FB9E3.6060207@infracaninophile.co.uk> <20090903132256.GA3270@teddy.fas.com> <20090903133335.GA3884@teddy.fas.com> <20090903134107.GA3930@teddy.fas.com> Organization: seibercom.net X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; i386-portbld-freebsd7.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: What invokes cricket on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2009 14:42:59 -0000 On Thu, 3 Sep 2009 09:41:07 -0400 stan wrote: > On Thu, Sep 03, 2009 at 09:33:35AM -0400, stan wrote: > > On Thu, Sep 03, 2009 at 09:22:56AM -0400, stan wrote: > > > On Thu, Sep 03, 2009 at 01:43:15PM +0100, Matthew Seaman wrote: > > > > 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 time 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 running on, and > > > > >> when we rebooted the system, cricket id not resume > > > > >> collecting data. > > > > >> > > > > >> I don't see anyhting in /usr/local/etc/rc.d to start it up, > > > > >> nor do I see anything in /etc/crontag. I don't seen any > > > > >> processes owned by cricket running. > > > > >> > > > > >> In FreeBSD, how is this process noramally invoked? > > > > > > > > > > Sorry to reply to my own message, but I have more data. I did > > > > > find > > > > > > > > > > -rw------- 1 root wheel 288 Jan 12 > > > > > 2009 /var/cron/tabs/cricke > > > > > > > > > > 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 decided to try running this > > > > > command by hand. Now, to do so I need to be the cricket 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 listed as /usr/sbin/nologin. I edited /etc/paswd to > > > > > change this to /nin/sh, but I still get the smae error > > > > > message when I try to su to that user. > > > > > > > > > > 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 > > > > > > > > > > OK, I was able to execute the cricket collector caoomand bu using > > > the su - format, and it ran corectly. > > > > > > Cany anyone sugest what to check to see why cron is not executing > > > this command? I see no evidence of it's running in either the > > > cricket logs' or cron's logs. > > > > > > Thanks. > > > > > Repkying to my own message again :-( > > > > > > OK, I found in the cron man page the following: > > > > Before running a command from a per-account crontab file, cron > > checks the status of the account with pam(3) and skips the command > > if the account is unavailable, e.g., locked out or expired. > > > > So, now the question is, how do I unlock that user? > > > This gets strnager. I found the pw cammand, which should do thatm but: > > pnoc# pw unlock cricket > pw: user 'cricket' is not locked > > So, how come: > > pnoc# su - cricket > This account is currently not available. Something appears to be broken. You might try a new installation. The port creates the user and group if it does not exist. 1) pkg-delete -dfv cricket-1.0.5_5 2) Use pw to delete any reference to cricket 3) Then install cricket via the port -- Jerry gesbbb@yahoo.com We are upping our standards ... so up yours. Pat Paulsen for President, 1988