[GRLUG] Samba home directories

Grand Rapids Linux Users Group grlug at grlug.org
Mon Dec 28 13:45:58 EST 2020


On Mon, 2020-12-28 at 10:50 -0600, Grand Rapids Linux Users Group
wrote:
> Realized recently that the Samba mechanism to share home directories
> does
> not provide write permissions for users; This configuration allows
> everyone to see the user directories:
> [homes]
>     comment = Home Directories
>     valid users = %S, %D%w%S
>     browseable = NO
>     inherit acls = Yes
>     read only = No

I've always used the following configuration.

[homedir]
        comment = Home Directory
        path = %H
        read only = no
        browseable = yes
        hide dot files = yes
        vfs objects = recycle
        veto files = /*.exe/*.EXE/*.pif/*.PIF/*.scr/*.SCR/*.msi/*.MSI/Spark.properties
        recycle:repository = trash
        recycle:exclude = *.tmp *.temp *.o *.obj ~$* *.~??
        recycle:maxsize = 20971520
        recycle:versions = Yes
        follow symlinks = no
        wide links = no

Also it is sometimes, depending upon config, to not rely on the home-
path value from getent, but to override it using the template directive


[global]
        template homedir = /home/%u


-- 
Adam Tauno Williams <mailto:awilliam at whitemice.org> GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA



More information about the grlug mailing list