Re: chmod help
>
> *-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?
>
> You can't. Two suggestions:
>
> * Use chown -R to change ownership of all files i a directory
> * Write a shell function (cp) that just copies normally but copies
> and changes owner and group if the destination is that directory
> (if you're really desperate ;-)
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.
HTH,
Eric
--
E.L. Meijer (tgakem@chem.tue.nl) | tel. office +31 40 2472189
Eindhoven Univ. of Technology | tel. lab. +31 40 2475032
Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax +31 40 2455054
Reply to: