[Samba] Test page failed to print. Would you to like ......? Access
is denied.
Jeff Gardiner
gardiner at imaging.robarts.ca
Fri Nov 14 20:12:38 GMT 2003
Hello all, I've gotten the printing subsytem almost working - I think. I am
able to install my print drivers to the server IAW the instructions found
here: http://us4.samba.org/samba/docs/man/printing.html
The drivers are being installed to /etc/samba/drivers/W32X86 IAW
/etc/samba/smb.conf by following the instructions above
This line specifically seems to do it:
[print$]
path = /etc/samba/drivers
This shows up in my windows client as \\server\print$\W32X86\3
The printers show up in \\server\Printers. However, although I can right
click the printer the printer and get the "properties box to pop up, I cannot
get the Test Page to print. I get the error:
Test page failed to print. Would you like to view the print trouble shooter
for assistance? Access is denied.
Also, these strange errors show up in /var/log/samba/
tdb(/usr/local/samba/var/locks/printing/irl.tdb): tdb_oob len 976566084
beyond eof at 67552
[2003/11/14 14:05:21, 0] tdb/tdbutil.c:tdb_log(724)
tdb(/usr/local/samba/var/locks/printing/irl.tdb): tdb_oob len 1530015816
beyond eof at 67552
[2003/11/14 14:05:21, 0] tdb/tdbutil.c:tdb_log(724)
tdb(/usr/local/samba/var/locks/printing/irl.tdb): tdb_oob len 805985098
beyond eof at 67552
[2003/11/14 14:05:21, 0] tdb/tdbutil.c:tdb_log(724)
tdb(/usr/local/samba/var/locks/printing/irl.tdb): tdb_oob len 858730825
beyond eof at 67552
.... ad infinitum
The spooling dir has permissions:
drwxrwxrwx 2 root bin 512 Nov 12 16:14 .
drwxr-xr-x 17 root bin 512 Aug 28 11:39 ..
Can anyone point me in the right direction to solving this. It feels like a
permissions issue somehow. I've included an edited smb.conf file.
Let me know if more information would be helpful:
[global]
debuglevel = 1
comment = Samba %v on Server
netbios name = SERVER
workgroup = MYDOMAIN
preferred master = yes
domain master = yes
local master = yes
security = user
domain logons = yes
logon path = \\%L\%U\profile
logon home = \\%L\%U
logon script = startup.bat
logon drive = t:
server string = Version %v of Samba on host %h where %L is NetBIOS name
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
remote browse sync = xxx.xxx.xxx.xxx
remote announce = xxx.xxx.xxx.xxx
log file = /var/log/samba/log.%m
browseable=yes
browse list = yes
name resolve order = wins lmhosts bcast host
interfaces = xxx.xxx.xxx.xxx/23
add user script = /usr/sbin/useradd -g windows -d /dev/null -s /bin/false -c
"Windows Machine" %m\$
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
null passwords = yes
max log size = 50
max print jobs = 1000
printcap name = /etc/samba/lib/printcap
os level = 99
admin users = root
wins support = yes
hosts allow = xxx.xxx. 127.
printing = lprng
load printers = yes
printer admin = @ntadmin, root
use client driver = no
smb passwd file = /etc/samba/smbpasswd
encrypt passwords = yes
guest account = ftp
username map = /etc/samba/smb.unix2win
[print$]
comment = Printer Driver Download Area
path = /etc/samba/drivers
browseable = yes
guest ok = yes
read only = yes
write list = @ntadmin, root
[printers]
comment = All Printers
browseable = yes
printable = yes
public = yes
writable = no
guest ok = yes
print command = lpr -r -P'%p' %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j
path = /var/spool/samba
[irl]
path=/tmp
comment = Main Lab Lexmark Printer
browseable = yes
printable = yes
public = yes
writable = no
create mode = 0700
lpq command = lpq -Plp-std
lprm command = lprm -Plp-std %j
print command = /irus/bin/lpr -r -h -Plp-std %s
[homes]
comment = Home Directories
read only = No
browseable = No
[netlogon]
comment = Samba Network Logon Service
path = /etc/samba/netlogon
browsable = no
read only = yes
[profile]
comment = User Profiles
create mode = 0600
directory mode = 0700
path = \\%L\%U\profile
csc policy = disable
profile acls = yes
read only = no
valid users = %U, administrator
my file /etc/samba/lib/printcap looks like this:
irl|Main IRL Lexmark
quill|Duplexing IRL Printer
Any help would be appreciated.
Cheers
Jeff
--
Jeff Gardiner [ gardiner at nospam.imaging.robarts.ca ]
System Administrator - Imaging Research Laboratories
Robarts Research Institute - London ON, Canada
519.663.5777 x34089
~~~~~~~
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer
~~~~~~
More information about the samba
mailing list