Arjen van Drie
2001-Sep-24  07:00 UTC
Repost, kinda urgent: changing printer device settings: changes not applied.
Please excuse me, but I haven't found an answer yet, and still 
trying. Does anybody have a clue, even a tiny one?
Arjen.
----- Forwarded message from Arjen van Drie <arjen-samba@3va.net> -----
Hi,
I'm using samba-2.2.1a on a Debian Linux box as a Debian package.
It only serves as a printserver for about 35 printers which are
all in /etc/printcap. Samba exports them all through the [printers]
section in smb.conf. "guest ok = yes" for the [printers]
The problem is as follows:
  - printadmin (having uid 0) logs onto the printserver using a
    win2k client
  - printadmin right-clicks on a printer, chooses properties and
    chooses the tab "Device Settings".
  - printadmin changes a few settings and clicks "Apply" and then 
    "Ok"
  
Ok.    
  - User logs in through win2k client. Will be mapped to guest user.
    Checks "Device Settings" for the same printer as printadmin
changed.
  - Changes are not visible, changes are not applied.
Hmm...
  - printadmin logs in again.
  - printadmin clicks "Device Settings" tab of same printer again
  - Changes are not applied; original settings are back in place.
...
Access rights on the filesystem are ok. The directories for [print$]
all have 0755 and are owned by root.root. User printadmin has uid 0
Here is, just for being complete, the smb.conf:
===========================================================
[global]
	netbios name = Printserver
	printing = bsd
	printcap name = /etc/printcap
	printer admin = printadmin, @printadmin
	load printers = yes
	guest account = nobody
	security = share
;	 map to guest = Bad User
	workgroup = MYGROUP
	server string = %h printserver (Samba %v)
	syslog only = no
	syslog = 0;
	log file = /var/log/samba/log.%U
	socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
	encrypt passwords = yes
	os level = 0
	domain master = no
	local master = no
	preferred master = no
	name resolve order = bcast lmhosts host wins 
	dns proxy = no
	preserve case = yes
	short preserve case = yes
	unix password sync = true
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:*
%n\n .
[print$]
	guest ok = yes
	browseable = yes
	path = /var/samba/print
	read only = yes
	write list = printadmin, @printadmin
[printers]
	guest ok = yes
	browseable = yes
	path = /var/samba/printers
	printable = yes
	write list = printadmin, @printadmin
====================================== End smb.conf ========================
A loglevel of 2 tells me this:
[2001/09/20 17:41:52, 0]
rpc_server/srv_spoolss_nt.c:_spoolss_getprinterdata(1313)
	_spoolss_getprinterdata: Invalid handle (OTHER).
[2001/09/20 17:41:52, 0] rpc_server/srv_spoolss_nt.c:close_printer_handle(257)
	close_printer_handle: Invalid handle (OTHER)
[2001/09/20 17:45:04, 0] rpc_server/srv_samr_nt.c:_samr_query_useraliases(2454)
	_samr_query_useraliases: Not yet implemented.
[2001/09/20 17:45:47, 0] rpc_server/srv_spoolss_nt.c:close_printer_handle(257)
	close_printer_handle: Invalid handle (OTHER)
[2001/09/20 17:51:41, 0] rpc_server/srv_samr_nt.c:_samr_query_useraliases(2454)
	_samr_query_useraliases: Not yet implemented.
[2001/09/20 17:54:11, 0] rpc_server/srv_samr_nt.c:_samr_query_useraliases(2454)
	_samr_query_useraliases: Not yet implemented.
Any help would definitely be appreciated.
-- 
Grtz, 
Arjen.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba
----- End forwarded message -----
-- 
Grtz, 
Arjen.