Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
116
rated 0 times [  116] [ 0]  / answers: 1 / hits: 249266  / 1 Year ago, wed, march 15, 2023, 4:32:38

I have two users, user1 and user2, that are both members of groupA. user2 has a folder in their home directory called folderA. If they wish to allow read-write-execute permissions for all members of groupA, how would they do this?



What if folderA contains many files and additional folders that also need to have read-write-execute permission?



Information regarding groups is a little 'spotty' across the web, so I am putting my question here in the hope someone posts a clear answer that might help others out too.



Thanks!


More From » permissions

 Answers
4

FolderA will first need to be part of groupA - the folder's owner or root can perform this operation


chgrp groupA ./folderA

Then groupA will need rwx permissions of the folder


chmod g+rwx  ./folderA

There are options in the chgrp and chmod commands to recurse into the directory if required.


[#24416] Wednesday, March 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oneeme

Total Points: 340
Total Questions: 110
Total Answers: 133

Location: Ghana
Member since Fri, Oct 21, 2022
2 Years ago
;