Why do I get an "Operation not permitted" error when running duplicity as sudo?
10,041
Solution 1
I receive this error because duplicity cannot chown the restored home folder /media/liamzebedee/X/home
to its original owner root. When restoring to /
this works.
Solution 2
whats the filesystem of your usb drive?
the error occures generally when resetting the permissons/ownership of the restored file fails. this can have many reasons. e.g.
- target filesystem does not support these
- you are not root, only root can set ownership
.. ede
Related videos on Youtube
![liamzebedee](https://i.stack.imgur.com/QZiu3.jpg?s=256&g=1)
Author by
liamzebedee
Updated on September 18, 2022Comments
-
liamzebedee almost 2 years
Currently I'm backing up my
/home/
folder to a usb mounted on/media/liamzebedee/X
using duplicity. When I go to restore the folder to the USB however (using sudo), I get the error -Error '[Errno 1] Operation not permitted: '/media/liamzebedee/X/home'' processing .
The files are all restored, why do I get this error?
-
Admin almost 9 yearsAlso, see the Launchpad bug on this issue: bugs.launchpad.net/duplicity/+bug/415619
-