GNOME Bugzilla – Bug 133272
sgid directory not honored
Last modified: 2004-12-22 21:47:04 UTC
Package: nautilus Severity: normal Version: 2.2.4 Synopsis: sgid directory not honored Bugzilla-Product: nautilus Bugzilla-Component: File and Folder Operations Description: I created a directory like this: mkdir /tmp/shared chgrp shared /tmp/shared chmod 770 /mnt/shared chmod g+s /mnt/shared What should happen is copying files to this directory should result in them being in group 'shared' (moving works properly-- ie group does not change). Eg: $ touch /tmp/foo $ chmod james.james /tmp/foo $ ls -l /tmp/foo -rw-r--r-- 1 james james 0 Feb 2 22:51 /tmp/foo $ cp /tmp/foo /tmp/shared $ ls -l /tmp/shared/foo -rw-r--r-- 1 james shared 0 Feb 2 22:52 /tmp/shared/foo However, copying a file in nautilus (either via DnD while holding Ctrl or right clicking on the file, clicking 'Copy', then pasting the files into /tmp/shared results in the file having group ownership of 'james'. ------- Bug moved to this database by unknown@bugzilla.gnome.org 2004-02-02 22:56 ------- Reassigning to the default owner of the component, nautilus-maint@bugzilla.gnome.org.
I noticed that while the file was being copied, when I ran 'ls -l' the file is being copied with the proper group, but after the file is completely copied, nautilus changes the owner to be that of the original file.
*** This bug has been marked as a duplicate of 104052 ***