Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Dec 1998 00:32:19 -0500 (EST)
From:      John Baldwin <jobaldwi@vt.edu>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Preserving permissions
Message-ID:  <XFMail.981213003219.jobaldwi@vt.edu>

next in thread | raw e-mail | index | archive | help
-----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 <jobaldwi@vt.edu> -- 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.981213003219.jobaldwi>