[Samba] fileserver [home] with admin
Nick Howitt
nick at howitts.co.uk
Sat Oct 30 13:14:26 UTC 2021
On 29/10/2021 10:24, Pol Hallen via samba wrote:
>
> Hi folks :-)
>
> using this simple config I'd like add an admin user to access to all
> home of users and handles user's file. Now every users can handles own
> files/folders:
>
> [home]
> path = /data/samba/%u
> browseable = yes
> writeable = yes
> force create mode = 0660
> force directory mode = 2770
> valid users = @admins @sambashare
> access based share enum = yes
>
> ls -l /data/samba/
>
> drwxrws--- 5 max sambashare 4096 Oct 28 17:40 max/
> drwxrws--- 2 admin sambashare 4096 Oct 28 14:47 temp/
> drwxrws--- 2 test00 sambashare 4096 Oct 29 09:30 test00/
> drwxrws--- 2 test01 sambashare 4096 Oct 29 09:30 test01/
> drwxrws--- 2 test02 sambashare 4096 Oct 29 09:30 test02/
> drwxrws--- 2 test03 sambashare 4096 Oct 29 09:30 test03/
> drwxrws--- 2 test04 sambashare 4096 Oct 29 09:30 test04/
>
> how can I create an admin user to handles these folders from windows
> client?
>
> thanks for help!
>
Can you define a share at the /data/samba level with:
valid users = @admins
force group = sambashare
admins would also need to be a member of the sambashare group. The
purpose of the "force group" is to stop anything being created and owned
by the admin group which you normal users would then be unable to use.
Nick
More information about the samba
mailing list