Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Aug 1996 19:53:04 -0700 (PDT)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Annelise Anderson <andrsn@andrsn.stanford.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: 2.1.5 /etc/daily permissions
Message-ID:  <Pine.BSI.3.94.960805195109.220B-100000@gdi.uoregon.edu>
In-Reply-To: <Pine.BSI.3.94.960805075134.2682A-100000@andrsn.stanford.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 5 Aug 1996, Annelise Anderson wrote:

> 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.

If you take a look at /etc/crontab (which are where daily, weekly, and
monthly are run from):

# do daily/weekly/monthly maintenance
0       2       *       *       *       root    /etc/daily 2>&1 | sendmail root
30      3       *       *       6       root    /etc/weekly 2>&1 |sendmail root
30      5       1       *       *       root    /etc/monthly 2>&1 | sendmail root
#

They all run as root (which makes sense).

> In general, are the permissions in /usr/src/etc designed to
> be right, or designed to need configuration?

/usr/src/etc is touched.  I'd refer back to your old /etc (which you
probably didn't back up, which you should have since your services file is
now toasted).

644 makes more sense, or even 600 (does anyone really _need_ to see the
maintenance scripts?).  

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.960805195109.220B-100000>