I'm using an ubuntu VM machine on Azure. The goal is to allow user1 to to upload files to /folder1/folder2 through a scp command. Right now I get Permission denied.
I run the commands directly on the VM in azure. whoami results in root.
I have run
sudo chown user1 /folder1/folder2to change ownership.setfacl -m u:user1:rwx /folder1/folder2to give user1 permission.
But when I run
ls -l /folder1/folder2to view permissions, nothing has changed anduser1still doesn't have permission to transfer the file.
I have no idea what I'm doing wrong. The commands all seem to be successful when running them as root.