Permissions

Jeremy C. Reed plug-discuss@lists.plug.phoenix.az.us
Sat, 15 Mar 2003 19:11:20 -0800 (PST)


On 15 Mar 2003, Bryce C wrote:

> Does anyone know of a way to take a "snapshot" of the permissions of
> several hundred files that can be re-applied (easily) later?

mtree works perfect for that.

It can make a specification (including permissions) and then later can be
used to "Modify the owner, group, permissions, and flags of existing
files, the device type of devices, and symbolic link targets, to match the
specification."

mtree is also a useful tripwire replacement.

   Jeremy C. Reed
   http://bsd.reedmedia.net/