Printing Problem with NT and Samba

Joel Hammer Joel at HammersHome.com
Fri Nov 30 18:32:21 GMT 2001


This may be a permissions problem.
Have you looked at the logs during an attempt to print by a user that fails?
Try greping through a level 3 log output for "lpr". I think that most
successful command will return a 0. I wish I knew what all the other
numerical error commands stood for.  I assume that an attempt
is made to run lpr and it fails. This might be due to a funny entry in
lpd.perms (which I don't understand but respect). If you read lpd.perms,
you'll know what I mean. You could change lpd.perms to just DEFAULT ACCEPT.
To trouble shoot, I would also use another print command, like:
echo %s > /tmp/junkprint;echo `date` >> /tmp/junkprint
That way, you'll find out if this is confined just to lpr.
There may be some errors in the syslog of the server.
Joel

On Fri, Nov 30, 2001 at 01:27:15PM -0500, amit deshmukh wrote:
> 
> Can anybody reply to this question  ?
> 
> On Sat, 24 Nov 2001, amit deshmukh wrote:
> 
> > Hi,
> > 
> >       My network has samba 2.2.2 installed on Sun with lprng and NT 4.0
> > workstations.
> >       Samba acts as PDC for these workstations. I am using priting through
> > samba. I am using 'disable spoolss = yes' option which means the drivers
> > are on installed on client side and are not downloaded from the server. So
> > all these printers (on Samba) act as Local printers on NT machines. As I
> > am configuring these printers in Administrator login of NT, all other
> > users on NT machine also see these printers. 
> >       Now the problem is these users can see the printer queue (which is
> > done through lpq) with no error and they can also fire the print jobs.
> > But, the jobs never get printed. Instead these jobs are seen in samba
> > spool directory (specified by 'path' under each printer share). I cannot
> > see any jobs with 'lpstat' command on sun machine. So, job never reaches
> > lprng's lpd daemon. 
> >       Another interesting thing is, if I login on NT machine as a
> > 'root' in the domain, then I can print the jobs. Further, once I print a
> > job with this root login, I can print the jobs with any other user in the
> > domain from that NT machine. This thing works till the time I restart the
> > NT machine. Once I restart the NT machine, then it's the same again.
> >       I don't know where the problem is. It's with NT registry or samba
> > setup ? Can somebody help me with this ? 
> > 
> > * I still have some entries for printer drivers evenif they do not mean
> > anything. I also have tried removing them. But it doesn't help.
> > * My users do not have any administrative privileges on NT machine. is
> > this causing any problem ? 
> > 




More information about the samba mailing list