|
|
|
Порядок запуска nmbd winbind
|
|||
|---|---|---|---|
|
#18+
Нужна помощь. Есть файловый сервер на FreeBSD + Samba все настроил и работает, но появилось неудобство после перезагрузки сервера не стартует winbind, опытным путем было выявлено что не стартует он из за nmbd. Приходится останавливать nmbd, тогда winbind сам запускается и запускать nmbd. Очень прошу помощи. Конфиг: rc.confhostname="i6313-app013" keymap="ru.koi8-r.win.kbd" ifconfig_re0="inet 10.xxx.xxx.xxx netmask 255.255.255.0" defaultrouter="10.xxx.xxx.xxx" nmb_enable="YES" sshd_enable="YES" #cupsd_enable="YES" inetd_enable="YES" #nmbd_enable="YES" #smbd_enable="YES" winbindd_enable="YES" samba_enable="YES" # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable dumpdev="AUTO" Логи: winbind [2012/07/25 07:56:55, 0] winbindd/winbindd.c:1336(main) winbindd version 3.6.1 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2012/07/25 07:56:55.356565, 0] winbindd/winbindd_cache.c:3144(initialize_winbindd_cache) initialize_winbindd_cache: clearing cache and re-creating with version number 2 [2012/07/25 07:57:37.916680, 0] winbindd/winbindd.c:211(winbindd_sig_term_handler) Got sig[15] terminate (is_parent=1) [2012/07/25 07:58:53, 0] winbindd/winbindd.c:1336(main) winbindd version 3.6.1 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2012/07/25 07:58:53.364630, 0] winbindd/winbindd_cache.c:3144(initialize_winbindd_cache) initialize_winbindd_cache: clearing cache and re-creating with version number 2 [2012/07/25 08:03:43.036818, 0] winbindd/winbindd_cm.c:835(cm_prepare_connection) cm_prepare_connection: getpeername failed with: Socket is not connected [2012/07/25 08:30:17.762938, 0] winbindd/winbindd.c:211(winbindd_sig_term_handler) Got sig[15] terminate (is_parent=1) [2012/07/25 08:31:24, 0] winbindd/winbindd.c:1336(main) winbindd version 3.6.1 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2012/07/25 08:31:24.171544, 0] winbindd/winbindd_cache.c:3144(initialize_winbindd_cache) initialize_winbindd_cache: clearing cache and re-creating with version number 2 [2012/07/25 08:35:31.160696, 0] winbindd/winbindd_cm.c:835(cm_prepare_connection) cm_prepare_connection: getpeername failed with: Socket is not connected [2012/07/25 08:54:18.076483, 0] winbindd/winbindd.c:211(winbindd_sig_term_handler) Got sig[15] terminate (is_parent=1) [2012/07/25 08:55:23, 0] winbindd/winbindd.c:1336(main) winbindd version 3.6.1 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2012/07/25 08:55:23.354799, 0] winbindd/winbindd_cache.c:3144(initialize_winbindd_cache) initialize_winbindd_cache: clearing cache and re-creating with version number 2 [2012/07/25 08:58:13, 0] winbindd/winbindd.c:1336(main) winbindd version 3.6.1 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2012/07/25 08:58:13.959997, 0] lib/pidfile.c:122(pidfile_create) ERROR: winbindd is already running. File /var/run/samba/winbindd.pid exists and process id 1130 is running. [2012/07/25 08:58:19.316268, 0] winbindd/winbindd_cm.c:835(cm_prepare_connection) cm_prepare_connection: getpeername failed with: Socket is not connected [2012/07/25 08:58:19.382233, 0] winbindd/winbindd.c:211(winbindd_sig_term_handler) Got sig[15] terminate (is_parent=1) [2012/07/25 08:58:24, 0] winbindd/winbindd.c:1336(main) winbindd version 3.6.1 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2012/07/25 08:58:24.689571, 0] winbindd/winbindd_cache.c:3144(initialize_winbindd_cache) initialize_winbindd_cache: clearing cache and re-creating with version number 2 [2012/07/25 09:00:11.676396, 0] winbindd/winbindd.c:211(winbindd_sig_term_handler) Got sig[15] terminate (is_parent=1) [2012/07/25 09:01:17, 0] winbindd/winbindd.c:1336(main) winbindd version 3.6.1 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2012/07/25 09:01:17.288071, 0] winbindd/winbindd_cache.c:3144(initialize_winbindd_cache) initialize_winbindd_cache: clearing cache and re-creating with version number 2 [2012/07/25 09:07:30.252270, 0] winbindd/winbindd_cm.c:835(cm_prepare_connection) cm_prepare_connection: getpeername failed with: Socket is not connected [2012/07/25 09:08:44.056282, 0] winbindd/winbindd.c:211(winbindd_sig_term_handler) Got sig[15] terminate (is_parent=1) [2012/07/25 09:09:50, 0] winbindd/winbindd.c:1336(main) winbindd version 3.6.1 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2012/07/25 09:09:50.338087, 0] winbindd/winbindd_cache.c:3144(initialize_winbindd_cache) initialize_winbindd_cache: clearing cache and re-creating with version number 2 log.nmbd смыла выкладывать нету, там ничего интересного. P.S. Просьба рассказать более подробно т.к. в Unix новичок. Заранее спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.07.2012, 13:13 |
|
||
|
Порядок запуска nmbd winbind
|
|||
|---|---|---|---|
|
#18+
В кратце, стартует скрипт /usr/local/etc/rc.d/samba, который и определяет, что и в какой последовательности стартовать, посмотрите его содержимое и вы увидите, что smbd и nmbd стартуют всегда при указании 'samba_enable="YES"' а вот, если в smb.conf есть параметр 'idmap uid', в зависимости от версий может быть разное, то и winbind стартует автоматом без усилий и дополнительных телодвижений, в противном случае, надо добавлять в rc.conf 'winbindd_enable="YES"'... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.07.2012, 14:14 |
|
||
|
Порядок запуска nmbd winbind
|
|||
|---|---|---|---|
|
#18+
В smb.conf idmap uid присутствует. Вот конфиг самбы: # Samba config file created using SWAT # Date: 2012/07/25 15:07:31 [global] dos charset = CP866 display charset = CP866 workgroup = MYDOMAIN realm = MYDOMAIN.RU server string = Samba Server interfaces = re0 security = DOMAIN auth methods = winbind map to guest = Bad User log file = /var/log/samba/log.%m max log size = 50 client signing = Yes local master = No domain master = No dns proxy = No wins server = 10.xxx.xxx.xxx ldap ssl = no usershare allow guests = Yes winbind use default domain = Yes idmap uid = 10000-20000 idmap gid = 10000-20000 idmap config * : range = 10000-20000 idmap config * : backend = tdb acl group control = Yes hosts allow = 10.xxx.xxx., 255. map acl inherit = Yes case sensitive = No [vol0] comment = User path = /vol0 read only = No create mask = 0664 directory mask = 0777 guest ok = Yes [vol1] comment = vol1 path = /vol1 read only = No create mask = 0664 directory mask = 0777 guest ok = Yes но winbind автоматом не стартует, а в /usr/local/etc/rc.d/samba что-то совсем ничего не понятно. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.07.2012, 15:28 |
|
||
|
Порядок запуска nmbd winbind
|
|||
|---|---|---|---|
|
#18+
Возможно, порядок запуска нарушен. Посмотрите rcorder, кто из них раньше стартует. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.07.2012, 17:50 |
|
||
|
|

start [/forum/topic.php?fid=25&fpage=64&tid=1483441]: |
0ms |
get settings: |
11ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
47ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
| others: | 17ms |
| total: | 156ms |

| 0 / 0 |

Извините, этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
... ля, ля, ля ...