I have a directory that I want to move (with its contents, recursively) to another's user home directory. I don't have permissions to write to that user's home directory, but I know his password.
I know how to copy the directory using scp -r
(see here). However, both directories are located in the same file system, so if I want to move the directory, copying and then removing the original is inefficient. Is there a way to move the directory, without using sudo
(I don't know the root's password, but I know the other user's password)?
Related: See here for how to move a single file. That post however doesn't work for directories.