After almost every reboot, Samba printing is DOA under Solaris 2.6...
Rick Flower
Rick.Flower at trw.com
Fri May 8 22:42:06 GMT 1998
I just thought that I would put this out there and see if anyone else
sees this problem with Samba 1.9.18p4 (under Solaris 2.6).
It appears that after some reboots of Solaris, Samba printing is partly
dead. What I see in the logs are below, and what happens is that the
file to be printed is spooled to /var/spool/samba, like always, but
when the lpr command is issued it croaks. I've been able to play
with it and sometimes find that once I get it working, it is good until
the next reboot (of Solaris). Now, the return status is 256, which
really doesn't tell me anything as the man page for the Solaris lpr
command states :
EXIT STATUS
The following exit values are returned:
0 Successful completion.
non-zero An error occurred.
Now, the interesting thing is that I CAN issue the same exact lpr command
by hand and it works fine (after the fact). The one thing that bothers me is that
according to the logs, Samba is closing the file AFTER the lpr command is issued!
I'm wondering if this is just a simple file-locking issue?!?
my current protection settings on the /var/spool/samba directory are as follows :
drwxrwxrwx 2 root other 512 May 8 15:25 samba
Any ideas are appreciated!
-- Rick
05/04/1998 14:17:08 Transaction 7224 of length 4146
switch message SMBwrite (pid 12659)
chdir to /
chdir to /var/spool/samba
05/04/1998 14:17:08 write fnum=96 cnum=92 num=4094 wrote=4094
05/04/1998 14:17:08 Transaction 7225 of length 1496
switch message SMBwrite (pid 12659)
05/04/1998 14:17:08 write fnum=96 cnum=92 num=1444 wrote=1444
05/04/1998 14:17:08 Transaction 7226 of length 46
switch message SMBclose (pid 12659)
del_share_modes Deleting share mode entry dev=8388608 ino=25042
del_share_modes num entries = 0, deleting share_mode dev=8388608 ino=25042
fd_attempt_close on file_fd_struct 16, fd = 23, dev = 800000, inode = 61d2, open_flags = 2, ref_count = 1.
Running the command `lpr -r -Pb201_1718_bay /var/spool/samba/FLOWER.0KnWXI' gave 256
05/04/1998 14:17:08 flower closed file FLOWER.0KnWXI (numopen=0)
05/04/1998 14:17:08 close fd=-1 fnum=96 cnum=92 (numopen=0)
05/04/1998 14:17:11 Transaction 7227 of length 120
switch message SMBtrans (pid 12659)
chdir to /
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=36 setup=0
========================== SMB.CONF ===============================
;======================= Global Settings =====================================
[global]
debuglevel = 3
workgroup = dh
comment = Justice Samba Server
admin users = root
log file = /usr/local/samba/var/log.%m
username map = /usr/local/samba/lib/users.map
max log size = 50
hide dot files = yes
browseable = yes
preserve case = yes
short preserve case = yes
guest account = guest
encrypt passwords = yes
status = yes
dead time = 60
keep alive = 60
oplocks = false
lock directory = /usr/local/samba/var/locks
locking = yes
domain master = no
local master = yes
preferred master = yes
os level = 65
share modes = yes
wins support = no
wins server = 129.193.108.22
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=16384 SO_RCVBUF=16384
security = user
load printers = no
printing = sysv
print command = lpr -r -P%p %s
printcap name = lpstat
lpq command = lpq -P%p
lprm command = lprm -P%p %j
;============================ Share Definitions ==============================
[201_1718]
comment = Network printer queue for HP Laserjet 5 in Bldg 201/1718 Bay
browseable = yes
available = yes
public = yes
guest ok = yes
writeable = no
printable = yes
printer name = b201_1718_bay
printer driver = HP LaserJet 5/5M PostScript
path = /var/spool/samba
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the samba
mailing list