nerdexam
CompTIA

XK0-005 · Question #587

A developer wants to ensure that all files and folders created inside a shared folder named /Group00DEV inherit the group name of the parent folder. Which of the following commands will help achieve…

The correct answer is D. chmod g+s /Group00DEV/. The chmod command is used to change the permissions of files and directories on Linux systems. The g+s option sets the setgid bit on a directory, which means that all files and folders created inside that directory will inherit the group name of the parent directory. This…

System Management

Question

A developer wants to ensure that all files and folders created inside a shared folder named /Group00DEV inherit the group name of the parent folder. Which of the following commands will help achieve this goal?

Options

  • Achmod g+x /Group00DEV/
  • Bchmod g+w /Group00DEV/
  • Cchmod g+r /Group00DEV/
  • Dchmod g+s /Group00DEV/

How the community answered

(27 responses)
  • B
    7% (2)
  • C
    4% (1)
  • D
    89% (24)

Explanation

The chmod command is used to change the permissions of files and directories on Linux systems. The g+s option sets the setgid bit on a directory, which means that all files and folders created inside that directory will inherit the group name of the parent directory. This command can help the developer ensure that all files and folders created inside the /GroupOODEV directory have the same group name as /GroupOODEV.

Topics

#Linux Permissions#SGID#chmod#File System Management

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice