[Samba] separate config for dedicate user

Meike Stone meike.stone at googlemail.com
Fri Apr 17 02:34:28 MDT 2015


Hello,

I run samba 3.6 and I need to track problems for dedicated users.
So I thought, I load at the end via include special configurations for
the user separately.

My question is, how does the smbd configure itself. Does smbd
1) reads the config completely and then it set the parameters in the process or
2) does smbd reads and set each parameter instantly?

So can I use the following example?

Example:
/etc/samba/smb.conf
=======================================================
[global]
.
.

        vfs objects = extd_audit
        debug uid = yes
        debug pid = yes
        debug class = yes
        log level = 0 vfs:2
        syslog = 0
        max log size = 1024
        log file = /var/log/smbduserlogs/%U.log
        include = /etc/samba/debug/smb.conf.%U


[share1]
        path = /data/users/%U
        writeable = yes
        browseable = no
.
.

[share2]
.
.


[share-n]
.
.


include = /etc/samba/debug/smb.conf.priv.%U
=======================================================



Example config for a dedicated user
/etc/samba/debug/smb.conf.priv.smith
=======================================================
[global]

vfs objects = extd_audit full_audit
log level = 6 auth:10 passdb:10 vfs:3
max log size = 102400

[share1]
        path = /data/users/%U
        writeable = yes
        browseable = no
        .
        .
        full_audit:prefix = %u|%I|%m|%s
        full_audit:success = open read pwrite unlink mkdir rmdir rename
        full_audit:success = all
        full_audit:failure = all
        full_audit:facility = LOCAL7
        full_audit:priority = ALERT
=======================================================


Thanks for help!!

Meike


More information about the samba mailing list