I just set up a samba network with
this helpful topic between this Ubuntu 7.04 machine and a Windows 2000 machine. I have successfully shared a folder on this machine (ubuntu) on windows by using this machine's IP address. However, there are other problems in the network:
1.
Hostnames are not working. I have disabled Zone Alarm on Windows but neither domain name can be pinged from either machine. I cannot even ping this machine when I am on it unless I use
fatsheep-desktop.WORKGROUP as the hostname (the hostname is fatsheep-desktop and the workgroup is named "WORKGROUP"). However pinging the other computer as
dell2000.WORKGROUP doesn't work.
2.
Network printer (setup on the Windows 2000 machine)
won't work from this machine (Ubuntu). I have set it up with System > Administration > Printing. I have tried using "DELL2000" as the hostname and I have tried using the IP address of the Windows 2000 machine, neither have worked. In the properties of the printer on Ubuntu, this error message is displayed:
Quote:
Ready: Unable to connect to CIFS host, will retry in 60 seconds...
|
Here is the output of smbtree:
Code:
smfatsheep:~$ smbtree
Password:
WORKGROUP
\\DELL2000
\\DELL2000\C$ Default share
\\DELL2000\ADMIN$ Remote Admin
\\DELL2000\moo hp deskjet 845c series
\\DELL2000\print$ Printer Drivers
\\DELL2000\IPC$ Remote IPC
\\ALEX-DESKTOP
timeout connecting to 192.168.0.5:445
timeout connecting to 192.168.0.5:139
Error connecting to 192.168.0.5 (Operation already in progress)
cli_start_connection: failed to connect to ALEX-DESKTOP<20> (192.168.0.5)
Here are the contents of my /etc/samba/smb.conf file:
Code:
[global]
; General server settings
netbios name = fatsheep-desktop
workgroup = WORKGROUP
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = no
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes
; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/
; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no
; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no
; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
path = /var/lib/samba/printers
browseable = yes
guest ok = yes
read only = yes
write list = root
create mask = 0664
directory mask = 0775
[printers]
path = /tmp
printable = yes
guest ok = yes
browseable = no
; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes
[MyFiles]
path = /shared
read only = no
guest ok = no
create mask = 0644
directory mask = 0755
force user = fatsheep
force group = fatsheep
available = yes
browsable = yes
public = yes
writable = yes
Any help on either problem would be most helpful. Thanks,
- sheep