LinuxQuestions.org
Review your favorite Linux distribution.
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 07-19-2006, 11:24 PM   #1
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Rep: Reputation: 30
Config Samba, CUPS for Winders...


I know this is somewhere in the forums but I just can't find it.
I am trying to configure Samba so two Windows XP machines can get to a share and connect to a printer.

I am just not having any luck and frustrated with the difficultness of getting this setup.

Will post smb.conf
Any thing else to post?
Any links to get this setup?
 
Old 07-20-2006, 03:34 AM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
Can you install and use webmin? It is a GUI frontend for a lot of tools, samba being one of them.

Later

 
Old 07-20-2006, 09:02 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
I assume the printer is connected to the Samba box, am I right?
 
Old 07-20-2006, 08:33 PM   #4
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
Sorry, yea the printer is connected to the Samba box.
I have it setup and working fine on the server. Need to share it out with the two winders machines.

No, I have not tried webadmin yet. I was trying to hand edit the samba smb.conf file.
I forgot to mention...
I am using Debian Sarge.
 
Old 07-20-2006, 11:09 PM   #5
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
Here is my smb.conf
Code:
# Samba config file created using SWAT
# from 172.16.0.50 (172.16.0.50)
# Date: 2006/07/19 00:11:28

# Global parameters
[global]
	log file = /var/log/samba/log.%m
	load printers = yes
	encrypt passwords = yes
	hosts allow = 172.16.0.
	passdb backend = tdbsam, guest
	dns proxy = No
	netbios name = Server1
	server string = Data Server
	printing = bsd
	invalid users = root
	workgroup = AVVEDUTI
	os level = 64
	printcap name = /etc/printcap
	security = share
	syslog = 0
	panic action = /usr/share/samba/panic-action %d
	max log size = 1000

[data]
	comment = Data Share
	writeable = yes
	create mode = 0777
	public = yes
	path = /mnt/data



[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers

[cp]
	postscript = yes
	comment = Canon IP3000
	printable = yes
	path = /tmp
 
Old 07-20-2006, 11:13 PM   #6
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
Ideas?
Everytime my XP laptop tries to connect to the data share, I get the message
Quote:
\\Server1 is not accessible. You might not have permission to use this network resource. Contact the administrator of the server to find out if you have access permissions.

The network path was not found.
???
 
Old 07-20-2006, 11:37 PM   #7
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
Tried Webmin.. nope..
 
Old 07-20-2006, 11:40 PM   #8
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
I got the error and it turned out the ports were blocked. I use iptables and after I unblocked them it worked fine. May want to check that if you can. Also, make sure windoze is not blocking it too. Be funny if they both are blocking the ports.

Let me know what you find out. I'm not a big time guru though.

 
Old 07-21-2006, 02:29 PM   #9
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by dalek
I got the error and it turned out the ports were blocked. I use iptables and after I unblocked them it worked fine. May want to check that if you can. Also, make sure windoze is not blocking it too. Be funny if they both are blocking the ports.

Let me know what you find out. I'm not a big time guru though.

I will check tonight. I forgot to look at that.
I used Webmin and everything should be good... made some minor changes.
According to most every website, it should be working.

As long as you know the answer, the title of guru is null... right?
 
Old 07-21-2006, 05:33 PM   #10
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
Quote:
Originally Posted by jaa1180
I

As long as you know the answer, the title of guru is null... right?
Well, I have had some excellant help from some with very few posts before. I have seen some with a lot of posts that can't get Linux to boot up cleanly.

When you make changes to samba, don't forget to restart it too. I did that once. Silly me.

If that doesn't work, I would really start looking at firewalls and such. Something is blocking it somewhere. I cut my wifes off a little while to test it. It turned out that it was mine that was blocking because I had them all set to stealth and winders didn't like it or something.

This may help if you want to read it. It starts where we started talking about the routing stuff. http://forums.gentoo.org/viewtopic-p...0.html#3351020

Later

 
Old 07-21-2006, 05:36 PM   #11
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
Oh, this may help too.

Quote:
root@smoker / # iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT udp -- 192.168.100.0/24 anywhere udp dpt:netbios-ns
ACCEPT tcp -- 192.168.100.0/24 anywhere tcp dpt:netbios-ns
ACCEPT tcp -- 192.168.100.0/24 anywhere tcp dpt:netbios-ssn
ACCEPT udp -- 192.168.100.0/24 anywhere udp dpt:netbios-ssn
ACCEPT tcp -- 192.168.100.0/24 anywhere tcp dpt:netbios-dgm
ACCEPT udp -- 192.168.100.0/24 anywhere udp dpt:netbios-dgm
ACCEPT tcp -- 192.168.100.0/24 anywhere tcp dpt:microsoft-ds
ACCEPT udp -- 192.168.100.0/24 anywhere udp dpt:microsoft-ds
DROP all -- anywhere anywhere state INVALID,NEW

Chain FORWARD (policy ACCEPT)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID,NEW

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
root@smoker / #
Just in case.

 
Old 07-26-2006, 07:08 PM   #12
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
Nope. I went into Webmin, it said no firewall rules setup. I told it to allow all....
Restarted networking and SMB... same thing.
 
Old 07-26-2006, 07:09 PM   #13
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
 
Old 07-26-2006, 07:10 PM   #14
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
That is what mine says....
 
Old 07-26-2006, 08:57 PM   #15
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
Ok, get this... I installed firestarter and watched. Allowed the needed IPs and now one PC is connecting to the share fine.
However the XP Home laptop, wireless, is not working. Rebooted.. no workee.
Put in the wire, just in case, still no workee...
 
  


Reply

Tags
cups, print, samba, server, windows, xp


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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Webmin cannot handle Samba config files that use the config or include directives allelopath Linux - Networking 3 01-18-2005 09:36 AM
thizlinux on winders 98 hugeness Linux - Software 0 01-09-2004 08:20 AM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 04:04 PM
blackbox from winders [cacheflow] Linux - Newbie 5 07-22-2002 05:17 PM


All times are GMT -5. The time now is 11:28 PM.

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