LX0-104 · Question #621
In the [global] section of the smb.conf file, the following parameter is set: map to guest = Bad Password Which of the following statements are true? (Select TWO correct answers.)
The correct answer is A. Users using an invalid password are treated as a guest account. D. This parameter is required to setup public shares on the samba server when the security parameter. When map to guest = Bad Password is set, users entering an invalid password are treated as a guest account, which is a common way to set up public shares when security = user is also configured.
Question
Options
- AUsers using an invalid password are treated as a guest account.
- BUsers using an invalid password are rejected from accessing shares.
- CUsers will receive warning messages that they are using an incorrect password
- DThis parameter is required to setup public shares on the samba server when the security parameter
How the community answered
(30 responses)- A90% (27)
- B3% (1)
- C7% (2)
Why each option
When `map to guest = Bad Password` is set, users entering an invalid password are treated as a guest account, which is a common way to set up public shares when `security = user` is also configured.
With `map to guest = Bad Password`, if a user provides a correct username but an incorrect password, Samba will automatically map that connection to the guest account, granting guest-level access.
This statement is false because `map to guest = Bad Password` specifically causes users with invalid passwords to be mapped to a guest account, rather than being rejected from accessing shares.
Samba typically does not provide explicit warning messages about incorrect passwords; it either grants access as a guest based on the `map to guest` setting or rejects the connection.
This parameter is frequently used in conjunction with `security = user` to enable public or anonymous shares, allowing users who fail authentication to be treated as a guest and access shares configured for guest access.
Concept tested: Samba guest access configuration
Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.