Samba printers are missing after reboot until smbd is restarted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
This may be related to
https:/
and
https:/
After a reboot Samba printers are not visible until smbd is restarted.
I've tried adding "and started cups" to /etc/init/smbd.conf but that only seemed to work very intermittently (I'm guessing this caused a race condition). I've also tried adding "and started smbd" to /etc/init/cups.conf but that didn't work at all. The only thing that seems to have worked is the patch in this comment https:/
Steps to reproduce
1. Reboot a samba server with printers shared through samba
2. Run "smbclient -L COMPUTER -N" after it comes back up
What is expected:
Samba printers should be listed under Sharename in the output from the smbclient command above or to Windows clients
What happens instead:
Printers are not available through samba until smbd is restarted
$ sudo testparm -S
[sudo] password for nick:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (4096) to minimum Windows limit (16384)
Processing section "[print$]"
Processing section "[printers]"
Processing section "[Nick]"
Processing section "[public]"
WARNING: The security=share option is deprecated
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
server string =
security = SHARE
username map = /etc/samba/smbusers
syslog only = Yes
log file = /var/log/samba.log
announce version = 5.0
name resolve order = hosts wins bcast
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
idmap config * : backend = tdb
[print$]
path = /usr/share/
write list = root
create mask = 0664
directory mask = 0775
guest ok = Yes
[printers]
comment = All Printers
path = /var/spool/samba
write list = root
guest ok = Yes
printable = Yes
print ok = Yes
browseable = No
[Nick]
path = /media/
read only = No
create mask = 0644
[public]
comment = Public Folder
path = /media/Share/Public
force user = nobody
force group = nogroup
read only = No
create mask = 0777
directory mask = 0777
guest ok = Yes
apt-cache policy samba
samba:
Installed: 2:3.6.9-1ubuntu1
Candidate: 2:3.6.9-1ubuntu1
Version table:
*** 2:3.6.9-1ubuntu1 0
500 http://
100 /var/lib/
Status changed to 'Confirmed' because the bug affects multiple users.