Score:0

Changing folder ownership/permission has no effect

dm flag

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

But when I run

  • ls -l /folder1/folder2 to view permissions, nothing has changed and user1 still 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.

hr flag
What is the filesystem on which /folder1/folder2 resides? How is it mounted? Use `findmnt -T /folder1/folder2` if you're not sure
Mumfi avatar
dm flag
@steeldriver This is what I get: TARGET /folder1/folder2 .... SOURCE /dev/mapper/{GUID} ... FSTYPE ext4 .... OPTIONS rw,nosuid,nodev,noexec,noatime,nodiratime... Not sure what to make of this.
Mumfi avatar
dm flag
@steeldriver I got it to work when adding the -R option, i.e. `sudo 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?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.