[Samba] Setting up samba

John Anderson sontek at gmail.com
Fri Nov 25 20:55:14 GMT 2005


I've setup samba on my slacware box. Here is my smb.conf:

###################################3
My SMB.CONF
###################################3
root at darkstar:/usr/local/samba/bin# cat ../lib/smb.conf
[global]
   workgroup = home
   netbios name = darkstar
[videos]
   path = /mnt/backup
   public = yes
   writable = yes

###################################3
My TESTPARM SMB.CONF
###################################3
root at darkstar:/usr/local/samba/bin# ./testparm ../lib/smb.conf
Load smb config files from ../lib/smb.conf
Processing section "[videos]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = HOME

[videos]
        path = /mnt/backup
        read only = No
        guest ok = Yes


###################################3
My Errors
###################################3
root at darkstar:/usr/local/samba/bin# ./smbclient -L darkstar
session request to DARKSTAR failed (Call returned zero bytes (EOF))
session request to *SMBSERVER failed (Call returned zero bytes (EOF))

###################################3
Netsat -a
###################################3
root at darkstar:/usr/local/samba/lib# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address
State
tcp        0      0 *:time                  *:*
LISTEN
tcp        0      0 *:3306                  *:*
LISTEN
tcp        0      0 *:submission            *:*
LISTEN
tcp        0      0 *:netbios-ssn           *:*
LISTEN
tcp        0      0 *:http                  *:*
LISTEN
tcp        0      0 *:x11                   *:*
LISTEN
tcp        0      0 *:auth                  *:*
LISTEN
tcp        0      0 *:ssh                   *:*
LISTEN
tcp        0      0 *:smtp                  *:*
LISTEN
tcp        0      0 darkstar.sontek.n:32909 www.google.com:http
ESTABLISHED
tcp        0      0 darkstar.sontek.n:32908 www.google.com:http
ESTABLISHED
udp        0      0 *:biff
*:*
udp        0      0 darkstar.son:netbios-ns*:*
udp        0      0 *:netbios-ns
*:*
udp        0      0 *:netbios-ns
*:*
udp        0      0 darkstar.so:netbios-dgm*:*
udp        0      0 *:netbios-dgm
*:*
udp        0      0 *:time                  *:*



###################################3
My script for starting samba
###################################3
root at darkstar:/usr/local/samba/lib# cat /etc/rc.d/rc.samba
#!/bin/sh
/usr/local/samba/sbin/smbd -D
#/usr/local/samba/sbin/winbindd -B
/usr/local/samba/sbin/nmbd -D


More information about the samba mailing list