[Sysadmins] Samba - авторизация Линукса и Винды. Спасайте =(

ХоХа =?iso-8859-1?q?1ynah_=CE=C1_mail=2Eru?=
Чт Янв 15 10:48:14 UTC 2009



Сервер - Офис сервер
Клиент Линь - Десктоп 4.1
Клиент Вынь - ХП

Поднял самбу

[global]
netbios name = srv
workgroup = gamma
server string = Gamma Server
printcap name = /etc/printcap
printing = cups
cups options = raw
log file = /var/log/samba/log.smbd
max log size = 50
log level = 3
map to guest = bad user
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = yes
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
local master = yes
preferred master = yes
#domain master = no
wins support = yes
dns proxy = no
guest ok = yes
guest account = nobody
dos charset = CP866
unix charset = utf8
display charset = LOCALE

Создал Шару

[share]
comment = failo
path = /mnt/share/common
writeable = yes
guest ok = yes
create mask = 0774
read only = no

Далее создaю юзеров buh и gendir
[root на srv etc]# useradd -a buh
[root на srv etc]# useradd -a gendir

Добавляю gendir в группу buh
[root на srv etc]# gpasswd -a gendir buh

Подстраиваю их под самбу
[root на srv etc]# smbpasswd -a buh
[root на srv etc]# smbpasswd -a gendir

Создаю в папочке common папку "Бухгалтерия" с такими правами:

drwxrwxr-x 2 root buh 4096 Jan 14 17:01 Бухгалтерия/

Начинаю проверять и...С виндовой машины залогинившись как buh или gendir - пишу в папку Бухгалтерия без проблем.
Пробую под линуксом на соседней тачке - доступ запрещен =\
Пробовал папки с английскими именами - та же фигня

Выставил debug level = 2

Получил логи с винды и с линя при попытке создать новую папку:
Винда, все нормально:

log.jertva

[2009/01/15 11:06:47, 1] smbd/service.c:make_connection_snum(1033)
jertva (192.168.219.12) connect to service share initially as user buh (uid=501, gid=501) (pid 4778)

С Линя, доступ запрещен (при попытке юзером buh созать текстовик в папке, которой владеет её группа):

log.linux

[2009/01/15 12:29:26, 2] auth/auth.c:check_ntlm_password(319)
check_ntlm_password: Authentication for user [buh] -> [buh] FAILED with error NT_STATUS_WRONG_PASSWORD
[2009/01/15 12:29:26, 0] auth/auth_util.c:create_builtin_administrators(792)
create_builtin_administrators: Failed to create Administrators
[2009/01/15 12:29:26, 2] auth/auth_util.c:create_local_nt_token(914)
create_local_nt_token: Failed to create BUILTIN\Administrators group!
[2009/01/15 12:29:26, 0] auth/auth_util.c:create_builtin_users(758)
create_builtin_users: Failed to create Users
[2009/01/15 12:29:26, 2] auth/auth_util.c:create_local_nt_token(941)
create_local_nt_token: Failed to create BUILTIN\Users group!
[2009/01/15 12:29:27, 2] auth/auth.c:check_ntlm_password(319)
check_ntlm_password: Authentication for user [guest] -> [guest] FAILED with error NT_STATUS_NO_SUCH_USER
[2009/01/15 12:29:29, 2] auth/auth.c:check_ntlm_password(319)
check_ntlm_password: Authentication for user [guest] -> [guest] FAILED with error NT_STATUS_NO_SUCH_USER
[2009/01/15 12:29:29, 1] smbd/service.c:make_connection_snum(1033)
linux (192.168.219.10) connect to service share initially as user nobody (uid=99, gid=99) (pid 5754)

Куда колупать? =(Причем тут НТ??? Пароль естесна правильный. Пароль - 123

Куда колупать? 


Подробная информация о списке рассылки Sysadmins