Hi there, I'm learning Samba and I really appreciate somebody out there can help me out. I'm using RedHat advanced server and a windows 2000. I created a workgroup on samba and only samba machine and win2k machine are members. I shared the printer attached to the Linux. From win2k PC, I can see the workgroup, but I can not find the samba host from the workgroup, nor does the printer. The smb.conf is attached. I run smbclient -NL <hostname> and it shows the printer under the Sharename. If I run net view //<hostname>, it returns that: "System error 53 has occured, the network pass was not found" I setup the samba 2 days ago, and the same problem happened then and now. BTW, I can mount a windows share from Linux, so I guess samba is running. Thanks and merry Christmas. Xiaodong -------------- next part -------------- # Samba config file created using SWAT # from localhost.localdomain (127.0.0.1) # Date: 2002/12/23 10:01:26 # Global parameters [global] workgroup = XGROUP server string = Birch Samba Server encrypt passwords = Yes log file = /var/log/samba/%m.log max log size = 500 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No printing = lprng [homes] comment = Home Directories valid users = %S read only = No create mask = 0664 directory mask = 0775 browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [hpdeskjet940c] comment = HP Deskjet 940c attached to Birch path = /var/spool/samba guest account = zhangx read only = No guest ok = Yes printable = Yes printer name = hpdeskjet940c oplocks = Yes share modes = Yes
On Mon, 2002-12-23 at 16:23, Xiaodong Zhang wrote:> Hi there,Hi,> > I'm learning Samba and I really appreciate somebody out there can help > me out. I'm using RedHat advanced server and a windows 2000. I createda> workgroup on samba and only samba machine and win2k machine aremembers.> I shared the printer attached to the Linux. From win2k PC, I can seethe> workgroup, but I can not find the samba host from the workgroup, nor > does the printer. The smb.conf is attached. > > I run smbclient -NL <hostname> and it shows the printer under theSharename.> If I run net view //<hostname>, it returns that: "System error 53 has > occured, the network pass was not found" > > I setup the samba 2 days ago, and the same problem happened then and > now. BTW, I can mount a windows share from Linux, so I guess samba is > running. >The fact that you can mount a samba share from Linux means nothing, this is not dependant upon whether you have the smbd running. This is so you dont have to have smbd running on every client machine (there are mixed OS networks). The mount command using the -t smbfs depends totally on whether the smbfs was compiled into the kernel under "File Systems". The way to test whether the daemon is running would be to run: ps aux | grep smbd This should show you whether the smbd is running. If it is try restarting it and looking in the Samba logs for any errors, if it isnt then look it up.> Thanks and merry Christmas. > > XiaodongHTH and a Merry Christmas to you (if you celebrate it), Shak> > > ---- >> # Samba config file created using SWAT > # from localhost.localdomain (127.0.0.1) > # Date: 2002/12/23 10:01:26 > > # Global parameters > [global] > workgroup = XGROUP > server string = Birch Samba Server > encrypt passwords = Yes > log file = /var/log/samba/%m.log > max log size = 500 > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > dns proxy = No > printing = lprng > > [homes] > comment = Home Directories > valid users = %S > read only = No > create mask = 0664 > directory mask = 0775 > browseable = No > > [printers] > comment = All Printers > path = /var/spool/samba > printable = Yes > browseable = No > > [hpdeskjet940c] > comment = HP Deskjet 940c attached to Birch > path = /var/spool/samba > guest account = zhangx > read only = No > guest ok = Yes > printable = Yes > printer name = hpdeskjet940c > oplocks = Yes > share modes = Yes
I'm not an expert but I see lots of things missing in your smb.conf file. You have not defined the samba server netbios name. No samba password path. Have you set samba passwords? Define security level. Also, you may find that you will neeed to stop IPChains and IPTables on the samba server once you get things running somewhat. At least until you can set up firewall rules. Once you set the netbios name - you should then be able to "see" the samba server in network neighborhood. Also, should be alble to ping from windows both the samba IP address and net bios name. These are all things I learned over the last few months as I have been learning Samba - hope it helps. Tom Winfield [global] workgroup = HOME netbios name = linux-server server string = Tom's Linux Server hosts allow = 192.168.0. 127. guest ok = yes log file = /var/log/samba/%m.log log level = 1 max log size = 100 security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 local master = yes browsable = yes domain master = no preferred master = no wins support = yes dns proxy = no -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org]On Behalf Of Xiaodong Zhang Sent: Monday, December 23, 2002 10:24 AM To: samba@samba.org Subject: [Samba] can not connect to the shared printer Hi there, I'm learning Samba and I really appreciate somebody out there can help me out. I'm using RedHat advanced server and a windows 2000. I created a workgroup on samba and only samba machine and win2k machine are members. I shared the printer attached to the Linux. From win2k PC, I can see the workgroup, but I can not find the samba host from the workgroup, nor does the printer. The smb.conf is attached. I run smbclient -NL <hostname> and it shows the printer under the Sharename. If I run net view //<hostname>, it returns that: "System error 53 has occured, the network pass was not found" I setup the samba 2 days ago, and the same problem happened then and now. BTW, I can mount a windows share from Linux, so I guess samba is running. Thanks and merry Christmas. Xiaodong