LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-15-2005, 11:36 PM   #1
heinola
LQ Newbie
 
Registered: Jul 2004
Location: MN
Posts: 28

Rep: Reputation: 15
Samba linux print sharing ?


Hello all,

I am running Slackware 10 witht he kernel 2.6.10.
I am running a Epson C82 on my linux box i want to share
with my windows(XPpro) box via LAN. Here is my smb.conf
____________________________________________________________
[global]
workgroup = SAMBA
server string = Samba Server
security = user
load printers = yes
printcap name = /etc/printcap
load printers = yes
cups options = raw
guest account = smbguest
log file = /usr/local/samba/var/log.%m
max log size = 50
socket options = TCP_NODELAY
preferred master = yes
wins support = yes
dns proxy = no

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
printable = yes

[smbshares]
comment = Public Stuff
path = /usr/smbshares/
public = yes
writable = yes
printable = no
write list = @staff
[homes]
comment = Home Directories
browseable = no
writable = yes

___________________________________________________

I got my file sharing portion working ok for now i need to change
a couple things i have a login propt when looking at my kt7a my linux box
i want to get ride of.

KT7A ( is my linux box) 192.168.1.1
WINXP ( my windows box) 192.168.1.2

LAN via crossover ((no hub or router))

I am using CUPS as my print server and printing works good locally on KT7A all is well
printing from my linux box to my linux printer.

When trying to print from my windows box to my linux box i get access denied -but-
my windows box does see my Epson C82 printer on the network and does installit on it as a default printer...

I believe i am missing something in my smb.conf in order to do this correct. I plan to share this printer with other breads of linux and windows, as soon as i get undermy house once again to pull more Cat5e cable and buy a Hub or router if i get broadband.

I am some what new to linux 1 1/2 years and got some things down but Samba has got me a couple times but this issue i can not figure out without a little problem pointing...


If any have idea what i could do or any examples of smb.conf for what i am trying to do plz let me know



TY

heinola

heinola@operamail.com
 
Old 02-16-2005, 06:55 AM   #2
bbk
Member
 
Registered: Jan 2005
Location: Budapest/Hungary
Distribution: knoppix-hdd/debian
Posts: 56

Rep: Reputation: 15
XP Prof or Home? Have you checked the username the XP is trying to connect to?
Try enable guest mode for printers first with public = yes.
If that does not solve the problem, set samba logging a bit higher and trace log.smbd to seek the error. If you see there something you cannot handle, feel free to copypaste some log excerpt.
 
Old 02-17-2005, 12:37 AM   #3
heinola
LQ Newbie
 
Registered: Jul 2004
Location: MN
Posts: 28

Original Poster
Rep: Reputation: 15
update:

________________________________________________
[global]
workgroup = SAMBA
server string = Samba Server
security = user
load printers = yes
printcap name = /etc/printcap
load printers = yes
cups options = cups
guest account = smbguest
log file = /usr/local/samba/var/log.%m
max log size = 100
socket options = TCP_NODELAY
preferred master = yes
wins support = yes
dns proxy = no

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
printable = yes
public = yes

[smbshares]
comment = Public Stuff
path = /usr/smbshares/
public = yes
writable = yes
printable = no
write list = @staff
[homes]
comment = Home Directories
browseable = no
writable = yes
____________________________________
here is my log of trying to print to linux box
____________________________________
[2005/02/14 11:22:13, 0] printing/print_cups.c:cups_job_submit(779)
Unable to print file to C82 - client-error-document-format-not-supported
_____________________________________

On windows Box i am heinola ( admin ) autologon
On linux Box i am heinola ( user) with logon
On linux Box root ( admin )
/usr/smbshares ( is my samba share folder )
______________________________________
/etc/passwd
smbguest:*:1002:1002:Samba Guest:/nonexistent:/sbin/nologin
_______________________________________
/etc/samba/private/smbpasswd
heinola:1000:F060D1A4D8D7A8C217306D272A9441BB:36CFE54A37C50D20429A97ADAEF88A5D:[U ]:LCT-41E85423:

winxp$:1001:7C3EF25FA3779D64AAD3B435B51404EE:1A49257017CFEA65452A8927CE010BD3:[W ]:LCT-41E7661B:
smbguest:1002:F060D1A4D8D7A8C217306D272A9441BB:36CFE54A37C50D20429A97ADAEF88A5D:[U ]:LCT-41E889CA:

i have a samba user smbguest as well as on linux system


thinking about it there might be a issue with permitttions, Maby i am just getting guest account to the samba server..

i might take a few days and come back to it or possiblly rework it from scratch to see if i can understand it a bit better

let me know if there r any ideas out there
 
Old 02-21-2005, 04:09 AM   #4
bbk
Member
 
Registered: Jan 2005
Location: Budapest/Hungary
Distribution: knoppix-hdd/debian
Posts: 56

Rep: Reputation: 15
hey, you've got this error message!

"Unable to print file to C82 - client-error-document-format-not-supported"

It means that no filter was found for the specified document being printed. You should install your printer's driver (so called, .ppd filter files).
Check this: http://www.linuxprinting.org/ppd-doc.html

Hope I Could Helped.
 
Old 02-21-2005, 07:25 AM   #5
broch
Member
 
Registered: Feb 2005
Distribution: Arch current, SuSe 10.1 32-bit, FreeBSD current, OpenBSD 4.0
Posts: 453

Rep: Reputation: 30
Add this line to /etc/smb.conf
use client driver = yes

Restart samba.
Hope that will help
 
  


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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 02:33 AM
usb+epsonc80+Samba print sharing problem jr87 Linux - Hardware 1 01-23-2004 05:19 PM
slack and samba print sharing? doublefailure Linux From Scratch 1 06-08-2003 12:10 PM
Print sharing with samba katarn444 Linux - Networking 2 05-21-2003 11:40 AM
slack and samba print sharing? doublefailure Slackware 2 04-07-2003 08:34 PM


All times are GMT -5. The time now is 03:52 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