Restricting Periodic Scripts
Greg Larkin
glarkin at FreeBSD.org
Wed Feb 6 18:00:42 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2/6/13 12:26 PM, Tim Gustafson wrote:
> I have a FreeBSD ZFS file server with tens of millions of files
> stored on it.
>
> But, the daily periodic scripts like
> /etc/periodic/security/110.neggrpperm and
> /etc/periodic/weekly/310.locate take hours iterating through those
> folders, and I just don't need them to be scanned.
>
> I see that I can edit /etc/locate.rc to fix the behavior for
> /etc/periodic/weekly/310.locate but I don't see a way to exclude
> folders from other scripts like
> /etc/periodic/security/110.neggrpperm from scanning them. Is there
> any way to prune out folders that I don't want scanned, or should I
> just disable those jobs?
>
Hi Tim,
Have a look at this posting from 2012:
http://forums.freebsd.org/archive/index.php/t-31846.html
There is a patch for the script in there, but I didn't check to see if
the author ever filed a PR. There's also a workaround that involves
using the nosuid mount option, if that is acceptable in your environment.
Regards,
Greg
- --
Greg Larkin
http://www.FreeBSD.org/ - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/cpucycle/ - Follow you, follow me
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlESmkAACgkQ0sRouByUApB2kgCfalTZRa5GQlAZjcNXq5qxfA3e
2rwAoLCMoscJYLVuevYLjZGj9qYiIjZD
=3yUC
-----END PGP SIGNATURE-----
More information about the freebsd-questions
mailing list