Re: chmod help
On Mon, 7 Sep 1998, E.L. Meijer (Eric) wrote:
: >
: > *-debianuser@jkeating.static.execpc.com (Default Debian Reader)
: > |
: > | How can i change the perms on a directory so that a file that is copied into that directory is automatically owned by another user and group?
: >
[ snip ]
: Don't know if anyone mentioned it already, but you can actually do this
: for the group ownership. If you do a `chmod g+s <dir>', new files
: created in this directory will get the same group.
In fact, this is why Debian uses "usergroups" rather than catch-all
groups like "users" - the default umask can be set so that your private
files in your home directory are indeed private, but files in a shared
project directory (take /usr/local/src as an example) can be editted by
anyone in group "src", provided /usr/local/src has permissions 2775.
I hated usergroups when I started using Debian, until I figured out what
they were for. Now I find them quite useful.
--
Nathan Norman
MidcoNet 410 South Phillips Avenue Sioux Falls, SD
mailto:finn@midco.net http://www.midco.net
finger finn@home.midco.net for PGP Key: (0xA33B86E9)
Reply to: