Courseiva
Administrative TasksmediumMultiple ChoiceObjective-mapped

LPIC-1 Administrative Tasks Practice Question

An administrator wants to change the owner of all files in /data to user 'web' without changing the group. Which command should be used?

⚠ Common exam trap

A common mix-up: candidates assume a colon is required or that `chown` without `-R` applies recursively, leading them to pick options that change the group or fail to affect all files.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

chown -R web /data

`chown -R web /data` changes the owner of all files and directories recursively under /data to user 'web' while leaving the group ownership unchanged. The `-R` flag ensures recursion, and omitting a colon or dot after the username means only the owner is modified.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • chown -R web:web /data

    Why it's wrong here

    This changes both owner and group to web, which is not desired.

  • chown -R web /data

    Why this is correct

    This recursively changes only the owner to web.

  • chown web /data

    Why it's wrong here

    This changes owner for /data itself but not recursively.

  • chown web:web /data

    Why it's wrong here

    This changes owner and group but not recursively.

About these practice questions

One of 527 original LPIC-1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.