Group ownership on move

From: Bodo Krause-Kyora <krause_at_PHYSnet.uni-hamburg.de>
Date: Thu, 22 Jun 2000 20:59:58 +0200 (MET DST)

Hi,

I've got a question about a strang behaviour in our directories:

For our staff we have got several group directories.

For Quota reasons we have given them a secondary group to access the
group directories.

        # id
        <snip> gid=107(AU) groups=228(grsys_ap)

        # ls -ld group-sys_ap/
        drwxrwx--- 14 nobody grsys_ap 8192 Jun 22 20:20 group-sys_ap/


When they create or copy a file in the group directory everything works
fine: the new file gets the right group :

        # touch test.txt
        # ls -l test.txt
        -rw-rw---- 1 uu1 grsys_ap 0 Jun 22 20:46 test.txt
        
        

BUT : if a user MOVES a file to the group directory, the file still
belongs to the old group :

        # touch test2.txt (in his home directory )
        # ls -l test2.txt (in his home dir )
        -rw-rw---- 1 uu1 AU 0 Jun 22 20:50 test2.txt

        # mv test2.txt <somewhere>/group-sys_ap/
        # ls -l <somewhere>/group-sys_ap/test2.txt
        -rw-rw---- 1 uu1 AU 0 Jun 22 20:50 test2.txt

  This is a bad situation. We installed the directories for exchange of
files. But another user with access to the groupdirectory CANNOT access
the file because of the wrong group.


So my question :

Have anyone seen this problem and got a good idea how to set the
group ownership even if the user moves the file ???

Thanks in advance!

Cheers,

        Bodo Krause-Kyora

************************************************
*Bodo Krause-Kyora *
*PHYSnet Rechnerverbund *
*Tel: 42838-2404 *
*E-Mail : Krause_at_physnet.uni-hamburg.de *
************************************************
Received on Thu Jun 22 2000 - 19:01:09 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT