Samba Authenticated Team Share
Serve /srv/samba/team from server1 as an SMB share that only the team can open, with the filesystem and SELinux agreeing, then use it from the client as alice and watch anonymous and outsider access fail.
Skill labintermediate~50 minPro
What you'll do
- ✓Declare a standalone Samba share restricted to a group, with guests off and SMB1 never enabled
- ✓Make ownership, a setgid mode and a persistent samba_share_t label agree with the share
- ✓Give a Unix account a separate SMB password and start smb, now and after a restart
- ✓Upload and list files from the client with smbclient, keeping the password out of the command line
- ✓Show that anonymous and non-team users are refused
Lab outline
- 01Two machines, one team share
- 02Serve it from server1
- 03Use it from the client
Before you start
- Access Control Lists and Inheritance
- firewalld Zones and Least-Privilege Access
- Filesystems and Persistent UUID Mounts
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.