From owner-freebsd-questions Sat Dec 12 21:32:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA14192 for freebsd-questions-outgoing; Sat, 12 Dec 1998 21:32:35 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from quackerjack.cc.vt.edu (quackerjack.cc.vt.edu [198.82.160.250]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA14185 for ; Sat, 12 Dec 1998 21:32:33 -0800 (PST) (envelope-from jobaldwi@vt.edu) Received: from sable.cc.vt.edu (sable.cc.vt.edu [128.173.16.30]) by quackerjack.cc.vt.edu (8.8.8/8.8.8) with ESMTP id AAA15832 for ; Sun, 13 Dec 1998 00:32:20 -0500 (EST) Received: from john.baldwinfamily.org (jobaldwi.campus.vt.edu [198.82.67.63]) by sable.cc.vt.edu (8.8.8/8.8.8) with ESMTP id AAA02238 for ; Sun, 13 Dec 1998 00:32:19 -0500 (EST) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Sun, 13 Dec 1998 00:32:19 -0500 (EST) Reply-To: jobaldwi@vt.edu Organization: Virginia Tech From: John Baldwin To: freebsd-questions@FreeBSD.ORG Subject: Preserving permissions Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----BEGIN PGP SIGNED MESSAGE----- Hi all, How can I force all files and directories under a directory to be owned by the owner and group of the directory? That is, suppose /a is owned by joe:users, then if a file /a/temp is created, it will be owned by joe:users, even if I'm not joe when I create the file. I'd also like to be able to have the permissions of files ANDed against the parent directory's permissions. I.e. if /a has rwxrwx--- then, /a/temp should be rw-r----- after creating it (if I have a umask of 022) instead of rw-r--r--. I'd also like to do this selectively, i.e. only for certain directories, not as a system-wide thing on all directories. Can I do this without resorting to a cron job that resets all the permissions and ownerships every so often? Thanks. - --- John Baldwin -- http://members.freedomnet.com/~jbaldwin/ PGP Key: http://members.freedomnet.com/~jbaldwin/pgpkey.asc No wanna work. Wanna bang on keyboard. -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQB1AwUBNnNRLIjYza302vYpAQFeaQL+Kdq2+EOVmby1ds9b7YJHWenDWd2J5uIP QoxP+vGYtT4wTYlbOw8GnWk0S9k4TCyO3f7eWdLXbrQ+duWp3aK1uAHtenUYF+cX kefjzaV1Dt94qdw+VxmVJbYLwvMJZnZk =oLW4 -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message