SGID on a directory, mv blows the theory!

From: Dennis Martens (Dennis_Martens@health.qld.gov.au)
Date: Thu May 09 2002 - 02:31:01 EDT


All

A small but very annoying problem. Nothing appropriate in the archives, so
would appreciate the help.

We have a directory on a Solaris8 server which has the SGID bit set, allowing
all files created in the directory to belong to the same group, the one that
the directory belongs to. This works fine when creating new files with touch,
cat, vi and so on, and works fine with cp as well. But when you mv a file, the
rules seem to go out the window, and the file belongs to the default group of
the user doing the mv.

Is this a feature?

Thanks, I will send out a summary.

Dennis Martens
Unix Administrator, BCISU
Queensland Health , Brisbane Australia
617 32340729
Fax 32341289

**********************************************************************
This e-mail, including any attachments sent with it, is confidential
and for the sole use of the intended recipient(s). This confidentiality
is not waived or lost if you receive it and you are not the intended
recipient(s), or if it is transmitted/ received in error.

Any unauthorised use, alteration, disclosure, distribution or review
of this e-mail is prohibited. It may be subject to a statutory duty of
confidentiality if it relates to health service matters.

If you are not the intended recipient(s), or if you have received this
e-mail in error, you are asked to immediately notify the sender by
telephone or by return e-mail. You should also delete this e-mail
message and destroy any hard copies produced.
**********************************************************************
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:18 EDT