alice is the webmaster for a small website^2 whose files are contained under ~/W
ID: 3883272 • Letter: A
Question
alice is the webmaster for a small website^2 whose files are contained under ~/WWW. The website is expanding, and now a few people will maintain the site. The system administrator created a group, webadmin, containing users (currently, Alice and chuck) who should be able to modify the website. Adjust the permissions for ~/WWW and everything contained in it, so that: File owner permissions are unchanged. Anyone in group webadmin can change into, and can create, delete, and list items in, ~/WWW or any of its subdirectories. Anyone in group webadmin can read or modify, but not execute, any file in ~/WWW or any of its subdirectories. All other users should be able to change into, and list (but not create or delete) items in, ~/WWW or any of its subdirectories. All other users should be able to read, but not modify or execute, any file in ~/WWW or any of its subdirectories.Explanation / Answer
chmod -R g=rw,o=r ~/WWW
Here chmod is used to change permission, -R option changes the permission of all the subdirectories and files in ~/WWW. g refers to the permission given to group users which is read and write but not execute. o refers to the permission given to other users which is read but not write or execute. ~/WWW - directory specified whose permission is to be changed.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.