Nautilus is not respecting the SGID when it copies directories
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
Thank you for your bug report, that's an old known issue, see bug #364683