I use to have a working custom "print command =" in my smb.conf until
an
upgrade to 3.0.28.
OS: Suse 10.2
Samba: 3.0.28
Cups: 1.2.7
relevant smb.conf snippet
[global]
lpq command = lpstat -o%p
ldap ssl = no
name resolve order = host lmhosts bcast
idmap gid = 15000-20000
include = /etc/samba/dhcp.conf
logon drive = P:
map to guest = Bad User
public = yes
winbind use default domain = Yes
realm = CANWEST.IBIGROUP.COM
lprm command = cancel %p-%j
printer admin = CANWEST\mvanderleest, mvanderleest, admin,
administrator, root
logon home = \\%L\%U\.9xprofile
cups options = raw
lpresume command = lp -i %p-%j -H resume
print command = /usr/local/bin/printaccountserver.py '%f'
'%p' '%m'
'%I' '%U' '%u' '%s' '%J' '%z'
'%a' &
printing = sysv
server string = SCA040002PS01
password server = 10.120.80.4
idmap uid = 15000-20000
queuepause command = disable %p
workgroup = CANWEST
logon path = \\%L\profiles\.msprofile
os level = 65
queueresume command = enable %p
lppause command = lp -i %p-%j -H hold
printcap name = cups
security = ADS
usershare allow guests = Yes
winbind enum users = yes
winbind enum groups = yes
[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No
#browseable = Yes
guest ok = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = CANWEST\mvanderleest, mvanderleest, admin,
administrator, @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775
now testparm reveals:
SCA040002PS01:~ # testparm
Load smb config files from /etc/samba/smb.conf
Can't find include file /etc/samba/dhcp.conf
WARNING: The "printer admin" option is deprecated
Processing section "[profiles]"
Processing section "[users]"
Processing section "[groups]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[printclient]"
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions
[global]
workgroup = CANWEST
realm = CANWEST.IBIGROUP.COM
server string = SCA040002PS01
security = ADS
map to guest = Bad User
password server = 10.120.80.4
name resolve order = host lmhosts bcast
printcap name = cups
logon path = \\%L\profiles\.msprofile
logon drive = P:
logon home = \\%L\%U\.9xprofile
os level = 65
ldap ssl = no
usershare allow guests = Yes
idmap uid = 15000-20000
idmap gid = 15000-20000
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
printer admin = CANWEST\mvanderleest, mvanderleest, admin,
administrator, root
guest ok = Yes
printing = sysv
cups options = raw
print command = lp -c -d%p %s; rm %s
lpq command = lpstat -o%p
lprm command = cancel %p-%j
lppause command = lp -i %p-%j -H hold
lpresume command = lp -i %p-%j -H resume
queuepause command = disable %p
queueresume command = enable %p
include = /etc/samba/dhcp.conf
Restared samba, the works and still can't figure out why "print command
= lp
-c -d%p %s; rm %s" is showing up as my print command instead of the one
specified in the smb.conf file.
Any help would be appreciated.
Thanks!
Greg
Hi Greg, put the "printing = sysv" line *before* the "print command = ..." line in your smb.conf file. Bye, Martin Greg Saunders schrieb:> I use to have a working custom "print command =" in my smb.conf until an > upgrade to 3.0.28. > > OS: Suse 10.2 > Samba: 3.0.28 > Cups: 1.2.7 > > relevant smb.conf snippet > > [global] > lpq command = lpstat -o%p > ldap ssl = no > name resolve order = host lmhosts bcast > idmap gid = 15000-20000 > include = /etc/samba/dhcp.conf > logon drive = P: > map to guest = Bad User > public = yes > winbind use default domain = Yes > realm = CANWEST.IBIGROUP.COM > lprm command = cancel %p-%j > printer admin = CANWEST\mvanderleest, mvanderleest, admin, > administrator, root > logon home = \\%L\%U\.9xprofile > cups options = raw > lpresume command = lp -i %p-%j -H resume > print command = /usr/local/bin/printaccountserver.py '%f' '%p' '%m' > '%I' '%U' '%u' '%s' '%J' '%z' '%a' & > printing = sysv > server string = SCA040002PS01 > password server = 10.120.80.4 > idmap uid = 15000-20000 > queuepause command = disable %p > workgroup = CANWEST > logon path = \\%L\profiles\.msprofile > os level = 65 > queueresume command = enable %p > lppause command = lp -i %p-%j -H hold > printcap name = cups > security = ADS > usershare allow guests = Yes > winbind enum users = yes > winbind enum groups = yes > > [printers] > comment = All Printers > path = /var/tmp > create mask = 0600 > printable = Yes > browseable = No > #browseable = Yes > guest ok = Yes > > [print$] > comment = Printer Drivers > path = /var/lib/samba/drivers > write list = CANWEST\mvanderleest, mvanderleest, admin, > administrator, @ntadmin, root > force group = ntadmin > create mask = 0664 > directory mask = 0775 > > now testparm reveals: > > SCA040002PS01:~ # testparm > Load smb config files from /etc/samba/smb.conf > Can't find include file /etc/samba/dhcp.conf > WARNING: The "printer admin" option is deprecated > Processing section "[profiles]" > Processing section "[users]" > Processing section "[groups]" > Processing section "[printers]" > Processing section "[print$]" > Processing section "[printclient]" > Loaded services file OK. > Server role: ROLE_DOMAIN_MEMBER > Press enter to see a dump of your service definitions > > [global] > workgroup = CANWEST > realm = CANWEST.IBIGROUP.COM > server string = SCA040002PS01 > security = ADS > map to guest = Bad User > password server = 10.120.80.4 > name resolve order = host lmhosts bcast > printcap name = cups > logon path = \\%L\profiles\.msprofile > logon drive = P: > logon home = \\%L\%U\.9xprofile > os level = 65 > ldap ssl = no > usershare allow guests = Yes > idmap uid = 15000-20000 > idmap gid = 15000-20000 > winbind enum users = Yes > winbind enum groups = Yes > winbind use default domain = Yes > printer admin = CANWEST\mvanderleest, mvanderleest, admin, > administrator, root > guest ok = Yes > printing = sysv > cups options = raw > print command = lp -c -d%p %s; rm %s > lpq command = lpstat -o%p > lprm command = cancel %p-%j > lppause command = lp -i %p-%j -H hold > lpresume command = lp -i %p-%j -H resume > queuepause command = disable %p > queueresume command = enable %p > include = /etc/samba/dhcp.conf > > Restared samba, the works and still can't figure out why "print command = lp > -c -d%p %s; rm %s" is showing up as my print command instead of the one > specified in the smb.conf file. > > Any help would be appreciated. > > Thanks! > Greg