Sylvester Lykkehus wrote:
Anders Johansson wrote:
On Saturday 24 February 2007 16:12, Sylvester Lykkehus wrote:
Is it possible to define, that when I create files in a specific
directory, the files will not be (ch)owned to the default group, but
instead as another group which I am a member of?
Make the directory sgid, with "chmod g+s dirname"
Great, this was what I was looking for.
Be careful with one thing: If you move a file into that directory,
it keeps its group and does not change it during the move. If you
copy it, the directory's group is taken, though. (That's because a
move (in a filesystem) does not create a new file, but only a new
directory entry; whereas a copy really creates a new file.)
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: [EMAIL PROTECTED]
Roedermark, Germany
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]