[Samba] Problem with adding printer drivers in Windows XP

Kirk B. Dice kirk at wadipetroleum.com
Wed May 10 18:25:43 GMT 2006


I had a similar situation.  I ended up using the smbclient to pull the
drivers over from NT, then used the rpclient to add and set the drivers.
Instructions on this are in the samba doc link below.  Also try adding the
domain name to your 'root=administrator' user map.

http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting
.html

Kirk

----- Original Message -----
From: "Tom" <savagephp at gmail.com>
To: <samba at lists.samba.org>
Sent: Wednesday, May 10, 2006 11:20 AM
Subject: [Samba] Problem with adding printer drivers in Windows XP


> I know this question has been asked quite a few times from the archive,
> but nothing in the previous posts seems to help my setup. I currently
> have samba 3.0.21c running on Slackware with CUPS as the printing
> conduit. It's setup as a PDC as can be seen from the smb.conf file
> below. I cannot, no matter what I've tried, get the server to allow me
> to add printer drivers to a printer through the printer properties
> dialog box. I've given myself the SePrintOperatorPrivilege rights but
> that didn't work. I tried putting the 'printer admin' directive in the
> smb.conf file and that didn't work; I know it's deprecated but thought
> I'd try anyway. Any suggestions would be greatly appreciated as I've
> been on IRC several times trying to figure this out with no success.
> I've also tried logging in as 'root' and 'administrator' neither of
> which work; my /etc/samba/smbusers contains a line: 'root =
Administrator'.
>
> Configuration files are attached. If any other information is needed I
> will gladly supply it.
>
> Thank you.
>
> Tom
>
>


----------------------------------------------------------------------------
----


> # Global parameters
> [global]
> workgroup = SAVAGEPHP
> netbios name = nightwolf
> passdb backend = tdbsam
> passdb expand explicit = no
> enable privileges = Yes
> pam password change = Yes
> passwd program = /usr/bin/passwd %u
> passwd chat = *New*Password* %n\n *Re-enter*new*password*%n\n
*Password*changed*
> username map = /etc/samba/smbusers
> log level = 5
> syslog = 0
> log file = /var/log/samba/%m
> max log size = 0
> smb ports = 139 445
> name resolve order = wins bcast hosts
> printcap name = CUPS
> show add printer wizard = No
> add user script = /usr/sbin/useradd -m '%u'
> delete user script = /usr/sbin/userdel -r '%u'
> add group script = /usr/sbin/groupadd '%g'
> delete group script = /usr/sbin/groupdel '%g'
> add user to group script = /usr/bin/gpasswd -a '%u' '%g'
> delete user from group script = /usr/bin/gpasswd -d '%u' '%g'
> add machine script = /usr/sbin/useradd -s /bin/false -d /tmp '%u'
> shutdown script = /var/lib/samba/scripts/shutdown.sh
> abort shutdown script = /sbin/shutdown -c
> logon script = scripts\logon.bat
> logon path = \\%L\profiles\%U
> logon drive = H:
> logon home = \\%L\%U
> domain logons = Yes
> preferred master = Yes
> domain master = Yes
> wins support = Yes
> utmp = Yes
> map acl inherit = Yes
> veto files = /*.eml/*.nws/*.{*}/
> veto oplock files = /*.doc/*.xls/*.mdb/
>
> [Printers]
> comment = SMB Print Spool
> path = /var/spool/samba
> guest ok = Yes
> printable = Yes
> use client driver = Yes
> default devmode = Yes
> browseable = No
>
> [print$]
> comment = Printer Drivers
> path = /var/lib/samba/drivers
> browseable = yes
> guest ok = no
> read only = yes
> write list = root, tom
>
> [Apps]
> comment = Application Files
> path = /apps
> admin users = tom
> read only = No
>
> [Homes]
> comment = Home Directories
> valid users = %S
> read only = No
> browseable = No
>
> [netlogon]
> comment = Network Logon Service
> path = /var/lib/samba/netlogon
> guest ok = Yes
> locking = No
>
> [profiles]
> comment = Profile Share
> path = /var/lib/samba/profiles
> read only = No
> profile acls = Yes
>
> [Webroot]
> comment = Webroot
> path = /var/www
> read only = no
> admin users = tom
>
> [Accounts]
> comment = Accounting Files
> path = /data/accounts
> read only = No
>
> [Engineer]
> comment = Engineering Files
> path = /data/engineer
> read only = No
>


----------------------------------------------------------------------------
----


> #### # User mapping file ####
> # File Format
> # -----------
> # Unix_ID = Windows_ID
> #
> # Examples:
> # root = Administrator
> # janes = "Jane Smith"
> # jimbo = Jim Bones
> #
> # Note: If the name contains a space it must be double quoted.
> # In the example above the name 'jimbo' will be mapped to Windows
> # user names 'Jim' and 'Bones' because the space was not quoted.
> #######################################################################
>
> root = Administrator
>
> ####
> # End of File
> ####
>


----------------------------------------------------------------------------
----


> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba



More information about the samba mailing list