LX0-104 · Question #622
What does the entry valid users = @smbusers in the smb.conf file mean when used in a share section?
The correct answer is C. Only users in the unix group called smbusers can access this share.. The valid users = @smbusers entry in smb.conf restricts access to a Samba share exclusively to members of the specified Unix group 'smbusers'.
Question
Options
- AOnly users connecting from the machine called smbusers can use this share.
- BFiles saved in the specified share will be owned by the group smbusers.
- COnly users in the unix group called smbusers can access this share.
- DOnly the user account smbusers can access this share.
How the community answered
(35 responses)- A3% (1)
- C94% (33)
- D3% (1)
Why each option
The `valid users = @smbusers` entry in `smb.conf` restricts access to a Samba share exclusively to members of the specified Unix group 'smbusers'.
This parameter controls access based on user identity and group membership, not on the originating machine's hostname; host-based access control uses parameters like `hosts allow` or `hosts deny`.
The `valid users` parameter controls who can connect to the share, not the ownership of files created within it, which is determined by parameters such as `create mask` and `force group`.
The `@` prefix before a name in the `valid users` parameter denotes a Unix group, meaning that only users who are members of the 'smbusers' Unix group will be granted access to this specific share.
If the intent was to allow only a single user, the `@` symbol would not be used; `@smbusers` explicitly refers to a Unix group named 'smbusers'.
Concept tested: Samba share access control (Unix groups)
Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.