I have a RAID10 array mounted on Ubuntu Server 12.04. I have created a few folders within the mount point and want the following functionality.
There will be 4 users, 3 of them are windows users: 'one' 'two' & 'three'.
'four' is a media streamer that only needs to access the MEDIA share.
One Two and Three need to have full access to the media share and their own personal shares (for documents) which no other users but them can access.
Currently, User Four works perfectly (Has full access to the MEDIA folder and can't access folders owned by other users). The problem is, when logged in as the other user, I can't access either share; (tried using valid users = and using chmod to add permissions to no avail).
TL;DR: I need to know how to configure Samba properly to restrict access to certain shares for certain users and allow all of them to access one communal folder (all files on a RAID10 mount).
Best Answer
Each samba user must have a normal linux account as well.
force user
insmb.conf
sudo smbpasswd -a your_user
/etc/samba/smb.conf
: check if the linesecurity = user
is set in the[GLOBAL]
section/etc/samba/smb.conf
, see exampleExample shares:
This will be accessible via
\\yourserver\allaccess
A single user share:
Restart the samba server after the changes with: