Cannot change group of file on network share if it is copied with certain programs
Actual behavior:
When copying files to a network share, such as /home/ad/lxhome
, /cs/home
or /cs/group
, it may not be possible to change the group of a file with chgrp
depending on which program was used to copy it to the network share.
For example: if I copy a file to a network share with cp, or Nautilus file manager, its group can be changed afterwards. If I copy it with Nemo file manager, it can not. There is no visible difference in permissions between those two files.
Expected behavior:
I should be able to change the group on all my network files regardless of how they were copied there.
How to reproduce:
- Go to
/cs/group/gurula/oikeustesti
. There are six identical files copied there with six different programs: cp, rsync, nemo, nautilus, dolphin and thunar. - Try to change their group to
grp-gurula
or some other group (they originally have grouphyad-all
) with commandchgrp grp-gurula kopioitu-*
. - The group will change successfully on the files copied with cp, rsync, nautilus and thunar, but you will see the following error on those copied with nemo and dolphin:
chgrp: changing group of 'kopioitu-dolphin': Permission denied
Other info:
All of these files seem to have the same permissions, owners, groups etc. so I don't see any reason why the group changing works for only some of them. One guess would be SELinux contexts on the files, but I don't have permissions to check those.
This is a permission issue, so it is possible that an admin cannot reproduce this because they have too many permissions. Try reproducing it with a more restricted account.