LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-09-2005, 12:45 AM   #1
thorlin
LQ Newbie
 
Registered: Sep 2005
Distribution: SUSE Pro 9.3
Posts: 3

Rep: Reputation: 0
Cannot see my Win XP SP2 box with shared printer from my SUSE Pro 9.3 box


I am new to the Linux world and have spent the last 2 weeks getting accustomed to Linux. Thus far my experience has been successful, with the exception that I cannot see the shared drives, printers, or even the Windows box that has my primary printer. I have setup and configured both Samba Server and client. THe WinXP SP2 box can see my linux shares and connect to them, however I can't even see the Windows box. I'm at a loss, as i'm in new territory. I've spent hours reading books and posts, but as of yet am unable to get things to work. I'd appreciate a little bit of help. I'm not sure what information you would need to help me out, so let me know and I'll post it.

Thanks in advance for the help.

Thorlin
 
Old 09-10-2005, 01:04 PM   #2
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
well... what do you mean "I cannot see the shared drives, printers, or even the Windows box". I mean... what are you using to try/test?
The very first step is usually to use smbclient using your windoze machine ip, like in the following :
Code:
smbclient -L //192.168.0.2
This will list what's i shared on the windoze box to anonymous users (for now, we don't need auth, it's just testing).
Then, you could try with name, sometime, only the netbios name resolution is wrong :
Code:
smbclient -L //My_Sucky_XP
If everything is fine so far... try to mount a shared drive, something like :
Code:
mount -t smbfs -o username=BOB //My_Sucky_XP/shared_stuff /where/you/want/it/empty/dir
If everything went fine... well there is probably just something slightly wrong in your config.
 
Old 09-10-2005, 01:06 PM   #3
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
with Winxp sp2 u need to allow more exceptions in ur LAN firewall

regards
 
Old 09-11-2005, 01:16 PM   #4
thorlin
LQ Newbie
 
Registered: Sep 2005
Distribution: SUSE Pro 9.3
Posts: 3

Original Poster
Rep: Reputation: 0
That has helped thus far

If I key in the following I see what is below.

BJlinux:~ # smbclient -L //192.168.1.102
Password:
Domain=[FAMDENDELL] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
SharedDocs Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
Printer Printer Microsoft Office Document Image Writer
HPlaser Printer HP LaserJet 1100 (MS)
session request to 192.168.1.102 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[FAMDENDELL] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------

Workgroup Master
--------- -------

However, if I try with the name I get the following.

BJlinux:~ # smbclient -L //FAMDENDELL
Connection to FAMDENDELL failed

I was also able to mount the SharedDocs folder using the IP. What would be the issue with my config? I have included it below. I really appreciate your help.

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-04-04
[global]
workgroup = Vlhome
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain master = No
security = user
restrict anonymous = no
max protocol = NT
ldap ssl = No
server signing = Auto
domain logons = No
netbios name = bjlinux
server string = BJLinux Samba Server
idmap gid = 10000-20000
idmap uid = 10000-20000
encrypt passwords = yes
local master = no

[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
inherit acls = Yes

[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get my Suse 9.1 box to print to the printer attached to my Win XP box? PadreFabuloso Linux - Newbie 2 06-23-2005 04:06 PM
shared Internet access, same box, dual boot, win xp and rh9 provri Red Hat 2 06-21-2005 12:36 AM
Suse 9.2 Won't Detect Win XP Pro SP2... ram0135 Suse/Novell 2 12-12-2004 10:51 PM
Connect Red Hat box to Win XP box? VBAHole22 Linux - Newbie 6 05-09-2004 11:13 AM
How do I access files on Win box from Linux box zanew Linux - Networking 5 06-12-2002 11:58 AM


All times are GMT -5. The time now is 11:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration