simple samba smb.conf + setup in netbsd 2.0.2 & winxp

smb.conf
[global]
workgroup = WORKGROUP
interfaces = 192.168.0.41/24
security = share
server string = venus
[share1]
path = /venus_fly_trap
comment = the fly trap
guest ok = yes
read only = no
browsable = yes
writeable = yes
public = yes

testing —

# nmbd
# smbd
# winbindd
# testparm -s
Load smb config files from /usr/pkg/etc/samba/smb.conf
Processing section "[share1]"
Loaded services file OK.
# Global parameters
[global]
server string = venus
interfaces = 192.168.0.41/24
security = SHARE

[share1]
comment = the fly trap
path = /venus_fly_trap
read only = No
guest ok = Yes

# smbclient -L venus.pissedoffadmins.com
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a]

Sharename Type Comment
--------- ---- -------
share1 Disk the fly trap
IPC$ IPC IPC Service (venus)
ADMIN$ IPC IPC Service (venus)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a]

Server Comment
--------- -------
JUPITER
VENUS venus

Workgroup Master
--------- -------
WORKGROUP VENUS

# nmblookup -B 192.168.0.41 "*"
querying * on 192.168.0.41
192.168.0.41 *<00>

# nmblookup -d 2 "*"
added interface ip=192.168.0.41 bcast=192.168.0.255 nmask=255.255.255.0
querying * on 192.168.0.255
Got a positive name query response from 192.168.0.100 ( 192.168.23.1 192.168.146.1 192.168.0.100 )
Got a positive name query response from 192.168.0.41 ( 192.168.0.41 )
192.168.0.100 *<00>
192.168.0.41 *<00>
192.168.23.1 *<00>
192.168.146.1 *<00>

# smbclient //venus.pissedoffadmins.com/share1
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a]
smb: \>

—– end netbsd ——
——– dos ———-

E:\>net view
Server Name Remark
\\JUPITER
\\VENUS venus
The command completed successfully.

E:\>net use x: \\venus\share1
The command completed successfully.

easiest way to check samba status

to make sure you dont get to many errors in windows – make sure that messenger (net messenger) is enabled, “client for microsoft networks” in network properties is enabled and that you have the samba server configured with/through wins as needed.

also, make sure that your hosts file has the proper mapping to all the machines that are being configured through samba (hosts & lmhosts in x:\windows\system32\drivers\etc\ & /etc/hosts)

«
»

    Leave a Reply

    Your email address will not be published. Required fields are marked *