I think I'm running my DietPi server in a pretty out-of-the-box manner as regards ownership and permissions. I move files in via NFS from another Linux box, and when they get there they're owned by dietpi:dietpi.
Now, when it comes to moving, copying, renaming and deleting the files once they're on the server, my method is to get in via SSH, drop into root and work on them that way. The user-level account username I've created for SSH doesn't have permission to do much of anything with "dietpi's files". I don't know how to "be" dietpi.
My question would be, and it occurs to me this is a very obvious and basic question, and is just something missing from my Linux knowledge: what's a best-practice method for having non-root control of "my files", when they're owned by an account I don't use (dietpi)? Are there multiple options?
I want to avoid being root as much as possible when it comes to file management. I don't trust myself.
