From owner-freebsd-questions@FreeBSD.ORG Mon Feb 25 21:42:36 2008 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 E65ED16A400 for ; Mon, 25 Feb 2008 21:42:36 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id D649F13C465 for ; Mon, 25 Feb 2008 21:42:36 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay14.apple.com (relay14.apple.com [17.128.113.52]) by mail-out3.apple.com (Postfix) with ESMTP id 8E0222248DB9; Mon, 25 Feb 2008 13:42:36 -0800 (PST) Received: from relay14.apple.com (unknown [127.0.0.1]) by relay14.apple.com (Symantec Mail Security) with ESMTP id 70EC728092; Mon, 25 Feb 2008 13:42:36 -0800 (PST) X-AuditID: 11807134-a43efbb0000032fc-d6-47c3364c37b8 Received: from cswiger1.apple.com (cswiger1.apple.com [17.214.13.96]) by relay14.apple.com (Apple SCV relay) with ESMTP id 2434C28090; Mon, 25 Feb 2008 13:42:36 -0800 (PST) Message-Id: <4AA04451-4F78-4E49-B083-CB6048066915@mac.com> From: Chuck Swiger To: Shawn Barnhart In-Reply-To: <47C3308B.1010405@grasslake.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Mon, 25 Feb 2008 13:42:35 -0800 References: <47C3308B.1010405@grasslake.net> X-Mailer: Apple Mail (2.919.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-questions@freebsd.org Subject: Re: What periodic process strips executable permissions? 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: Mon, 25 Feb 2008 21:42:37 -0000 On Feb 25, 2008, at 1:18 PM, Shawn Barnhart wrote: > I wrote a shell script to email me the output of ntpdc -p and put it > in my crontab. > > It works for a week, and at some point over the weekend my script > loses its executable permissions for me (user) but not for group or > other. > > Is there a FreeBSD periodic job that runs periodically and removes > executable permissions? I'm pretty sure I didn't make it SUID. It > was rwxr-xr-x and there are other scripts in the same directory > rwxr--r-- that don't lose their permissions. There's nothing which comes with FreeBSD which would make such a change in permissions. Check whether your other cron jobs or anything customized with the periodic scripts are doing stuff you don't expect. :-) -- -Chuck