[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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 ;-)

-- 
.elOle.


Reply to: