I had thought it was this command: sudo chmod g+a -R directory path
but it's not, apparently.
any help would be appreciated
I had thought it was this command: sudo chmod g+a -R directory path
but it's not, apparently.
any help would be appreciated
what permissions do you want to add?
fyi 'a' is a synonym for 'all' e.g.Code:chmod g+r mydir # add read permission to members of primary group chmod g+w mydir # add write permission to members of primary group
Code:chmod a+w # add write permission for owner, group and others
So you know about octal notation for permissions? Then you can simply useBut judging from your first post you want full rights for the group applied recursively. Assuming you only want execute permissions for directories and files where someone allready has execute permission, useCode:chmod 777 mydirYou can also set the group permissions to be identical to the owner permissions:Code:chmod -R g+rwX mydirElse read the manual page for chmod:Code:chmod g=u mydirCode:man chmod
That depends... what are you trying to achieve exactly?
There's nothing stopping you from using octal permissions directly with chmod i.e. chmod -R 777 dir however it's rarely a good idea imho to recursively make all files executable to everyone; if you want to make all files and directories in dir readable and writeable to everyone then you could use
[note that's a CAPITAL X] which will make all the directories rwx for owner (u) group (g) and others (o) but only give execute permission to regular files if they already have the execute bit setCode:chmod -R a=rwX dir
Hope this helps
Bookmarks