GIAC Foundational Cybersecurity Technologies Practice Test

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for the GIAC Foundational Cybersecurity Technologies Test with interactive quizzes. Use flashcards and multiple choice questions with hints and detailed explanations. Ace your exam with confidence!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which command is typically used to change user privileges in Unix-like operating systems?

  1. chmod

  2. chown

  3. su

  4. sudo

The correct answer is: su

The command typically used to change user privileges in Unix-like operating systems is "sudo." This command allows a permitted user to run a command as the superuser or another user, as specified by the security policy in the system. It is crucial for performing administrative tasks, as it elevates the user's permissions momentarily to execute a specific command without needing to change the user account entirely. In contrast, while "chmod" is used for changing file permissions and "chown" is for changing file ownership, neither of these commands alters the user operating within the shell environment. The "su" command is also related to user privileges; however, it is primarily used to switch to another user account, often requiring the target user’s password. "sudo" is more common for single-command privilege escalation, making it the correct answer for changing user privileges in many cases.