I have ran across a problem that I cant resolve and no one else seems to either. I recently built solaris 2.6 on an ULTRA 1 Sun Box. I retrieved compiled and installed samba 2.0 from their web site I compiled with gcc and everything works well except for the printing. Samba does deliver a file in my /var/spool/smbprint dir but nothing happens from there no matter what lp or other commands I give to the print command. Seems like maybe samba doesnt have the %s variable loaded or is dead on print command = portion as I have tried to copy mv and print from that command line. I have checked all my file permissions and they seem ok any ideas anyone Thank you. I have also tried setting up an account that was different than the nobody acct but to no avail..........
Gene L Reynolds wrote:> > I have ran across a problem > that I cant resolve and no one else seems to either. I recently built > solaris 2.6 on > an ULTRA 1 Sun Box. I retrieved compiled and installed samba 2.0 from > their web site > I compiled with gcc and everything works well except for the printing. > Samba does deliver a file in my /var/spool/smbprint dir but nothing happens > from there no matter what lp or other commands I give to the print > command. > Seems like maybe samba doesnt have the %s variable loaded or is dead > on print command = portion as I have tried to copy mv and print from that > command line. I have checked all my file permissions and they seem ok > any ideas anyone Thank you. I have also tried setting up an account > that was different than the nobody acct but to no avail..........That won't solve your problem but I replaced my solaris printing commands and I use the LPRng package. -- mailto:frankie@etsetb.upc.es http://www.etsetb.upc.es/~frankie ^-^.-----, o o _ ) Errors, like straws, upon the surface flow; Y (_, (__(Ssss He who would search for pearls must dive below.
Gene L Reynolds wrote:> I changed my print command = print command = /usr/bin/echo "printed %s on %p" >> > /tmp/whatsup and here is my > log messages. I find it interesting that the %p variable gave /tmp instead > of the printer name.Indeed: my notes say: %s - the name of the file to be printed, a a full path (e.g., /tmp/fred) %f - the name of the file, but without the path (e.g., fred ) %p - the name of the Unix printer to use, and %j - the number of the print job, for the lprm, lppause and lpresume and %P - current share's root directory (actual) %p - current share's root directory (in an nis homedir map) %p - print file name (printing only) Gene then tried using %P> is up here is the latest . sasabo is the printer i have configured on my > NT machine. nobody is the guest account user. > again thanks for the help I hate to keep bothereing you... > > Running the command `/usr/bin/echo "printed GYR.0OMicP on sasabo" >> > /tmp/whatsup' gave -1The %p/%P behavior is WIERD! anyone on the list recognize it??? The first thing to test is create a file in /tmp, su to nobody and see if you can print (I can on 2.7) Your process should be able to write to /tmp, print and delete its own files. .. The echo command should have run and returned 0. I just repeated the tests on 2.6, and they all work ok here... --dave -- David Collier-Brown, | Always do right. This will gratify some people 185 Ellerslie Ave., | and astonish the rest. -- Mark Twain Willowdale, Ontario | http://java.science.yorku.ca/~davecb Work: (905) 477-0437 Home: (416) 223-8968 Email: davecb@canada.sun.com
> Gene L Reynolds wrote: > > I changed my print command = print command = /usr/bin/echo "printed %s on %p" >> > > /tmp/whatsup and here is my > > log messages. I find it interesting that the %p variable gave /tmp instead > > of the printer name.Do you have "printable = yes" in the share definition? Matt -- Matt Chapman m.chapman@student.unsw.edu.au
Gene and I wrote:> I changed my print command = print command = /usr/bin/echo "printed %s on %p" >> > /tmp/whatsup and here is my > log messages. I find it interesting that the %p variable gave /tmp instead > of the printer name.This apparently was a library permissions problem whose effect was to drive Samba berserk! Shared libraries considered harmfull? (:-)) --dave c-b -- David Collier-Brown, | Always do right. This will gratify some people 185 Ellerslie Ave., | and astonish the rest. -- Mark Twain Willowdale, Ontario | http://java.science.yorku.ca/~davecb Work: (905) 477-0437 Home: (416) 223-8968 Email: davecb@canada.sun.com
I just upgraded a Solaris 2.6 server to Samba 2.0.4 using the binary package from samba.org. I am experiencing problems printing, the server is slow (it tales 20-60 seconds for the printer properties to menu to display) on a windows NT machine. All printers are printing through HP Jetadmin software which seems to work fine from UNIX. I have a similar installation running a pre 2.0 samba which does not exhibit this problem. I would appreciate any pointers on resolving this. -- Robert Steinmetz, AIA email: rob@steinmetznet.com Principal Steinmetz & Associates