Проблема с Самбой. Не могу включить в домен сам контролле
Модератор: terminus
Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
-
- проходил мимо
- Сообщения: 1
- Зарегистрирован: 2008-11-27 19:30:06
Проблема с Самбой. Не могу включить в домен сам контролле
Не получается втянуть контроллер домена на самбе 3 в сам домен по команде
Настраивал по статье:
http://www.lissyara.su/?id=1167
#net join pdc-design
Password:
Creation of workstation account failed
Unable to join domain DESIGN
Все сервисы nmbd; smbd; winbindd запускаются при старте.
Пользователя добавлял smbpasswd -a root
В resolv.conf
domain design
search design
Фактически переписал все конфиги и скрипты. Но не работает.
В чем может быть дело? Что не так настроил?
Ниже конфиг Самбы:
без LDAP
smb.conf:
[global]
workgroup = DESIGN
netbios name = PDC-DESIGN
server string = SAMBA PDC for DESIGN
security = user
encrypt passwords = yes
hosts allow = 192.168.0. 127.0.0.
syslog = 0
log level = 10 passdb:10 auth:10 winbind:10
log file = /var/log/samba/log.%m
max log size = 100
socket options = TCP_NODELAY
interfaces = 192.168.0.0/24
local master = yes
os level = 85
domain master = yes
preferred master = yes
domain logons = yes
idmap uid = 5000-9999
idmap gid = 5000-9999
mangling method = hash2
display charset = koi8-r
unix charset = koi8-r
dos charset = cp866
logon script = logon.bat
logon path =
logon home =
template homedir =
wins support = yes
dns proxy = no
# These scripts are used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
add user script = /usr/local/etc/samba/adduserscript.sh "%u"
add group script = /usr/sbin/pw groupadd "%g"
add user to group script = /usr/local/etc/samba/addusertogroupscript.sh "%g" "%u"
# For add account
add machine script = /usr/local/etc/samba/addmachinescript.sh
# Script to prevent simple passwords (12345 etc)
# The password is transferred to an input of the script
check password script = /usr/local/etc/samba/checkpassword.sh
delete user script = /usr/sbin/pw userdel "%u" -r
delete user from group script = /usr/local/etc/samba/deleteuserfromgroupscript.sh "%g" "%u"
delete group script = /usr/sbin/pw groupdel "%g"
rename user script = /usr/local/etc/samba/renameuserscript.sh "%uold" "unew"
shutdown script = /usr/local/etc/samba/shutdownscript.sh
# Setup pramary group for user
set primary group script = /usr/sbin/pw usermod "%u" -g "%g"
message command = /bin/mail -s 'message from %f on %m' root < %s; rm %s
[homes]
comment = Home directories
browseable = no
writable = yes
public = no
valid users = %S
[netlogon]
comment = Network logon service
path = /home/samba/netlogon
guest ok = yes
writable = no
browseable = no
[profiles]
comment = Roaming profile share
path = /home/samba/profiles
read only = no
browseable = no
guest ok = yes
writeable = yes
create mask = 0600
directory mask =0700
profile acls = yes
; force user =%U
; valid users = %U @"Domain admins"
[public]
comment = Common share
path = /home/samba/share/pub
valid users = @"Domain admins", @"Domain users"
public = yes
browseable = yes
guest ok = yes
read only = no
writable = yes
directory mask = 0777
create mask = 0765
[myshare]
comment = Share user
path = /home/samba/share/shareuser
valid users = shareuser
public = no
guest ok = no
read only = no
writable = yes
directory mask = 0777
create mask = 0765
Настраивал по статье:
http://www.lissyara.su/?id=1167
#net join pdc-design
Password:
Creation of workstation account failed
Unable to join domain DESIGN
Все сервисы nmbd; smbd; winbindd запускаются при старте.
Пользователя добавлял smbpasswd -a root
В resolv.conf
domain design
search design
Фактически переписал все конфиги и скрипты. Но не работает.
В чем может быть дело? Что не так настроил?
Ниже конфиг Самбы:
без LDAP
smb.conf:
[global]
workgroup = DESIGN
netbios name = PDC-DESIGN
server string = SAMBA PDC for DESIGN
security = user
encrypt passwords = yes
hosts allow = 192.168.0. 127.0.0.
syslog = 0
log level = 10 passdb:10 auth:10 winbind:10
log file = /var/log/samba/log.%m
max log size = 100
socket options = TCP_NODELAY
interfaces = 192.168.0.0/24
local master = yes
os level = 85
domain master = yes
preferred master = yes
domain logons = yes
idmap uid = 5000-9999
idmap gid = 5000-9999
mangling method = hash2
display charset = koi8-r
unix charset = koi8-r
dos charset = cp866
logon script = logon.bat
logon path =
logon home =
template homedir =
wins support = yes
dns proxy = no
# These scripts are used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
add user script = /usr/local/etc/samba/adduserscript.sh "%u"
add group script = /usr/sbin/pw groupadd "%g"
add user to group script = /usr/local/etc/samba/addusertogroupscript.sh "%g" "%u"
# For add account
add machine script = /usr/local/etc/samba/addmachinescript.sh
# Script to prevent simple passwords (12345 etc)
# The password is transferred to an input of the script
check password script = /usr/local/etc/samba/checkpassword.sh
delete user script = /usr/sbin/pw userdel "%u" -r
delete user from group script = /usr/local/etc/samba/deleteuserfromgroupscript.sh "%g" "%u"
delete group script = /usr/sbin/pw groupdel "%g"
rename user script = /usr/local/etc/samba/renameuserscript.sh "%uold" "unew"
shutdown script = /usr/local/etc/samba/shutdownscript.sh
# Setup pramary group for user
set primary group script = /usr/sbin/pw usermod "%u" -g "%g"
message command = /bin/mail -s 'message from %f on %m' root < %s; rm %s
[homes]
comment = Home directories
browseable = no
writable = yes
public = no
valid users = %S
[netlogon]
comment = Network logon service
path = /home/samba/netlogon
guest ok = yes
writable = no
browseable = no
[profiles]
comment = Roaming profile share
path = /home/samba/profiles
read only = no
browseable = no
guest ok = yes
writeable = yes
create mask = 0600
directory mask =0700
profile acls = yes
; force user =%U
; valid users = %U @"Domain admins"
[public]
comment = Common share
path = /home/samba/share/pub
valid users = @"Domain admins", @"Domain users"
public = yes
browseable = yes
guest ok = yes
read only = no
writable = yes
directory mask = 0777
create mask = 0765
[myshare]
comment = Share user
path = /home/samba/share/shareuser
valid users = shareuser
public = no
guest ok = no
read only = no
writable = yes
directory mask = 0777
create mask = 0765
Услуги хостинговой компании Host-Food.ru
Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/
- Cardinal
- мл. сержант
- Сообщения: 76
- Зарегистрирован: 2008-07-04 18:43:11
- Откуда: Украина, Харьков
- Контактная информация:
Re: Проблема с Самбой. Не могу включить в домен сам контролле
Попробуй
Запросит пароль рута и введи его. И покажи скрипт /usr/local/etc/samba/addmachinescript.sh
И замени строку на
Код: Выделить всё
#net join pdc-design -U root
И замени строку
Код: Выделить всё
add machine script = /usr/local/etc/samba/add_machine_script.sh
Код: Выделить всё
add machine script = /usr/local/etc/samba/add_machine_script.sh "%u"
Последний раз редактировалось Cardinal 2008-11-27 20:46:34, всего редактировалось 1 раз.
Человеческая глупость дает представление о бесконечности.
- MASiK
- лейтенант
- Сообщения: 625
- Зарегистрирован: 2008-09-19 20:09:41
- Откуда: Оттуда
- Контактная информация:
Re: Проблема с Самбой. Не могу включить в домен сам контролле
Аккаунта он не видет, смотри что не так зделол#net join pdc-design
Password:
Creation of workstation account failed
Unable to join domain DESIGN
попробуй
Код: Выделить всё
net user
если есть попробуй чтоли
Код: Выделить всё
net join pdc-design -u root
Самурай
- Cardinal
- мл. сержант
- Сообщения: 76
- Зарегистрирован: 2008-07-04 18:43:11
- Откуда: Украина, Харьков
- Контактная информация:
Re: Проблема с Самбой. Не могу включить в домен сам контролле
Неверная строка. Так не пройдет. Регистр ключа не тот. -UMASiKk писал(а):Код: Выделить всё
net join pdc-design -u root
Человеческая глупость дает представление о бесконечности.
- Alex Keda
- стреляли...
- Сообщения: 35426
- Зарегистрирован: 2004-10-18 14:25:19
- Откуда: Made in USSR
- Контактная информация:
Re: Проблема с Самбой. Не могу включить в домен сам контролле
2 тредстартер
страницу форума прокрутите до верху и прочтите надпись на красном фоне.
страницу форума прокрутите до верху и прочтите надпись на красном фоне.
Убей их всех! Бог потом рассортирует...
-
- проходил мимо
Re: Проблема с Самбой. Не могу включить в домен сам контролле
окlissyara писал(а):2 тредстартер
страницу форума прокрутите до верху и прочтите надпись на красном фоне.
-
- проходил мимо
Re: Проблема с Самбой. Не могу включить в домен сам контролле
Cardinal писал(а):ПопробуйЗапросит пароль рута и введи его. И покажи скрипт /usr/local/etc/samba/addmachinescript.shКод: Выделить всё
#net join pdc-design -U root
И замени строкунаКод: Выделить всё
add machine script = /usr/local/etc/samba/add_machine_script.sh
Код: Выделить всё
add machine script = /usr/local/etc/samba/add_machine_script.sh "%u"
Код: Выделить всё
"%u"