You have been subscribed to a public bug: When a "cp -puR A B" or a "cp -a A B" command is executed in a NFS environment the message "cp: preserving permissions for '_file_': Operation not supported" is displayed with a return code 1 on the target system. 'A' is a exported directory from an Ubuntu 24.04 Noble, 'B' is an Ubuntu target directory. The /etc/exports in Noble source system come from an Ubuntu 22.04 Jammy and is unchanged. These cp commands worked fine if the source directory was in an older Ubuntu (before Noble) shared directory.
The results of these "error" cp commands are OK but the return code 1 is a problem in a sh script. EXAMPLE OF /etc/exports FILE FROM A SOURCE SYSTEM: /home *.cyclope*(rw,sync,no_subtree_check,no_root_squash) /media/sys-DATA *.cyclope*(rw,sync,no_subtree_check,no_root_squash) /media/MINOS-DATA *.cyclope*(rw,sync,no_subtree_check,no_root_squash) /media/PONTOS-home *.cyclope*(rw,sync,no_subtree_check,no_root_squash) /media/PONTOS-DATA *.cyclope*(rw,sync,no_subtree_check,no_root_squash) /media/THEA-DATA *.cyclope*(rw,sync,no_subtree_check,no_root_squash) /media/SYSRAM *.cyclope*(rw,sync,no_subtree_check,no_root_squash,fsid=49c1fb21-cc31-4620-8dd8-2422c3d4f59c) EXAMPLE OF cp COMMANDS EXECUTION: cyclope@MIMAS:~$ cp -puR /media/MINOS§MINOS-DATA/cmn/bin /home/cyclope/zut cp: conservation des droits pour «/home/cyclope/zut/bin/ugrubcg»: Opération non supportée cp: conservation des droits pour «/home/cyclope/zut/bin/s-hdd»: Opération non supportée cp: conservation des droits pour «/home/cyclope/zut/bin/mdcmpf»: Opération non supportée cp: conservation des droits pour «/home/cyclope/zut/bin/adelvir»: Opération non supportée cp: conservation des droits pour «/home/cyclope/zut/bin/vmstart»: Opération non supportée cyclope@MIMAS:~$ cp -puR /media/MINOS§MINOS-DATA/cmn/bin /home/cyclope/zut; echo $? cp: conservation des droits pour «/home/cyclope/zut/bin»: Opération non supportée 1 ** Affects: ubuntu Importance: Undecided Status: New -- cp: preserving permissions for ' ': Operation not supported in Noble NFS https://bugs.launchpad.net/bugs/2087769 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs