LX0-103 · Question #175
If the path parameter is not set for a share in the smb.conf file, the share will refer to which of the following directories?
The correct answer is E. ~/.samba. In Samba's smb.conf, when the path parameter is omitted for a share, the share defaults to the authenticated user's home directory (~/.samba).
Question
If the path parameter is not set for a share in the smb.conf file, the share will refer to which of the following directories?
Options
- A/var/samba
- B/var/smb/tmp
- C/var/spool/samba
- D/tmp
- E~/.samba
How the community answered
(23 responses)- B4% (1)
- D4% (1)
- E91% (21)
Why each option
In Samba's smb.conf, when the path parameter is omitted for a share, the share defaults to the authenticated user's home directory (~/.samba).
/var/samba is not a Samba built-in default path - it may appear in some custom configurations but is not the default when path is omitted.
/var/smb/tmp is not a recognized Samba default directory and does not exist as a standard path in Samba.
/var/spool/samba is used by Samba for print job spooling, not as the default share path when the path directive is absent.
/tmp is a system temporary directory and is not the default path Samba uses when the path directive is missing from a share definition.
According to Samba behavior, if no path directive is specified for a share in smb.conf, the default path resolves to the connecting user's home directory (~/.samba). This allows home directory shares to function without an explicit path being set, using the authenticated user's home as the root of the share.
Concept tested: Samba smb.conf default share path behavior
Source: https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.