Annotation of wikisrc/tutorials/how_to_set_up_a_samba_server.mdwn, revision 1.2

1.2     ! schmonz     1: Setting up a samba server on your NetBSD box for WindowsXP clients is really simple. 
        !             2: 
        !             3: Install samba via pkgsrc: 
        !             4:     
        !             5:     # cd /usr/pkgsrc/net/samba
        !             6:     # make install clean
        !             7:     
        !             8: 
        !             9: Start the services via /etc/inetd.conf then uncomment the next two lines. 
        !            10:     
        !            11:     #netbios-ssn stream tcp nowait root /usr/pkg/sbin/smbd
        !            12:     #netbios-ns dgram udp wait root /usr/pkg/sbin/nmbd
        !            13:     
        !            14: 
        !            15: Change it to this: 
        !            16:     
        !            17:     netbios-ssn stream tcp nowait root /usr/pkg/sbin/smbd
        !            18:     netbios-ns dgram udp wait root /usr/pkg/sbin/nmbd
        !            19:     
        !            20: 
        !            21: Save the changes and restart inetd: 
        !            22:     
        !            23:     /etc/rc.d/inetd restart
        !            24:     
        !            25: 
        !            26: Now add the following lines to /etc/rc.conf: 
        !            27:     
        !            28:     smbd=YES
        !            29:     nmbd=YES
        !            30:     samba=YES
        !            31:     
        !            32: 
        !            33: You have to create a /usr/pkg/etc/samba/smb.conf with the following basic configuration: 
        !            34:     
        !            35:     workgroup="some_group"
        !            36:     server string="NetBSD Samba Server"
        !            37:     hosts allow = 192.168.1. , 192.168.0.
        !            38:     encrypt passwords = yes
        !            39:     
        !            40:     
        !            41:     [shared]
        !            42:     comment = Shared
        !            43:     path = /home/ficovh/mp3
        !            44:     browseable = yes
        !            45:     writable = no
        !            46:     valid users = samba
        !            47:     
        !            48: 
        !            49: Add a valid user to the NetBSD system: 
        !            50:     
        !            51:     # useradd samba
        !            52:     
        !            53: 
        !            54: Add a windows user to samba and set the password: 
        !            55:     
        !            56:     # smbpasswd -a -U samba
        !            57:     
        !            58: 
        !            59: Now test the server with your Windows machine. 
        !            60: 
        !            61: You can also browse the content from a windows machine with NetBSD smbclient: 
        !            62:     
        !            63:     # smbclient //ip_windows/shared_name_resource
        !            64:     
        !            65: 
        !            66: ip_windows is the IP for the windows machine and shared_name_resource is the directory shared. 
        !            67: 
        !            68: You can also test if your local samba server is working. 
        !            69:     
        !            70:     # smbclient -Usamba -L localhost
        !            71:     
        !            72: 
        !            73: Thats it, a basic samba server on your NetBSD box. 
        !            74: 
        !            75: ##  See also 
        !            76: 
        !            77:   * [[How to secure samba with stunnel]]
        !            78: 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb