I am user_a
and I have a password for user_b
, so I can use su user_b
to do things as user_b
.
I want to copy a file from user_a
to user_b
.
I don't want other users besides user_a
and user_b
to see the file, and I don't have root on the machine. So the usual trick of moving the file to /tmp is not acceptable.
cat
example, but theln
example worked for me from this answer: https://unix.stackexchange.com/a/185826/57734 – Alex Shroyer Feb 04 '20 at 15:02