Courseiva
File Sharing and SambamediumMultiple SelectObjective-mapped

LPIC-2 File Sharing and Samba Practice Question

An administrator needs to configure Samba to allow guest access to a share. Which two parameters must be set?

⚠ Common exam trap

Many exam-takers think `security = share` alone enables guest access, but that parameter is obsolete and does not actually allow anonymous connections without `guest ok = yes` and `map to guest = Bad User`.

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

guest ok = yes in the share definition

Setting `guest ok = yes` in the share definition explicitly allows guest (anonymous) access to that specific Samba share. Without this parameter, the share will require authentication even if other guest-related settings are configured globally.

Answer analysis

Option-by-option breakdown

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

  • security = share

    Why it's wrong here

    security = share is deprecated, not required for guest access.

  • guest account = nobody

    Why it's wrong here

    While often set, it is not strictly required; default is nobody.

  • guest ok = yes in the share definition

    Why this is correct

    This enables guest access for the share.

  • map to guest = Bad User in the [global] section

    Why this is correct

    This maps authentication failures to the guest account.

About these practice questions

One of 507 original LPIC-2 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-2 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-2 exam.