nerdexam
GIAC

GSEC · Question #234

Which of the following commands is used to change file access permissions in Linux?

The correct answer is C. chmod. The chmod command is the standard Linux utility for modifying file and directory access permissions.

Linux and Cryptography

Question

Which of the following commands is used to change file access permissions in Linux?

Options

  • Achgrp
  • Bchperm
  • Cchmod
  • Dchown

How the community answered

(40 responses)
  • A
    5% (2)
  • B
    3% (1)
  • C
    83% (33)
  • D
    10% (4)

Why each option

The chmod command is the standard Linux utility for modifying file and directory access permissions.

Achgrp

chgrp changes the group ownership of a file, not its permission bits.

Bchperm

chperm is not a valid Linux command and does not exist in standard distributions.

CchmodCorrect

chmod (change mode) is the POSIX-standard Linux command used to set or modify read, write, and execute permissions on files and directories for the owner, group, and others. It accepts both symbolic (e.g., chmod u+x) and octal (e.g., chmod 755) notation. It is the only command specifically designed to alter permission bits on the filesystem.

Dchown

chown changes the user and/or group ownership of a file, not the permission bits.

Concept tested: Linux chmod command for file permissions

Source: https://man7.org/linux/man-pages/man1/chmod.1.html

Topics

#chmod#file permissions#Linux commands

Community Discussion

No community discussion yet for this question.

Full GSEC Practice