Elastic Cloud Compute

Moving EC2 User Files without Moving Permissions

“From the Mailbag” gives us at AWS w/ .NET the opportunity to answer questions from our users. Got a question for us? Ask us here.

Photo by Joanna Kosinska on Unsplash

Question

I have an EC2 instance and I need to move files from one directory to another and I need to make sure the files belong to a new user. I have tried the mv command, but the old user’s permissions stay intact. What am I missing?