Score:0

How to change the owner in Linux directory

pg flag

Can someone please assist with this case. I have a folder called media. I need to change the owner for that directory.

drwxr-xr-x. 2 root root 6 Jun 21 2021 media

sudo chown prod media then it got changed to prod.

drwxr-xr-x. 2 prod root 6 Jun 21 2021 media

But here i have another root, that one also needs to be change to PROD.

Please explain for this attempt.

Score:1
cn flag

"another root" is the group.

With

sudo chown prod media

you change the owner to prod.

With

sudo chown prod:prod media

you can change also the group to prod.

sudo chown :prod media

would only change the group.

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.