mv command error, operation not permitted

ARKansans

Dabbler
Joined
Jul 26, 2018
Messages
35
I'm moving some data between datasets on the same HDD.
Using the command
Code:
mv /mnt/Shows3/Shows3/Shows/Supergirl /mnt/Shows3/Shows2/

often gives me the error
Code:
mv: chmod: /mnt/Shows3/Shows2/Shows/Supergirl/Season 06/Supergirl.S06E07 - Fear Knot [1080p] [BluRay].mkv: Operation not permitted

Also ends with
Code:
mv: chmod: /mnt/Shows3/Shows2/Shows/Supergirl/Season 03/Supergirl.S03E22 - MakeIt Reign [1080p] [Blu-Ray] [DTS 5.1].mkv: Operation not permitted
mv: chmod: /mnt/Shows3/Shows2/Shows/Supergirl/Season 03: Operation not permitted
mv: chmod: /mnt/Shows3/Shows2/Shows/Supergirl: Operation not permitted
mv: /bin/cp /mnt/Shows3/Shows3/Shows/Supergirl /mnt/Shows3/Shows2/Shows/Supergirl: terminated with 1 (non-zero) status

TrueNas moved the file over but didn't delete the source file.
When I check the file
Code:
root@freenas[...ows3/Shows3/Shows/Supergirl/Season 06]# ls -la Supergirl.S06E07\ -\ Fear\ Knot\ \[1080p\] [BluRay\].mkv
-rwxrwx---  1 johan  Shared  3234281644 Jun 28  2022 Supergirl.S06E07 - FearKnot [1080p] [BluRay].mkv

root@freenas[...ows3/Shows3/Shows/Supergirl/Season 06]# getfacl Supergirl.S06E07\ -\ Fear\ Knot\ \[1080p\]\[BluRay\].mkv
# file: Supergirl.S06E07 - Fear Knot [1080p] [BluRay].mkv
# owner: johan
# group: Shared
            owner@:rwxp--aARWcCos:-------:allow
            group@:rwxp--a-R-c--s:-------:allow
         everyone@:------a-R-c--s:-------:allow


Then I tried the same on another show.
Code:
mv /mnt/Shows3/Shows3/Shows/Arrow /mnt/Shows3/Shows2/

That gave me no errors, and TrueNas deleted the source file, I checked the file before running the mv command.
Code:
root@freenas[/mnt/Shows3/Shows3/Shows/Arrow/Season 01]# ls -la
total 38277320
drwxrwx---   2 johan  Shared          48 Aug 30  2021 .
drwxrwx---  10 johan  Shared          10 Jul  9  2021 ..
-rwxrwx---   1 johan  Shared       44226 Sep 20  2021 Arrow.S01E01 - Pilot [1080p] [BluRay] [AC-3 5.1].en.srt
-rwxrwx---   1 johan  Shared  1772511322 Jun 29  2021 Arrow.S01E01 - Pilot [1080p] [BluRay] [AC-3 5.1].mkv

root@freenas[/mnt/Shows3/Shows3/Shows/Arrow/Season 01]# getfacl Arrow.S01E01\ -\
 Pilot\ \[1080p\]\ \[BluRay\]\ \[AC-3\ 5.1\].mkv
# file: Arrow.S01E01 - Pilot [1080p] [BluRay] [AC-3 5.1].mkv
# owner: johan
# group: Shared
            owner@:rwxp--aARWcCos:-------:allow
            group@:rwxp--a-R-c--s:-------:allow
         everyone@:------a-R-c--s:-------:allow

root@freenas[/mnt/Shows3/Shows3/Shows/Arrow]# getfacl Season\ 01
# file: Season 01
# owner: johan
# group: Shared
            owner@:rwxp--aARWcCos:-------:allow
            group@:rwxp--a-R-c--s:-------:allow
         everyone@:------a-R-c--s:-------:allow


All permissions seem to be the same, but yet TrueNas is only able to delete some sources and not all.
Am I overlooking something or?
 
Last edited:
Top