After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 133272 - sgid directory not honored
sgid directory not honored
Status: RESOLVED DUPLICATE of bug 104052
Product: nautilus
Classification: Core
Component: File and Folder Operations
unspecified
Other other
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-02-03 03:56 UTC by James Strandboge
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description James Strandboge 2004-02-03 03:56:17 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.

Comment 1 James Strandboge 2004-02-03 04:23:50 UTC
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.
Comment 2 Jason D. Hildebrand 2004-02-12 19:01:29 UTC

*** This bug has been marked as a duplicate of 104052 ***