Samba Print server

2006-02-21 Thread Graham North

This is supposed to be simple...?
My file shares work fine, I can browse and access files without 
problem.   But printer Access denied unable to connect  It is driving 
me bonkers!

My nobody account looks okay.  My hosts file is okay.
lpr works when on the print server machine - it will print.   Windows can't.
If anyone can give me some suggestions...?

Here is my smb.conf file.

# smb.conf20060220 - re-write - simplify   
#

# NOTE: Whenever you modify this file you should run the command testparm
# to check that you have not many any basic syntactic errors.
#
#=== Global Settings 
=

[global]

   workgroup = DELNORTE
   encrypt passwords = yes
   server string = www_server
   browseable = yes
   printing = bsd
#print command = lpr -s -P %p %s; rm %s
   hosts allow = 192.168.1.100 192.168.1.101 192.168.1.102 
192.168.1.103 #local network


   wins support = no

# Share Definitions 
==

[gn]
   comment = Soleado WebServer
   path = /home/gn
   browseable = yes
   valid users = gn
   writeable = yes

[wqs]
   comment = WQS  WebServer
   path = /home/wqs
   browseable = yes
   writeable = yes
   valid users = gn wqs   



# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[ljet4l]
   comment = HP4L
   path = /var/spool/samba
   printable = yes
   public = yes
#valid users = nobody
#use client driver = yes
  
  Thanks to anyone who can help me out of my misery!

Cheers, Graham/

--
Kindness can be infectious - try it.

Graham North
Vancouver, BC
www.soleado.ca


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 2/17/2006
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Samba Print server

2006-02-21 Thread Glenn Dawson

At 12:32 AM 2/21/2006, Graham North wrote:

This is supposed to be simple...?
My file shares work fine, I can browse and access files without 
problem.   But printer Access denied unable to connect  It is 
driving me bonkers!

My nobody account looks okay.  My hosts file is okay.
lpr works when on the print server machine - it will print.   Windows can't.
If anyone can give me some suggestions...?


You may need guest ok = yes for the printer share.  Unless of course 
you tried that already.


-Glenn



Here is my smb.conf file.

# smb.conf20060220 - re-write - simplify
#
# NOTE: Whenever you modify this file you should run the command testparm
# to check that you have not many any basic syntactic errors.
#
#=== Global Settings =
[global]

   workgroup = DELNORTE
   encrypt passwords = yes
   server string = www_server
   browseable = yes
   printing = bsd
#print command = lpr -s -P %p %s; rm %s
   hosts allow = 192.168.1.100 192.168.1.101 192.168.1.102 
192.168.1.103 #local network


   wins support = no

# Share Definitions ==
[gn]
   comment = Soleado WebServer
   path = /home/gn
   browseable = yes
   valid users = gn
   writeable = yes

[wqs]
   comment = WQS  WebServer
   path = /home/wqs
   browseable = yes
   writeable = yes
   valid users = gn wqs


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[ljet4l]
   comment = HP4L
   path = /var/spool/samba
   printable = yes
   public = yes
#valid users = nobody
#use client driver = yes

  Thanks to anyone who can help me out of my misery!
Cheers, Graham/

--
Kindness can be infectious - try it.

Graham North
Vancouver, BC
www.soleado.ca




No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 2/17/2006

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: More questions on Samba Print server

2006-02-21 Thread Graham North

Hi Andreas and Questions to All:

Well, I took some of your advice and my system is now printing - thank you!
The BSD setup recommendations are much more complicated than a couple of 
other Samba references which I have been reading...?


I had already installed APSFilter last summer, and had a working 
configuration so I new the success was lurking about somewhere.  Trouble 
is, I have been labouring under the assumption that I should be able to 
use the print services WITHOUT logging on as a user first.  My previous 
attempts and this one, still require that I first log onto the network 
as a user.   I have been hoping to set it up to be self-logging at time 
of use.


Is it not possible for the printer to be setup using the nobody acount 
to essentially be a passwordless entry?  Does yours work that way?
If not - if any other users out there can share some secrets in this 
regard...?


Finally, the printer share comments do not show  up anywhere in 
Windows.   My other shares display their comments, the lp on my server 
has for the comment field  ljet4l; r=300x300  Not laser ljet4l on 
www_server as per my share comment below. 
Any suggestions what might be going on here??

Thanks Andreas, or to anyone else who can step in with answers.
Cheers,

My new smb.conf as per most of your suggestions:
# smb.conf20060220 - re-write - simplify   
#

# NOTE: Whenever you modify this file you should run the command testparm
# to check that you have not many any basic syntactic errors.
#
#=== Global Settings 
=

[global]

   workgroup = DELNORTE
   encrypt passwords = yes
   server string = www_server
   browseable = yes
   printing = bsd
#print command = lpr -s -P %p %s; rm %s
   hosts allow = 192.168.1.100 192.168.1.101 192.168.1.102 192.168.1.103

   wins support = no

# Share Definitions 
==

[gn]
   comment = Soleado WebServer
   path = /home/gn
   browseable = yes
   valid users = gn
   writeable = yes

[wqs]
   comment = WQS  WebServer
   path = /home/wqs
   browseable = yes
   writeable = yes
   valid users = gn wqs   



# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer

[printers]
   comment = laser ljet4l on www_server
   path = /var/spool/samba
   browseable = yes
   printable = yes
   guest ok = yes
   create mode = 700
   public = yes
#valid users = nobody
   use client driver = yes
  




Andreas Rudisch wrote:


On Tue, 21 Feb 2006 18:49:28 +0100, Graham North [EMAIL PROTECTED] wrote:


Andreas - thankyou, I will try something like it.
Are you using CUPS or APSFILTER on your BSD machine?
Thanks,  Graham/



Actually I was just using the handbook to set up my printer:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html#PRINTING-ADVANCED-PS 



I am using lpd, the standard spooler, and an input filter in printcap 
to  manage postscript
and the staircase effect, then the printing is done by Ghostscript  
(device=pxlmono). You
should be able to do it this way to, if your printer is supported by  
Ghostscript, which it

probably is.

You already got the smb.conf-part.
--
%cat printcap
Kyocera|lp|Kyocera mita FS-1010:\
:sh:sd=/var/spool/lpd/Kyocera:\
:lp=/dev/lpt0:\
:if=/usr/local/libexec/ifkyocera:
--
%cat ifkyocera
#!/bin/sh
#  Treat LF as CR+LF (to avoid the staircase effect on HP/PCL
#  printers):
#
printf \033k2G || exit 2

#
#  Read first two characters of the file
#
IFS= read -r first_line
first_two_chars=`expr $first_line : '\(..\)'`

if [ $first_two_chars = %! ]; then
#
#  It is PostScript; use Ghostscript to scan-convert and print it.
#
/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=pxlmono \
  -sOutputFile=- -  exit 0
else
#
#  Plain text or HP/PCL, so just print it directly; print a form feed
#  at the end to eject the last page.
#
echo $first_line  cat  printf \033l0H 
exit 0
fi

exit 2
--

I hope this will help a bit.

Andreas




--
Kindness can be infectious - try it.

Graham North
Vancouver, BC
www.soleado.ca


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.12/266 - Release Date: 2/21/2006
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Please help. I really need Samba Print Server

2003-02-04 Thread Greg Pavelcak
I'm running -current from mid January. I have Samba3.0a20 Here's my
smb.conf


[global]
   workgroup = WORKGROUP
   nt acl support = no
   server string = FreeBSD
   load printers = yes
   printcap name = /etc/printcap
   printing = bsd
   log file = /var/log/log.%m
   max log size = 50
   security = share
   socket options = TCP_NODELAY 
   dns proxy = no 
[printers]
   comment = All Printers
   path = /var/spool/samba
   public = yes
   print command = lpr -s -P mnta %s ; rm %s
#   guest ok = yes
   writeable = yes
   printable = yes
   browseable = no
#   use client driver = yes

Most of it is just the default conf. I've tried it with the currently
commented lines in and out. I can see the printer in the network
neighborhood and set it up on Windows 2000 pcs by clicking on it and
following the windows instructions. When I try to print anything, I get
no complaint, but nothing ever prints out.

Any guidance would be greatly appreciated. I have people breathing down
my neck.

Thanks.

Greg

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Please help. I really need Samba Print Server

2003-02-04 Thread Jens Rehsack
Greg Pavelcak wrote:

I'm running -current from mid January. I have Samba3.0a20 Here's my
smb.conf


[global]
   workgroup = WORKGROUP
   nt acl support = no
   server string = FreeBSD
   load printers = yes
   printcap name = /etc/printcap
   printing = bsd
   log file = /var/log/log.%m
   max log size = 50
   security = share
   socket options = TCP_NODELAY 
   dns proxy = no 
[printers]
   comment = All Printers
   path = /var/spool/samba
   public = yes
   print command = lpr -s -P mnta %s ; rm %s
#   guest ok = yes
   writeable = yes
   printable = yes
   browseable = no
#   use client driver = yes

[Printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[OKI24dx]
comment = OKIPAGE 24dx Postscript/HP5 compatible printer
path = /var/spool/samba
printable = Yes
printer name = OKI24dx
read only = No

This defines printers and a specific printer: OKI24dx (named by share).

Try for your conf:

[printers]
   comment = All Printers
   path = /var/spool/samba
   public = yes
   writeable = yes
   printable = yes
   browseable = no

[mnta]
   comment = mnta
   path = /var/spool/samba
   public = Yes
   read only = No
   printer name = mnta
   printable = Yes

So long,
Jens


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Please help. I really need Samba Print Server

2003-02-04 Thread Willie Viljoen
Windows 2000 and NT try to use SPOOLSS functions, which come with the 
advanced print client. The quickest fix is to downgrade them all forcibly 
to LANMANGER clients by adding the disable spoolss = yes options to 
[global]

On Tuesday 04 February 2003 21:57, Greg Pavelcak wrote:
 I'm running -current from mid January. I have Samba3.0a20 Here's my
 smb.conf


 [global]
workgroup = WORKGROUP
nt acl support = no
server string = FreeBSD
load printers = yes
printcap name = /etc/printcap
printing = bsd
log file = /var/log/log.%m
max log size = 50
security = share
socket options = TCP_NODELAY
dns proxy = no
disable spoolss = yes
 [printers]
comment = All Printers
path = /var/spool/samba
public = yes
print command = lpr -s -P mnta %s ; rm %s
 #   guest ok = yes
writeable = yes
printable = yes
browseable = no
 #   use client driver = yes

 Most of it is just the default conf. I've tried it with the currently
 commented lines in and out. I can see the printer in the network
 neighborhood and set it up on Windows 2000 pcs by clicking on it and
 following the windows instructions. When I try to print anything, I get
 no complaint, but nothing ever prints out.

 Any guidance would be greatly appreciated. I have people breathing down
 my neck.

 Thanks.

 Greg

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

-- 
Willie Viljoen
Freelance IT Consultant

214 Paul Kruger Avenue, Universitas
Bloemfontein
9321
South Africa

+27 51 522 15 60
+27 51 522 44 36 (after hours)
+27 82 404 03 27 (mobile)

[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message