Nautilus is not respecting the SGID when it copies directories

Bug #1812818 reported by mirohe
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Hi,

Both on ubuntu 16.04 and on ubuntu 18.04 have de same problem

if I have a directory with the SGID activated and within this I create with the nautilus another directory inside, the latter has the SGID.

But if I copy a directory from another place through the nautilus and paste it into the directory with SGID, the copied directory does not have the SGID.

for example:

home directory test:

$> ls -l

drwxr-sr-x 2 myuser mygroup 4096 ene 21 16:47 test

Create a new directorio called "dir1" with nautilus into of test. Result:

$> ls -l test

drwxr-sr-x 2 myuser mygroup 4096 ene 21 17:09 dir1

This is correct.

=========
NOW
=========

if I copy a directory from another place (for example /home/user/dir2) called "dir2" through the nautilus and paste it into the directory "test", the result is:

$> ls -l test

drwxrwsr-x 2 miguel.rodriguez miguel.rodriguez 4096 ene 21 17:09 dir1
drwxrwxr-x 2 miguel.rodriguez miguel.rodriguez 4096 ene 21 17:12 dir2

The directory dir2 not have "s" SUID in group user.

If I do this from the command line without using nautilus it works correctly. example:

$> cp -r /home/user/dir2 /home/user/test/.
$> ls -l test

drwxrwsr-x 2 miguel.rodriguez miguel.rodriguez 4096 ene 21 17:09 dir1
drwxrwsr-x 2 miguel.rodriguez miguel.rodriguez 4096 ene 21 17:12 dir2

this way it works

Any more this happens?
Since I can not open an issue, I do it here.

Best Regards

affects: ubuntu → nautilus (Ubuntu)
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, that's an old known issue, see bug #364683

Changed in nautilus (Ubuntu):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
mirohe (miguelrodriguezhernando) wrote :

ok, thanks. Sebastien

Other information if you can help:

- With the application Nemo has the same problem
- With the application Thunar works ok

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.