Software⏱️ 2 min read📅 2026-05-31
How to Fix: rsync error: failed to set times on "/foo/bar": Operation not permitted
rsync error: failed to set times on "/foo/bar": Operation not permitted
Quick Answer: Try running rsync with the --set-times option, which forces rsync to update file timestamps regardless of permission issues.
📋 Table of Contents
The error 'Operation not permitted' when trying to set times on a file using rsync is often caused by the system's file system permissions. This error can occur even if the files are being transferred successfully.
💡 Why You Are Getting This Error
- [Cause]
🔧 Proven Troubleshooting Steps
Method 1: Changing File Permissions
- Step 1: Open a terminal and navigate to the directory containing the file you're trying to transfer.
Method 2: Using rsync with --set-times Option
- Step 1: Run the following command to set the times on the file before transferring it: `rsync -a --set-times /source/path/ /destination/path/`
✨ Wrapping Up
[Wrap-up]
❓ Frequently Asked Questions
Step 1: Open a terminal and navigate to the directory containing the file you're trying to transfer.
Step 1: Run the following command to set the times on the file before transferring it: `rsync -a --set-times /source/path/ /destination/path/`
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Pc crashes shortly after launching game, possible cause: outdated grap
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: FPS drops
FPS drops in games can be caused by high system resource usage, outdat