QuestionQ25

VerifiedFile Sharing

The Samba configuration file includes these lines:

Question Image

A workstation on the wired network has IP address 192.168.1.177, but it cannot access the Samba server. A wireless laptop with IP address 192.168.2.93 can access the Samba server. Further troubleshooting shows that nearly every machine on the wired network cannot access the Samba server.

Which alternative host allow declaration will allow wired workstations to connect to the Samba server without denying access to anyone else?

Explanation

A hosts allow entry can specify an entire network with a network/netmask pair. Allowing 192.168.1.0/255.255.255.0 includes all wired addresses in the 192.168.1.x subnet, including 192.168.1.177; retaining 192.168.2.0/255.255.255.0 and localhost preserves those permitted clients. Samba documents that hosts allow accepts network/netmask pairs and that allow-list matches take precedence if the allow and deny lists conflict.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!