Samba Server Installation für Intranet

Server installieren:

[root@crmsrv /]# apt-get install samba

Datei /etc/samba/smb.conf bearbeiten:

[global]
        workgroup = WORKGROUP
        #printing = cups
        #printcap name = cups
        #printcap cache time = 750
        #cups options = raw
        guest account = www-data
        map to guest = Bad User
        include = /etc/samba/dhcp.conf
        usershare allow guests = Yes
        security = share
        debug timestamp = no
        log level = 2
        max log size = 100000
        log file = /var/log/samba/samba.log.%m
        display charset = ISO-8859-1
        dos charset = 850
        unix charset = UTF-8
        bind interfaces only = True
        interfaces = eth0 192.168.150.182
        create mask = 0660 
        directory mask = 0770
        force create mode = 0770
        force directory mode = 0770

[doc_tmp]
        path = /data/crm/doc_tmp
        read only = No
        browseable = No
        guest ok = Yes
        writable = yes
        share modes = yes
        guest only = Yes

[user1]
        # Used to map own Documents to Desktop
        path = /data/crm/profiles/user1/owndocs
        read only = No
        browseable = Yes
        guest ok = Yes
        writable = yes
        share modes = yes
        guest only = Yes
[root@crmsrv /]# /etc/init.d/samba restart
[root@crmsrv /]# chmod 0777 /data/crm/doc_tmp
[root@crmsrv /]# chmod 0777 /data/crm/profiles/user1/owndocs

und testen unter Windows:

Start -> Ausführen -> Öffnen: \\192.168.150.182 -> Ok

Ordner user1 sollte angezeigt werden.