[Samba] Can't add printer drivers.
Rob Sell
lists at facnd.com
Tue Dec 23 21:38:22 GMT 2003
Do you have a W32X86 dir in your print$ share? That plagued me for about 2
hours...
-----Original Message-----
From: samba-bounces+lists=facnd.com at lists.samba.org
[mailto:samba-bounces+lists=facnd.com at lists.samba.org] On Behalf Of
jlm17 at lucent.com
Sent: Tuesday, December 23, 2003 12:57 PM
To: samba at lists.samba.org
Subject: [Samba] Can't add printer drivers.
I am having quite some difficulty adding printer drivers to the print$ share
of my Linux box. Here are the details:
Debian Gnu/Linux with kernel 2.4.18 on a Sun Ultra 2. Samba version 2.2.3a.
CUPS version 1.1.19. I am following along in the
printer_driver2.txt file. Here are the relevant lines of my smb.conf:
[global]
username map = /etc/samba/user.map
workgroup = CDE
server string = %h server (Samba %v)
load printers = yes
printcap name = cups
printing = cups
guest account = nobody
invalid users = root
security = share
log file = /var/log/samba/log.%m
log level = 2
max log size = 1000
syslog = 0
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY
dns proxy = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
obey pam restrictions = yes
show add printer wizard = yes
printer admin = root Administrator quantum jlm17
[print$]
comment= Printer Drivers
path=/var/local/printer_drivers_4win
browsable = yes
guest ok= yes
read only = yes
write list = root Administrator quantum jlm17 @lp
admin users = root Administrator quantum jlm17
[homes]
comment = Home Directories
browseable = no
writable = yes
create mask = 0700
directory mask = 0700
[printers]
comment = All Printers
browseable = yes
guest ok = no
path = /var/local/spool/printers
printable = yes
public = yes
writable = yes
create mode = 0700
Here are my permissions:
drwxr-xr-x 8 root staff 4096 Dec 23 08:23
/var/local/printer_drivers_4win/
drwxr-xr-x 2 root staff 4096 Dec 23 08:23
/var/local/printer_drivers_4win/COLOR/
drwxr-xr-x 2 root staff 4096 Dec 23 08:23
/var/local/printer_drivers_4win/W32ALPHA/
drwxr-xr-x 2 root staff 4096 Dec 23 08:23
/var/local/printer_drivers_4win/W32MIPS/
drwxr-xr-x 2 root staff 4096 Dec 23 08:23
/var/local/printer_drivers_4win/W32PPC/
drwxr-xr-x 3 root staff 4096 Dec 23 10:03
/var/local/printer_drivers_4win/W32X86/
drwxr-xr-x 2 root staff 4096 Dec 23 08:23
/var/local/printer_drivers_4win/WIN40/
-rw------- 1 root root 8192 Dec 23 10:02
/var/lib/samba/ntdrivers.tdb
-rw------- 1 root root 8192 Dec 23 10:02
/var/lib/samba/ntforms.tdb
-rw------- 1 root root 8192 Dec 23 10:02
/var/lib/samba/ntprinters.tdb
I am logged into a W2K machine as user jlm17. I browse to the print$ share
of the Linux box. I right click on a printer,
(click no to the popup) and go to the advanced tab. I click new driver,
navigate to my downloaded HP driver (The printer
is an HP LaserJet 5Si/MX), and go to install it. Windows seems to fumble,
and asks me to select the location a second time
but I don't think this has anything to do with Samba. Eventually I see
Windows "appear" to copy the files over, but it fails
at the end with "Access is denied". Here are the relevant lines of my Samba
log, with logging set to level 2:
[2003/12/23 10:03:36, 2] smbd/reply.c:reply_sesssetup_and_X(972)
Defaulting to Lanman password for jlm17
[2003/12/23 10:03:36, 0] smbd/service.c:make_connection(381)
jlm17 logged in as admin user (root privileges)
[2003/12/23 10:03:36, 1] smbd/service.c:make_connection(615)
mvws2 (152.148.112.44) connect to service print$ as user jlm17 (uid=0,
gid=2008) (pid 4289)
[2003/12/23 10:03:36, 2] smbd/open.c:open_file(216)
jlm17 opened file W32X86/SETD4.tmp read=Yes write=No (numopen=1)
[2003/12/23 10:03:36, 2] smbd/close.c:close_normal_file(212)
jlm17 closed file W32X86/SETD4.tmp (numopen=0)
.
.
.
A large number of ommitted lines here for various files (SETD[4-E].tmp and
SETE1.tmp). I'm not sure why it opens and closes
the files several times, but it does.
.
.
[2003/12/23 10:03:40, 2] smbd/open.c:open_file(216)
jlm17 opened file W32X86/SETE1.tmp read=Yes write=No (numopen=1)
[2003/12/23 10:03:40, 2] smbd/close.c:close_normal_file(212)
jlm17 closed file W32X86/SETE1.tmp (numopen=0)
[2003/12/23 10:03:40, 1] smbd/service.c:make_connection(615)
mvws2 (152.148.112.44) connect to service print$ as user nobody
(uid=65534, gid=65534) (pid 4289)
[2003/12/23 10:03:40, 2] smbd/open.c:open_file(216)
jlm17 opened file W32X86/hpblff2.dll read=Yes write=No (numopen=1)
[2003/12/23 10:03:40, 2] smbd/close.c:close_normal_file(212)
nobody closed file W32X86/hpblff2.dll (numopen=0)
[2003/12/23 10:03:40, 1] smbd/service.c:close_cnum(655)
mvws2 (152.148.112.44) closed connection to service print$
[2003/12/23 10:03:40, 1] smbd/service.c:make_connection(615)
mvws2 (152.148.112.44) connect to service print$ as user nobody
(uid=65534, gid=65534) (pid 4289)
[2003/12/23 10:03:40, 0]
printing/nt_printing.c:move_driver_to_download_area(1441)
move_driver_to_download_area: Unable to rename [W32X86/hpblff2.dll] to
[W32X86/2/hpblff2.dll]
[2003/12/23 10:03:40, 1] smbd/service.c:close_cnum(655)
mvws2 (152.148.112.44) closed connection to service print$
At the top of the log you will note that jlm17 is connected to print$, and
also that jlm17 is logged in as admin user, but
at the bottom, a reconnect is made to print$ as nobody, and nobody is unable
to move the driver download area. This I
believe is the key to my problem, but I have no idea why this is happening.
Any help would be appreciated.
Thanks.
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list