nerdexam
CompTIA

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'.

Administrative Tasks

Question

What does the entry valid users = @smbusers in the smb.conf file mean when used in a share section?

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)
  • A
    3% (1)
  • C
    94% (33)
  • D
    3% (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'.

AOnly users connecting from the machine called smbusers can use this share.

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`.

BFiles saved in the specified share will be owned by the group smbusers.

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`.

COnly users in the unix group called smbusers can access this share.Correct

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.

DOnly the user account smbusers can access this 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

#Samba configuration#smb.conf#user groups#share access

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice