From owner-freebsd-questions Tue Aug 6 11:20:29 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA06586 for questions-outgoing; Tue, 6 Aug 1996 11:20:29 -0700 (PDT) Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA06581 for ; Tue, 6 Aug 1996 11:20:25 -0700 (PDT) Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ae05425; 6 Aug 96 18:19 GMT Received: from jraynard.demon.co.uk ([158.152.42.77]) by relay-3.mail.demon.net id aa11977; 6 Aug 96 19:11 +0100 Received: (from fqueries@localhost) by jraynard.demon.co.uk (8.7.5/8.6.12) id KAA01770; Tue, 6 Aug 1996 10:59:02 GMT From: James Raynard Message-Id: <199608061059.KAA01770@jraynard.demon.co.uk> Subject: Re: 2.1.5 /etc/daily permissions To: Annelise Anderson Date: Tue, 6 Aug 1996 10:59:02 +0000 () Cc: questions@freebsd.org In-Reply-To: from "Annelise Anderson" at Aug 5, 96 07:56:09 am X-Mailer: ELM [version 2.4 PL24 ME8a] Content-Type: text Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > I've been merging (alphabetically, which may not be such a great > idea) the 2.1.5 /usr/src/etc files with my old /etc, and > noticed that in /usr/src/etc the daily, weekly and monthly > files have 644 permissions....whereas the old ones are 755. > > I don't think they'll run with 644, will they? I would > think 744 would be appropriate. According to crontab(5), the command is executed by /bin/sh, ie it's the equivalent of typing sh my_command at the command prompt rather than ./my_command The first case doesn't need the script to have execute permissions as it's just being used as input to /bin/sh, rather than as a command in its own right. In the second case, you're using the script as a command itself, so you would need it to be an executable. (Obviously, if you put in a SHELL=/something/else line in /etc/crontab, they would be executed by the /something/else, but the principle's the same). In other words, yes, I'd expect them to work with 644 :-) > In general, are the permissions in /usr/src/etc designed to > be right, or designed to need configuration? I haven't checked this, but I think that everything in the src tree has the executable bits turned off (presumably to prevent accidents like a hacked-but-not-yet-tested script being run instead of one of the system ones).