Score:0

How to change permissions just for [others] group

mz flag

I have multiple subdirectories but I want to use '''chmod''' command but I want it to apply only for the [others] section. For example :

Europe : drwx-r--r--
Australia : drw-rx-r--

And I want to change only the Others section, and the other 2 to leave unchanged.

So it will end up :

Europe : drwx-r--rw-
Australia : drw-rx-rw-

David avatar
cn flag
Sounds like a good time to use man chmod
Score:1
cn flag

As well as chmod, you can also use setfacl to change permissions and add additional groups.

getfacl will show all permissions currently set to a file or directory

To change the permissions, you can use

setfacl -m o::rw- $path

This will modify the permission of others to include rw

Score:0
cn flag

chmod o+w will give write permission to the 'others' group.

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.