Daily chksetuid script - how to ignore certain dirs/filesystems?

Ceri Davies ceri at submonkey.net
Sun Mar 19 16:47:24 UTC 2006


On Sun, Mar 19, 2006 at 08:25:04AM -0700, Pat Maddox wrote:
> On 3/19/06, Ceri Davies <ceri at submonkey.net> wrote:
> > On 19/3/06 10:58, "Pat Maddox" <pergesu at gmail.com> wrote:
> >
> > > I have a backup script that runs every night, backing up everything to
> > > a backup drive.  When the security script runs, it finds a bunch of
> > > setuid files at /backup - I'd like to ignore those files, so I don't
> > > have to wade through them every day.  I also back up to a remote
> > > server and it results in the same thing.  How can I make it skip over
> > > the backup dir, or at least ignore it in the output?  The cron file in
> > > question is /etc/periodic/security/100.chksetuid
> >
> > The best way to be to mount /backup nosuid.
> 
> How about on the other server?  The files go to the /home partition
> (and that's where they have to go).

I'd do the same there unless there is a good reason not to (and the same
for /tmp, /var/, etc) as SOP anyway.

Ceri
-- 
That must be wonderful!  I don't understand it at all.
                                                  -- Moliere
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060319/dfa6a8a0/attachment.pgp


More information about the freebsd-questions mailing list