Date: Fri, 25 Jul 1997 13:01:29 -0700 (PDT) From: Dan Busarow <dan@dpcsys.com> To: "Neil T. Mathison" <mathison@sara.cpb.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Changing file owner automatically on creation. Message-ID: <Pine.UW2.3.95.970725125608.5146F-100000@cedb> In-Reply-To: <Pine.OSF.3.95.970725111356.12223A-100000@sara.cpb.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 25 Jul 1997, Neil T. Mathison wrote: > 1. New files created in the html document directory tree will > become owned by a user named "webadmin" (one or more people > could access this account) > 2. The file's group would be set to the same as it's parent > directory. > 3. The file mode would be set to 775. [ ... ] > Ideally, I would like it happen as soon as the file is created (closed), > as opposed to running some script at a scheduled period. Is there a > way of easily capturing a "file close event" and then kicking off > a script? How are things like this normally accomplished? By having the directory's group be a shared group. i.e. the people who would have acccess to the webadmin account instead are members of group webadmin. The owner remains the original owner. Set the owner's umask to 002 Files will then be created 664 and directories 775 with group set to the shared group and the owner set to the owner. Dan -- Dan Busarow 714 443 4172 DPC Systems / Beach.Net dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.UW2.3.95.970725125608.5146F-100000>