Mailinglist Archive: opensuse (3109 mails)
| < Previous | Next > |
[opensuse] Re: Create files owned by non-default group
- From: Joachim Schrod <jschrod@xxxxxxx>
- Date: Mon, 26 Feb 2007 12:13:35 +0100
- Message-id: <erufcv$f55$1@xxxxxxxxxxxxx>
Sylvester Lykkehus wrote:
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: jschrod@xxxxxxx
Roedermark, Germany
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
Anders Johansson wrote:
On Saturday 24 February 2007 16:12, Sylvester Lykkehus wrote:Great, this was what I was looking for.
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"
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: jschrod@xxxxxxx
Roedermark, Germany
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |