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.
findmnt -T /folder1/folder2if you're not sure – steeldriver Dec 10 '22 at 01:20TARGET /folder1/folder2 .... SOURCE /dev/mapper/{GUID} ... FSTYPE ext4 .... OPTIONS rw,nosuid,nodev,noexec,noatime,nodiratime... Not sure what to make of this.
– Mumfi Dec 12 '22 at 09:40sudo chown -R user1 /folder1/folder2. To my understanding that means I gave user1 ownership of all subfolders. I don't see why that helped. Does it make sense to you? – Mumfi Dec 12 '22 at 09:59