guermantes
Patron
- Joined
- Sep 27, 2017
- Messages
- 213
What just happened here ? I create 1002.txt and then, as root, move it but get "operation not permitted". I thought root could do anything. And the file ends up fully readable in the destination all the same.
Was this some ACLS trying to be applied and not succeeding, thus retaining 'simple' permissions (775)?
Was this some ACLS trying to be applied and not succeeding, thus retaining 'simple' permissions (775)?
Code:
[root@freenas /mnt/TANK/peterstuff]# find / -user 1002 > 1002.txt [root@freenas /mnt/TANK/peterstuff]# ls -la total 21587 drwxrwxr-x+ 2 linux_user linux_user 8 Dec 10 19:22 . drwxrwxr-x+ 14 linux_user linux_user 15 Dec 10 11:26 .. -rwxrwxr-x+ 1 root linux_user 41428081 Dec 10 19:30 1002.txt [root@freenas /mnt/TANK/peterstuff]# mv 1002.txt ../home/peter/ mv: ../home/peter/1002.txt: set mode (was: 0775): Operation not permitted [root@freenas /mnt/TANK/peterstuff]# ls -la ../home/peter total 3396900 drwxrwxr-x+ 14 peter peter 28 Dec 10 19:36 . drwxrwxr-x+ 9 root wheel 10 Oct 23 14:40 .. -rwxrwxr-x+ 1 root linux_user 41428081 Dec 10 19:30 1002.txt drwxrwxr-x+ 3 peter peter 3 Jul 11 22:43 data drwxrwxr-x+ 4 peter peter 14 Nov 9 09:42 Documents