Which Linux command is used to grant or revoke file permissions?

Study for the Tanium Technical Account Manager Interview Test. Prepare with flashcards and multiple choice questions, each with hints and explanations. Ace your interview with confidence!

Multiple Choice

Which Linux command is used to grant or revoke file permissions?

Explanation:
In Linux, file permissions are managed with the chmod command, which lets you grant or revoke access for the owner, the group, and others. You can add permissions with +, remove them with -, or set exact permissions with =. For example, and you can see how it works: chmod u+r file grants the owner read access; chmod go-w report.txt revokes write access from the group and others; chmod a+x script.sh makes the file executable by everyone. Using numeric modes like 755 or 644 is another common way to set multiple bits at once. Other commands don’t adjust permission bits directly: chown changes who owns the file, chgrp changes its group, and sudo runs commands with elevated privileges.

In Linux, file permissions are managed with the chmod command, which lets you grant or revoke access for the owner, the group, and others. You can add permissions with +, remove them with -, or set exact permissions with =. For example, and you can see how it works: chmod u+r file grants the owner read access; chmod go-w report.txt revokes write access from the group and others; chmod a+x script.sh makes the file executable by everyone. Using numeric modes like 755 or 644 is another common way to set multiple bits at once. Other commands don’t adjust permission bits directly: chown changes who owns the file, chgrp changes its group, and sudo runs commands with elevated privileges.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy