nerdexam
CompTIA

FC0-U41 · Question #35

Which of the following switches of the XCOPY command copies file ownerships and NTFS permissions on files while copying the files?

The correct answer is D. /o. The /o switch of the XCOPY command copies file ownerships and NTFS permissions on files while copying them. In NTFS file system, when a new file is created, it inherits permissions from its new parent directory. This might cause security issues when a user copies files. In this…

Applications & Software

Question

Which of the following switches of the XCOPY command copies file ownerships and NTFS permissions on files while copying the files?

Options

  • A/p
  • B/s
  • C/r
  • D/o

How the community answered

(33 responses)
  • A
    9% (3)
  • B
    15% (5)
  • C
    3% (1)
  • D
    73% (24)

Explanation

The /o switch of the XCOPY command copies file ownerships and NTFS permissions on files while copying them. In NTFS file system, when a new file is created, it inherits permissions from its new parent directory. This might cause security issues when a user copies files. In this case users who did not have access to the files might gain access on them. Therefore, in order to retain original file permissions, users have to use the XCOPY /o command. Answer option B is incorrect. The /s switch of the XCOPY command is used to copy directories and subdirectories except empty directories. Answer option A is incorrect. The /p switch of the XCOPY command prompts the user before creating each destination file. Answer option C is incorrect. The /r switch of the XCOPY command overwrites Read only files while copying data.

Topics

#XCOPY command#NTFS permissions#file ownership#command-line switches

Community Discussion

No community discussion yet for this question.

Full FC0-U41 Practice