I have a file named foo whose permissions are -rwxr-x--- root and I'm neither the user (root) nor in the group. I have another file named bar, which I want to append to foo. I've tried
sudo cat bar >> foo
but this fails with foo: Permission denied.