1 Answer
- Newest
- Most votes
- Most comments
0
Sounds like your using the ec2-user to ssh into the box. You will not be able to modify files you don not have access too or do not own. This is standard linux permissions.
You should be able to upload files to your home directory, usually /home/ec2-user
From here you can use sudo to move/copy files to areas of the disk that needs elevated privilages. You can even use Sudo to change ownership of files.
Relevant content
- Accepted Answerasked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Yes, I see that now. I can successfully copy a test file to the user directory. Is there another way to accomplish what I'm trying to do? Or is copying the files to the user directory and then copying them over to the proper directory the only way to go? And also, if I do that, will the permissions persist when I copy them to the right directory? Meaning will they inherit the correct permissions in the correct directory so that everything works as it should?
Additionally, one of the other problems I was hoping to fix, since they seem to be connected, is the ability for Jetpack to be able to restore things. Currently it cannot as the user doesn't have those permissions.