[Samba] Samba Cups Windows 98 Raw Printing - need help
Louis van Belle
louis at van-belle.nl
Fri Oct 7 07:03:53 GMT 2005
Hi again,
This is my working config
did you do this ??
use the password of the real root account.
smbpasswd -a root
Check the NT SE Rights
net rpc rights list accounts
(rootpasswd)
Which rights are possible
net rpc rights list
(rootpasswd)
adding rights to domain groups
for PDC/BDC this has to be done on both servers
"net rpc group" or "slapcat | grep Group | grep dn"
(rootpasswd)
Domain Admins
Domain Users
Domain Guests
Domain Computers
Administrators
Print Operators
Backup Operators
Replicators
Privilege Description
SeMachineAccountPrivilege Add machines to domain
SePrintOperatorPrivilege Manage printers
SeAddUsersPrivilege Add users and groups to the domain
SeRemoteShutdownPrivilege Force shutdown from a remote system
SeDiskOperatorPrivilege Manage disk share
Give the "Domain Admins" all rights. ( -S Servernaam -U Username%Password )
net -S PDC -U root%Password rpc rights grant "DOMAIN\Domain Admins" /
SeMachineAccountPrivilege SePrintOperatorPrivilege SeAddUsersPrivilege /
SeDiskOperatorPrivilege SeRemoteShutdownPrivilege
Give the "Printer Operators" all Printmanage rights. ( -S Servernaam -U
Username%Password )
net -S PDC -U root%Password rpc rights grant "DOMAIN\Print Operators"
SePrintOperatorPrivilege
>>>>>>>>>>>>>>>>>>>>>>>>smb.conf
## PRINTING Section 1 !! Global Settings !!
printing = cups
load printers = Yes
show add printer wizard = Yes
max print jobs = 100
printcap name = cups
printer admin = @"Printer Operators",@"Domain
Admins",Administrator,root
lpq cache time = 20
use client driver = No
disable spoolss = No
max reported print jobs = 1000
# PRINTING Section 2 !!
# users are able to connect to any printer specified in the Samba host's
# printcap file ( /etc/printcap ) provided through cups
[printers]
comment = All Network Printers
printable = yes
path = /home/samba/spool
browseable = No
guest ok = yes
public = yes
read only = yes
writable = no
create mode = 0777
lpq command = /usr/bin/lpq -P'%p'
lprm command = /usr/bin/lprm -P'%p' %j
lppause command = /usr/sbin/lpc hold '%p' %j
lpresume command = /usr/sbin/lpc release '%p' %j
queueresume command = /usr/sbin/lpc start '%p'
queuepause command = /usr/sbin/lpc stop '%p'
# Print Command is not used when using cups
# print command = /usr/bin/lpr -r -P'%p' %s
### Printing Section 3 "The Windows Printer drivers"
# Required permissions
# The account used to connect to the Samba host must have
# a UID of 0 (i.e., a root account). ( or Administrator )
# The account used to connect to the Samba host must be
# named in the printer adminlist.
# Or The account used to connect to the Samba host must have
# SEPrintOperatorRights
[print$]
comment = Printer Drivers Download Area
path = /home/samba/printers
### ( chown Administrator:"domain Admins" ) and chmod 775 on
/home/samba/printers
browseable = no
guest ok = no
read only = yes
write list = @"Print Operators",@"Domain Admins",Administrator,root
create mask = 0664
directory mask = 0775
valid users = @"Domain Users",@"Print Operators",@"Domain
Admins",Administrator,root
>-----Oorspronkelijk bericht-----
>Van: samba-bounces+louis=van-belle.nl at lists.samba.org
>[mailto:samba-bounces+louis=van-belle.nl at lists.samba.org]
>Namens Louis van Belle
>Verzonden: vrijdag 7 oktober 2005 8:48
>Aan: samba at lists.samba.org
>Onderwerp: RE: [Samba] Samba Cups Windows 98 Raw Printing - need help
>
>Hi, did you try to make de spooler name ( sharename ) of the
>printer "win98 photosmart" smaller to max 12 characters.
>and leave the space out. Name it for example like this
>w98_photosm and try again.
>
>Loius
>
>
>>-----Oorspronkelijk bericht-----
>>Van: samba-bounces+louis=van-belle.nl at lists.samba.org
>>[mailto:samba-bounces+louis=van-belle.nl at lists.samba.org]
>>Namens Joe Cipale
>>Verzonden: donderdag 6 oktober 2005 22:19
>>Aan: Craig White
>>CC: samba at lists.samba.org
>>Onderwerp: Re: [Samba] Samba Cups Windows 98 Raw Printing - need help
>>
>>I have used both with and without '_' and I am still unable to
>>get Samba CUPS printing to work... in either direction (linux
>><-> W2K). I can even get smbclient printing to work.
>>
>>Joe
>>
>>Craig White wrote:
>>
>>> On Thu, 2005-10-06 at 13:03 -0700, Dave Sheckells wrote:
>>> > Hello -
>>> > I am trying to use Samba and Cups to serve a file share
>and a "raw"
>>> > printer to a Windows 98 client. I am using Gentoo Linux, kernel
>>> > 2.6.12, Samba 3.0.14a, and Cups 1.1.23. I can access the
>>data share
>>> > from the Samba server, but the printer share does not show
>>up when I
>>> > try to use it, even if I specifically type in the name of
>the share
>>> > (\\data_dog\win98_photosmart) it still doesn't work.
>>> >
>>> > I had this working with this laptop and a "practice" file server I
>>> > had, the hard drive died in that machine, so I've set up
>>my new file
>>> > server and I can't get this to work.
>>> >
>>> > Before I had either of the file servers I had installed
>the printer
>>> > directly on this laptop. When I set up the "practice"
>file server I
>>> > was able to make it work by changing the port the printer
>used from
>>> > it's own usb to the printer share, \\data_dog\win98_photosmart (to
>>> > change the printer port in Win 98 you go to the detail tab of the
>>> > printer properties
>> dialog box).
>>> >
>>> > I have been trying every different samba and cups option I could
>>> > google for the last week. Please look over my smb.conf and
>>cupsd.conf
>>> > and tell me where I'm going wrong.
>>> >
>>> > data_dog ~ # cat /etc/samba/smb.conf
>>> > [global]
>>> > netbios name = data_dog
>>> > workgroup = sheckellfield
>>> > server string = samba %v on %L
>>> > security = user
>>> > encrypt passwords = yes
>>> > wins support = yes
>>> > local master = yes
>>> > os level = 128
>>> > log level = 3
>>> > log file = /var/log/samba.log
>>> > max log size = 50
>>> > hosts allow = 192.168.0.
>>> > read only = no
>>> > printing = cups
>>> > printcap = cups
>>> > load printers = yes
>>> >
>>> > [data]
>>> > path = /srv/samba/data_share
>>> > comment = %S on %L
>>> > volume = data_share
>>> > create mask = 0660
>>> > directory mask = 0770
>>> > force create mode = 0660
>>> > force directory mode = 0770
>>> >
>>> > [win98_photosmart]
>>> > comment = HP Photosmart 7150
>>> > printer = win98_photosmart
>>> > path = /var/spool/samba/win98_photosmart
>>> > browseable = yes
>>> > guest ok = yes
>>> > writable = no
>>> > printable = yes
>>> > printer admin = root, @wheel
>>> > use client driver = yes
>>> ----
>>> maybe it's just me but I've had problems using the
>>underscore in machine
>>> names and have resorted to only letters/numbers/hyphens
>>>
>>> Craig
>>>
>>>
>>> --
>>> This message has been scanned for viruses and
>>> dangerous content by MailScanner, and is
>>> believed to be clean.
>>>
>>> --
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions: https://lists.samba.org/mailman/listinfo/samba
>>
>>--
>>To unsubscribe from this list go to the following URL and read the
>>instructions: https://lists.samba.org/mailman/listinfo/samba
>>
>
>--
>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