300-300 · Question #108
When a share on a Samba server is accessed, how does Samba determine the share's configuration?
The correct answer is E. Samba first checks for a section with the same name, then for a username to use in conjunction. When a share is accessed on a Samba server, Samba follows a specific lookup order: it first checks smb.conf for a section [sharename] matching the requested name, and if none is found, it checks whether a system user exists with that name to use with the [homes] share - this is…
Question
Options
- AIf Samba cannot find a share with the requested name, a new user is created with the add user
- BIf Samba is configured as a logon server it searches for a user with the corresponding name to
- CIf Samba is configured as a print server, all shares are looked up only in the system's printcap. If
- DSamba searches a file system folder with the name of the share within the path specified by share
- ESamba first checks for a section with the same name, then for a username to use in conjunction
How the community answered
(35 responses)- A3% (1)
- B9% (3)
- C3% (1)
- E86% (30)
Explanation
When a share is accessed on a Samba server, Samba follows a specific lookup order: it first checks smb.conf for a section [sharename] matching the requested name, and if none is found, it checks whether a system user exists with that name to use with the [homes] share - this is the core behavior described in E, making it correct.
Why the distractors are wrong:
- A is fabricated - Samba does not create new system users dynamically when a share is missing; that's not part of the lookup process.
- B is a misapplication - logon server functionality relates to domain authentication, not share name resolution.
- C is a half-truth gone wrong -
printcapmay be consulted for printer shares, but it does not replace the primarysmb.conflookup for all shares, and shares are not "looked up only" there. - D invents a behavior - Samba does not scan the filesystem for folders matching the share name; configuration comes from
smb.conf, not directory discovery.
Memory tip: Think of Samba's lookup as "named section first, then named user." The [homes] magic only kicks in as a fallback when no explicit [sharename] section exists - Samba tries the explicit config before getting clever.
Topics
Community Discussion
No community discussion yet for this question.