LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Config Samba, CUPS for Winders... (https://www.linuxquestions.org/questions/linux-networking-3/config-samba-cups-for-winders-465764/)

jaa1180 07-19-2006 11:24 PM

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?

dalek 07-20-2006 03:34 AM

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

Later

:D :D :D :D :D

archtoad6 07-20-2006 09:02 AM

I assume the printer is connected to the Samba box, am I right?

jaa1180 07-20-2006 08:33 PM

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.

jaa1180 07-20-2006 11:09 PM

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


jaa1180 07-20-2006 11:13 PM

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.
???

jaa1180 07-20-2006 11:37 PM

Tried Webmin.. nope..

dalek 07-20-2006 11:40 PM

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.

:D :D :D :D :D

jaa1180 07-21-2006 02:29 PM

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.

:D :D :D :D :D

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? ;)

dalek 07-21-2006 05:33 PM

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. :scratch: 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

:D :D :D :D :D

dalek 07-21-2006 05:36 PM

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.

:D :D :D :D :D

jaa1180 07-26-2006 07:08 PM

Nope. I went into Webmin, it said no firewall rules setup. I told it to allow all....
Restarted networking and SMB... same thing.

jaa1180 07-26-2006 07:09 PM

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

jaa1180 07-26-2006 07:10 PM

That is what mine says....

jaa1180 07-26-2006 08:57 PM

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...


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