Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title "Can't change file time" error when copying files.
Ref. No. QNX.000009704
Category(ies) Utilities, Network, Filesystem
Issue When attempting to copy a file, we get the following error:
  Can't change file time (date copied) <filename>: Operation not permitted.
What does this mean?


Solution This error means that the copy worked, but 'cp' was unable to modify the file time of the destination to match that of the source.  Typically this occurs because the destination file already existed, was not owned by the user (although the user had write permission), and the user is not running as root.  If the user owned the desination, ran as root, or were copying to a new destination file (thus owned the destination), 'cp' would be able to duplicate the file time.