Samba standalone, tdbsam Backend

  1. pridame uzivatele do systemu adduser foobar
  2. pridame systemoveho uzivatele do samby, kde muze mit jineheslo smbpasswd -a foobar

Soubor lze prolistovat prikazy pdbedit -Lw a pdbedit -Lv foobar

Samba - vyborny logovani - audit

[global]
    log level=4
    max log size = 50

[public]
    vfs object = audit

Samba - mountovani FS

[DVD]
        comment = Linux DVD RW
        path = /media/dvdrecorder
        browseable = Yes
        locking = No
        read only = Yes
        root preexec = /bin/mount /media/dvdrecorder
        root postexec = /bin/umount /media/dvdrecorder

Samba - krasny config z praxe male firmy

[global]
    workgroup = PB
#   printcap cache time = 750
    load printers = no
    printcap name = /dev/null
    printing = bsd
    map to guest = Bad User
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    usershare allow guests = No
    add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bi
n/false %m$
    domain logons = No
    domain master = No
    security = share
    netbios name = silo
    passdb backend = smbpasswd
    log file = /var/log/samba/%m.log
    log level=4
    max log size = 50
#    force create mode = 0774
    delete readonly = yes

[public]
    comment = fileserver
    guest ok = Yes
    inherit acls = Yes
    path = /srv/samba/public
    read only = No
    browseable = yes
    public = yes
    vfs objects = audit
#    writable = yes
    create mask = 0777
    directory mask = 0777
    force user = nobody
    force group = nogroup

[management]
    path = /srv/samba/management
    read only = no
    force user = management
    inherit acls = yes
    browseable = yes

[zalohy]
    path = /srv/backup/samba-zalohy
    guest ok = Yes
    writable = Yes
 
linux/samba.txt · Last modified: 2010/11/23 21:25 by 85.161.85.24