mc problem: cannot chmod target file, operation not permitted

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
i am using mc to move files from one pool to another and i am getting this error
cannot chmod target file, operation not permitted - i have to untick the option “Preserve attributes“ for the move to work

is there anyway i can use mc move data to another pool and Preserve attributes ?

thank you
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
Some datasets might not be configured to store certain attributes. You need to compair the settings of the datasets the data is being placed in vs the dataset the data is sourced from.
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
Some datasets might not be configured to store certain attributes. You need to compair the settings of the datasets the data is being placed in vs the dataset the data is sourced from.
i don't think that is the problem. if i use directory opus on my windows machine it works - the only problem is it downloads to windows and uploads again. i think this is slower and i don't have ecc memory on windows
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
output of zfs get aclmode? You have windows datasets and the chmod/chown cmd do not work on windows datasets. This is why it works on windows but does not work on the cli. Windows will not transfer to the client if you are moving data in the same share.
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
where should i run zfs get aclmode ?
Code:
root@freenas:/mnt # zfs get aclmode
NAME                                                                    PROPERTY  VALUE        SOURCE
Storage                                                                 aclmode   restricted   local
Storage/iocage                                                          aclmode   passthrough  local
Storage/iocage/download                                                 aclmode   passthrough  local
Storage/iocage/download/11.2-RELEASE                                    aclmode   passthrough  inherited from Storage/iocage/download
Storage/iocage/images                                                   aclmode   passthrough  local
Storage/iocage/jails                                                    aclmode   passthrough  local
Storage/iocage/jails/MySQL                                              aclmode   passthrough  inherited from Storage/iocage/jails
Storage/iocage/jails/MySQL/root                                         aclmode   passthrough  inherited from Storage/iocage/jails
Storage/iocage/log                                                      aclmode   passthrough  local
Storage/iocage/releases                                                 aclmode   passthrough  local
Storage/iocage/releases/11.2-RELEASE                                    aclmode   passthrough  inherited from Storage/iocage/releases
Storage/iocage/releases/11.2-RELEASE/root                               aclmode   passthrough  inherited from Storage/iocage/releases
Storage/iocage/releases/11.2-RELEASE/root@MySQL                         aclmode   -            -
Storage/iocage/templates                                                aclmode   passthrough  local
Storage/jails                                                           aclmode   restricted   inherited from Storage
Storage/jails/.warden-template-pluginjail-11.0-x64                      aclmode   restricted   inherited from Storage
Storage/jails/.warden-template-pluginjail-11.0-x64@clean                aclmode   -            -
Storage/jails/.warden-template-standard-10.3-x64                        aclmode   restricted   inherited from Storage
Storage/jails/.warden-template-standard-10.3-x64@clean                  aclmode   -            -
Storage/jails/MySQL                                                     aclmode   restricted   inherited from Storage
Working                                                                 aclmode   restricted   local
freenas-boot                                                            aclmode   discard      default
freenas-boot/.system                                                    aclmode   discard      default
freenas-boot/.system-e8af498e                                           aclmode   passthrough  local
freenas-boot/.system/configs-808e2d5e21e94635952abf6f422154e4           aclmode   discard      default
freenas-boot/.system/cores                                              aclmode   discard      default
freenas-boot/.system/rrd-808e2d5e21e94635952abf6f422154e4               aclmode   discard      default
freenas-boot/.system/samba4                                             aclmode   discard      default
freenas-boot/.system/syslog-808e2d5e21e94635952abf6f422154e4            aclmode   discard      default
freenas-boot/.system/webui                                              aclmode   discard      default
freenas-boot/ROOT                                                       aclmode   discard      default
freenas-boot/ROOT/11.1-RELEASE                                          aclmode   discard      default
freenas-boot/ROOT/11.1-U1                                               aclmode   discard      default
freenas-boot/ROOT/11.1-U2                                               aclmode   discard      default
freenas-boot/ROOT/11.1-U4                                               aclmode   discard      default
freenas-boot/ROOT/11.1-U5                                               aclmode   discard      default
freenas-boot/ROOT/11.2-RELEASE                                          aclmode   discard      default
freenas-boot/ROOT/11.2-RELEASE-U1                                       aclmode   discard      default
freenas-boot/ROOT/11.2-U2.1                                             aclmode   discard      default
freenas-boot/ROOT/11.2-U3                                               aclmode   discard      default
freenas-boot/ROOT/11.2-U3@2018-02-11-03:04:34                           aclmode   -            -
freenas-boot/ROOT/11.2-U3@2018-02-27-10:15:54                           aclmode   -            -
freenas-boot/ROOT/11.2-U3@2018-03-28-07:41:15                           aclmode   -            -
freenas-boot/ROOT/11.2-U3@2018-06-11-11:25:41                           aclmode   -            -
freenas-boot/ROOT/11.2-U3@2018-12-07-18:09:13                           aclmode   -            -
freenas-boot/ROOT/11.2-U3@2018-12-29-22:23:12                           aclmode   -            -
freenas-boot/ROOT/11.2-U3@2019-03-08-14:27:33                           aclmode   -            -
freenas-boot/ROOT/11.2-U3@2019-03-29-19:24:06                           aclmode   -            -
freenas-boot/grub                                                       aclmode   discard      default
freenas-boot/grub@Pre-Upgrade-FreeNAS-5f91faf7204d20c5a639d34396e74b2b  aclmode   -            -
freenas-boot/grub@Pre-Upgrade-9.10-STABLE-201604181743                  aclmode   -            -
freenas-boot/grub@Pre-Upgrade-9.10-STABLE-201604261518                  aclmode   -            -
freenas-boot/grub@Pre-Upgrade-9.10-STABLE-201605021851                  aclmode   -            -
freenas-boot/grub@Pre-Upgrade-9.10-STABLE-201605240427                  aclmode   -            -
freenas-boot/grub@Pre-Upgrade-9.10-STABLE-201606072003                  aclmode   -            -
freenas-boot/grub@Pre-Upgrade-9.10-STABLE-201606270534                  aclmode   -            -
freenas-boot/grub@Pre-Upgrade-9.10.1
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Code:
root@freenas:/mnt # zfs get aclmode
NAME                                                                    PROPERTY  VALUE        SOURCE
Storage                                                                 aclmode   restricted   local
Storage/jails                                                           aclmode   restricted   inherited from Storage
Storage/jails/.warden-template-pluginjail-11.0-x64                      aclmode   restricted   inherited from Storage
Storage/jails/.warden-template-standard-10.3-x64                        aclmode   restricted   inherited from Storage
Storage/jails/MySQL                                                     aclmode   restricted   inherited from Storage
Working                                                                 aclmode   restricted   local


well your root pool called Storage has been set to a windows share, this is going to cause a huge problem most likely. Some of your jails have been setup as windows datasets and the Working dataset is a windows dataset. So everything in that list will fail if you try to chmod/chown anything on them.

normally you don't share out your root dataset and you don't make any dataset that is a jail or jail mounted a windows dataset.
 
Top