Samba: CUPS printers are not available at startup
Lucio M Nicolosi
lmnicolosi at gmail.com
Thu Apr 14 05:25:41 UTC 2011
Dear fellows
In my Maverick 64 or Natty 64 installs I do not see the expected
automatic reload of CUPS by Samba.
So, every time (hopefully seldon) my system is restarted I manually
run "service smbd restart" to enable shared printers through Samba. Of
course, if smb.conf is edited, smbd auto-reloads and this condition
will not be observed up to the next startup.
I have been following:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/494141
because I thought that was the problem, however they clearly state
that this bug is Lucid-only. Maverick and above should see CUPS
periodically reloaded by the smb.conf parameter "printcap cache time =
700" which I reduced to 30 seconds to no avail.
It seems there's something wrong with my smb or CUPS configuration,
which by the way are very near to default, by I can't find it up.
Can anyone using a Samba server with shared printers please confirm if
this is a local problem (I guess it is) and in this case post any
particular smb parameter needed, besides the usual:
load printers = yes
printing = cups
printcap name = cups
Below the testparm print of the Natty test install:
$ testparm
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = MSHOME
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
printcap cache time = 30
printcap name = cups
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
Thanks,
Lucio
--
Lucio M. Nicolosi, Eng.
Open Source Platform Implementation
System and Applications
GNU/Linux - Ubuntu
More information about the ubuntu-users
mailing list