nerdexam
CompTIA

XK0-004 · Question #408

Joe is no longer employed by a company, and Ann is taking over his projects. Several team members work out of the directory, including Ann. The administrator needs to assign ownership of all of…

The correct answer is C. Option C. Using the “chown” command recursively is to combine it with the “find” command in find files matching a given pattern and changing their owners and groups. $ find <path> -name <pattern> -exec chown <user>:<group> {} \;

System Management

Question

Joe is no longer employed by a company, and Ann is taking over his projects. Several team members work out of the directory, including Ann. The administrator needs to assign ownership of all of Joe's files in the /projects directory to Ann. Which of the following should the administrator run to accomplish this task?

Exhibit

XK0-004 question #408 exhibit

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    7% (2)
  • C
    90% (27)

Explanation

Using the “chown” command recursively is to combine it with the “find” command in find files matching a given pattern and changing their owners and groups. $ find <path> -name <pattern> -exec chown <user>:<group> {} ;

Topics

#chown#file ownership#recursive ownership#user management

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice