![]() |
Проблема присоеденить машину к Samba 3.0.4 as PDC
Народ,
Вот такая проблема: На сервека бежит Самба 3.0.4 на SuSE 9.1 Pro добавляю в систему пользователей - с учетом принадлежности их своим группам: # useradd -c "Фамилия Имя Отчество" -g staff136 -s /bin/false asilne добавляю нашего пользователя в список пользователей samba: # smbpasswd -a asilne До етого момента нет проблем. Дальше проблема: создал группу машин: # groupadd -g 9999 machines создал скрипт machine_add (в папке /usr/bin) - для ручного добавления имен машин в домен: useradd -d /dev/null -c "User PC" -g machines -s /bin/false -M $1 passwd -l $1 smbpasswd -a -t $1 когда пытаюсь добавит машину в домайн пишу: # /usr/bin/machine_add "staff136_asilne$" получаю: useradd: Invalid home directory `/dev/null'. passwd: Unknown user `staff136_asilne$'. smbpasswd: invalid option -- t когда пытаюсь добавить с командной строки, так: # /usr/sbin/useradd -g machines -d /dev/null -s /bin/false -c staff136-asilne staff136-asilne$ получаю: useradd: Invalid home directory `/dev/null'. В чём проблема, кто знает? P.S.: А ешё добавил в smb.conf вот такое: # This allows machine-account-creation on-the-fly. # You need to create a root samba-user (never ever with the unix root pwd !!!) # root has to be domain admin. and you need a group "machines" add user script = ldapsmb -a -u "%u" delete user script = ldapsmb -d -u "%u" add machine script = ldapsmb -a -w "%u" add group script = ldapsmb -a -g "%g" delete group script = ldapsmb -d -g "%g" add user to group script = ldapsmb -j -u "%u" -g "%g" delete user from group script = ldapsmb -j -u "%u" -g "%g" set primary group script = ldapsmb -m -u "%u" -gid "%g" Создал # smbpasswd -a root Вопрос как теперь ети скрипты использовать? |
Решил проблему в ручную:
Make make the following changes to your /etc/passwd file: myworkstation$:x:9999:9999::/dev/null:/bin/false Make the following changes to your /etc/shadow file: myworkstation$:*:9797:0::::: Note: In the above two examples, it is critical to add the dollar sign ($) at the end of each and every workstation name! Next, make make the following changes to your /etc/group file: machines::9999 Finally, run the following commands on your server. Note the lack of a dollar-sign ($) at the end of the workstation name! This is frequently overlooked and a cause of many headaches... $ smbpasswd -m -a myworkstation Вот и всё! А через скрипт так и не получилось. |
Цитата:
Загляни сюда....... http://www.opennet.ru/base/net/samba_ldap.txt.html |
| Часовой пояс GMT +4, время: 03:45. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.