Привет всем убунтологам.
Начну с того что линуск я изучаю недавно, но уже кое что умею

Вообщем тему хочу снова поднять, так как она актуальна до сих пор. Прочитав эту статью, и сделав все что в ней рекомендовали, я так и не смог получить нужного результата... Объясню суть своей проблемы. Буду очень Вам благодарен. Просидел над этой проблемой уже 3 дня.
Система Ubuntu 10.04 со всеми обновлениями.Сеть с доменами. Самба успешно вступила в домен, и отлично в нем работает. Но есть одно НО, которое появляется после перезагрузки компьютера - самба не получает принтеры от Cups. Из-за этого печать на Линукс-принтер естественно останавливается, так как пропадают шары принтеров в сети. Если произвести перезапуск самбы (только самбы), то нормальная работа самбы востанавливается до следующего выключения или перезагрузки машины. Детально изучал все логи самбы. Привожу их ниже.
LOG.NMBD
[2010/08/12 11:51:26, 0] nmbd/nmbd.c:854(main)
nmbd version 3.4.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
LOG.WINBINDd
winbindd version 3.4.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2010/08/12 11:51:25, 0] winbindd/winbindd_cache.c:2578(initialize_winbindd_cache)
initialize_winbindd_cache: clearing cache and re-creating with version number 1
LOG.SMBD
smbd version 3.4.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2010/08/12 11:51:24, 0] printing/print_cups.c:103(cups_connect)
Unable to connect to CUPS server localhost:631 - Connection refused
[2010/08/12 11:51:24, 0] printing/print_cups.c:103(cups_connect)
Unable to connect to CUPS server localhost:631 - Connection refused
[2010/08/12 11:51:24, 0] smbd/server.c:1115(main)
standard input is not a socket, assuming -D option
[2010/08/12 11:51:24, 0] smbd/server.c:457(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
Первые 2 лога показывают что все идеально и чисто. Логи купса выкладывать считаю не имеют смысла, т.к. они пустые... Ошибок нет.
Я считаю что проблема кроется в строке
Unable to connect to CUPS server localhost:631 - Connection refused, которая говорит о том что самба не смогла подцепиться к КУПС. Начал копать по этому поводу.. Ничего дельного кроме изменения приоритетов запуска не нашел.
Попробывал изменить приоритеты. У самбы поставил вообще 99 а у купса 01. Результат остался таким же...
Скачал bootchart и стал изучать картинку запуска сервисов системы. Прилагаю ее ниже.
Судя по картинке, сабма запускается в любом случае раньше купса! Что бы я не делал! И какой бы я приоритет не ставил! Кстате приоритет устанавливал через BootUp Manager (или "бум" в простонародии). Изменения проверял в дирректориях /etc/rcX.d где Х - цифра или буква S.
Вопрос: вот как сделать так чтобы cups запускался раньше самбы?! Есть ли у Вас какие идеи?
Прилагаю конфиги купса и самбы
smb.conf
#======================= Global Settings =======================
[global]
workgroup = PAVLODAR
server string =
# wins support = no
; wins server = w.x.y.z
dns proxy = no
; name resolve order = lmhosts host wins bcast
#### Networking ####
; interfaces = 127.0.0.0/8 eth0
; bind interfaces only = yes
#### Debugging/Accounting ####
log file = /var/log/samba/log.%m
max log size = 1000
# syslog only = no
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
; encrypt passwords = yes
; passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
########## Domains ###########
; domain logons = yes
; logon drive = H:
# logon home = \\%N\%U
; logon script = logon.cmd
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
; add group script = /usr/sbin/addgroup --force-badname %g
########## Printing ##########
load printers = yes
; printing = bsd
; printcap name = /etc/printcap
printing = cups
printcap name = cups
############ Misc ############
; include = /home/samba/etc/smb.conf.%m
# SO_RCVBUF=8192 SO_SNDBUF=8192
# socket options = TCP_NODELAY
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash
; winbind enum groups = yes
; winbind enum users = yes
; usershare max shares = 100
; usershare allow guests = no
password server = 192.168.1.1
security = domain
realm = PAVLODAR
smb ports = 445
; guest ok = no
; guest account = nobody
#======================= Share Definitions =======================
[printers]
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
; guest ok = yes
; read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
; browseable = yes
; read only = yes
; guest ok = yes
; write list = root, @lpadmin
[Видео]
path = /home/artem/Видео
; writeable = No
; browseable = yes
guest ok = yes
[Картинки]
path = /home/artem/Картинки
; writeable = No
; browseable = yes
guest ok = yes
[Музыка]
path = /home/artem/Музыка
; writeable = No
; browseable = yes
guest ok = yes
[Дистрибутив]
path = /home/artem/Дистрибутив
; writeable = no
; browseable = yes
guest ok = yes
[Работа]
path = /home/artem/Работа
writeable = yes
; browseable = yes
guest ok = yes
Cupssd.conf
LogLevel warn
MaxLogSize 1m
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols cups
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
<Location />
# Allow shared printing...
Order allow,deny
Allow all
</Location>
<Location /admin>
# Restrict access to the admin pages...
Order allow,deny
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
# Restrict access to the configuration files...
Order allow,deny
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy authenticated>
<Limit Create-Job Print-Job Print-URI>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>