From owner-freebsd-questions@FreeBSD.ORG Sun Dec 27 08:40:09 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 2AB671065698 for ; Sun, 27 Dec 2009 08:40:09 +0000 (UTC) (envelope-from xkyanh@gmail.com) Received: from mail-px0-f190.google.com (mail-px0-f190.google.com [209.85.216.190]) by mx1.freebsd.org (Postfix) with ESMTP id EC7678FC1B for ; Sun, 27 Dec 2009 08:40:08 +0000 (UTC) Received: by pxi28 with SMTP id 28so6474136pxi.7 for ; Sun, 27 Dec 2009 00:39:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:message-id:in-reply-to:references:organization:user-agent :x-operating-system:x-face:face:x-mailer:mime-version:content-type :content-transfer-encoding; bh=r10FyjOOR9g06DO/8x5eA3FZlQO/xdqBAosa7msjwFc=; b=OHYmuRupQ1/ZsBT6oF3E4AWwM5GI/VEyfvJHob+iK3pYYlpZTErJxLjZnBwjl1JRFr M62+HhuyZ9cCjybDDmbSPrFfSa0zsN7aNA5yazCrh2WA28mQIo+X55vVxOvCqgUKn23L pxnTYWieqPYrP46a0dO09BIuUZ/bx9l03TNnE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :organization:user-agent:x-operating-system:x-face:face:x-mailer :mime-version:content-type:content-transfer-encoding; b=eHVoBYiBA+CpATYoWUOknt/vrW+/XUZRZIeAn4e88oTNiHJWwqOYJSdbyJ7inrj7b0 oJpMLERRIxo6knGHL4JwtQj2IJQDoaNlhKJS1omFLzdKUQ9EDyrDdXml3lORV9fhRVCT DLtVbb976mmkgSgQqiwMDMbALVnABCgcUiUUM= Received: by 10.115.102.16 with SMTP id e16mr9711878wam.202.1261903194340; Sun, 27 Dec 2009 00:39:54 -0800 (PST) Received: from icy.localdomain ([222.253.93.215]) by mx.google.com with ESMTPS id 21sm10560371pzk.15.2009.12.27.00.39.52 (version=SSLv3 cipher=RC4-MD5); Sun, 27 Dec 2009 00:39:53 -0800 (PST) Sender: "Ky Anh, Huynh" Date: Sun, 27 Dec 2009 15:39:40 +0700 From: "Anh Ky Huynh" To: Michael Powell Message-ID: <20091227153940.5ce942b8@icy.localdomain> In-Reply-To: References: <20091226042600.1920a0e1@icy.localdomain> Organization: Vietnamese TeX Users Group User-Agent: FreeBSD X-Operating-System: FreeBSD X-Face: FreeBSD Face: FreeBSD X-Mailer: FreeBSD Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: strange find process 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: Sun, 27 Dec 2009 08:40:09 -0000 On Fri, 25 Dec 2009 19:24:04 -0500 Michael Powell wrote: > Anh Ky Huynh wrote: > > > Hi all, > > > > At 2:00 am today, I turned my laptop on and suddenly found a > > strange process: > > > > $ ps xauw | grep find > > ... find -sx ./bin -type f > > ( -perm -u+x -or -perm -g+x -or -perm -o+x ) > > ( -perm -u+s -or -perm -g+s ) -exec ls -liTd {} + > > > > What is the purpose of this process? If that is a system check > > then where is the log file? > > There are some scripts called periodic which execute and perform > various different things depending upon whether it is a daily, > weekly, or monthly. The output will get emailed to root, or > redirected to an alias of root. > > The above looks strangely enough like a snippet of this activity. > The daily usually runs every morning here at 3AM, the weekly > rebuilds the locate and whatis database something like 4:15AM > Saturday morning, and the monthly is an end of the month count of > login activity. > > More info can be found in man periodic. There is a periodic.conf in > /etc/defaults, and the scripts themselves live in /etc/periodic and > you can take a look. My bet is you stumbled upon one of the > periodic script runs. > Thank you very much, Michael. The `periodic` is mentioned in the Handbook but I seem to leave it too soon. FreeBSD is so funny :) Regards, -- Anh Ky Huynh