This is the exercise that am doing
Specification
In this exercise you will create a Samba share called "private", which will be access-controlled depending on the user who connects.
Ensure that Samba service is installed and ready.
Create a group called trusted. Make your primary and your secondary accounts (<username> and <username>_a) members.
Create the directory /var/shared/private (it may already exist from a previous exercise).
Make the directory group-owned by trusted and writable by user and group.
Create a file called /var/shared/private/getme and ensure it it is readable by everyone.
Open /etc/smb.conf and add a share called private.
Make the share accessible only by members of the trusted group.
Make the share read-only, except for your primary account, which should have write access.
Reload you samba configuration and test.
For example, the following smb.conf entry would satisfy these requirements:
[private]
path = /var/shared/private
valid users = @trusted
writable = no
write list = elvis
Deliverables
The directory /var/shared/private should be shared via SMB
The share should only be accessible to members of the trusted group, which should include your primary and secondary accounts.
The share should only be writable by your primary account
|