From: schuerch@tech.ascom.ch (Heinz Schuerch) Subject: Possible problem with set-gid on directories ? Date: Thu, 8 Apr 1993 10:03:21 GMT
Yeasterday I encountered a problem with my Linux system. I have to mention here, that
I'm not a UNIX-Guru, so it may be caused by my limited knowledge or by a manipulation
error.
The problem:
There is a user called root (uid = root, gid = root), who created a directory as
follows:
drwxrwsr-x . root bin_adm .................. test
Observe the group ownership of the directory and that the s-bit for groups is set.
In my opinion this should prevent a user to delete files it does not own. correct ?
Now another user (uid = src_admin, gid = bin_adm) creates a file in directory test;
In my environment the following happend:
-rwxrw-rw- . src_admin root ............... file_in_testdir
It seems, that the s-bit in the group field "changed" the gid of the created file to
root, which I think is not correct.
Can anybody confirm/refuse the behaviour above or tell my what I'm doing wrong.
My setup:
Linux 0.99.7, libc.so.4.3.3, bash-1.12
filesystem: minix (30 char)
Thanks for any hint
heinz
======================================================================================
heinz schuerch |
ascom tech ag | e-mail: schuerch@tech.ascom.ch
broadband research dept. | tel: ++41 31 999 42 83
bern/switzerland | Fax: ++41 31 991 52 11
======================================================================================