Last Updated on March 24, 2021 by Admin
A company is creating a new website to be hosted on a Linux server. The system administrator creates the group “webteam” and assigns team members to it. The administrator then creates the directory “webpages” for storing files. Later that day, one of the team members reports of being unable to create files in the “webpages” directory or subdirectories. The administrator uses the ls -l command to view the file permissions. The result displayed is drwxr-xr–. What should the administrator do to allow team members to add and edit files?
- Add the user to the webteam group.
- Issue the command chmod 775 –R webteam.
- Issue the command chmod 775 –R webpages.
- Make the user the owner of the directory and subdirectories.
Answers Explanation & Hints:
The permission of drwxr-x-r- indicates that the owner of the directory may read, write, and execute the files in the directory, the group members may read and execute the files in the directory but cannot create files, and all users may read files in the directory. By issuing the command chmod 775 –R webpages, the group members can create and modify files in the directory and subdirectories. The user is already a member in the group because the user can navigate in the directory and subdirectories.