Samba и доступ к ресурсу

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС.

Модераторы: SLEDopit, Модераторы разделов

Аватара пользователя
fletch
Сообщения: 24
ОС: Arch Linux

Samba и доступ к ресурсу

Сообщение fletch »

Доброго времени суток всем!

Никак не могу разобраться, что не так в конфиге. Вроде бы все правильно, но в домашнюю папку пользователя не пускает, точнее пускает, но почему-то насильно ставит туда гостевой аккаунт и не дает его поменять.
Привожу скриншот и конфиг.

Изображение

Код:

#Samba config by Fletch [global] log file = /var/log/samba/%m.log dns proxy = No netbios name = getaway load printers = No ldap ssl = no server string = Arch Linux Server socket options = TCP_NODELAY dos charset = CP866 #auth methods = guest, sam acl compatibility = winnt guest account = nobody workgroup = M-TECH os level = 20 interfaces = eth0, 192.168.7.0/255.255.255.0 bind interfaces only = Yes domain master = No encrypt passwords = yes security = share preferred master = no max log size = 50 smb passwd file = /etc/samba/private/smbpasswd hosts allow = 192.168.7., 127.0.0.1 hide dot files = No [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [ftp] comment = Arch Linux FTP Root path = /home/ftp admin users = root guest ok = Yes hosts allow = 192.168.7. [fletch] comment = They are watching you! #writeable = yes path = /home/fletch valid users = fletch read only = No create mask = 0660 allow hosts = 192.168.7.78


Distro - Arch Linux
Kernel - 2.6.25
Samba version 3.0.30

p.s. Раскомментирование writeable и дописывание рута к валидным юзерам ничего не дает.
Спасибо сказали:
Аватара пользователя
Kataklysm
Сообщения: 280
ОС: Linux Suse 10.2-10.3 Sles-10.1

Re: Samba и доступ к ресурсу

Сообщение Kataklysm »

fletch писал(а):
24.06.2008 10:02
Доброго времени суток всем!

Никак не могу разобраться, что не так в конфиге. Вроде бы все правильно, но в домашнюю папку пользователя не пускает, точнее пускает, но почему-то насильно ставит туда гостевой аккаунт и не дает его поменять.
Привожу скриншот и конфиг.

Изображение

Код:

#Samba config by Fletch [global] log file = /var/log/samba/%m.log dns proxy = No netbios name = getaway load printers = No ldap ssl = no server string = Arch Linux Server socket options = TCP_NODELAY dos charset = CP866 #auth methods = guest, sam acl compatibility = winnt guest account = nobody workgroup = M-TECH os level = 20 interfaces = eth0, 192.168.7.0/255.255.255.0 bind interfaces only = Yes domain master = No encrypt passwords = yes security = share preferred master = no max log size = 50 smb passwd file = /etc/samba/private/smbpasswd hosts allow = 192.168.7., 127.0.0.1 hide dot files = No [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [ftp] comment = Arch Linux FTP Root path = /home/ftp admin users = root guest ok = Yes hosts allow = 192.168.7. [fletch] comment = They are watching you! #writeable = yes path = /home/fletch valid users = fletch read only = No create mask = 0660 allow hosts = 192.168.7.78


Distro - Arch Linux
Kernel - 2.6.25
Samba version 3.0.30

p.s. Раскомментирование writeable и дописывание рута к валидным юзерам ничего не дает.


Попробуй указать так:

locking = yes
oplocks = yes
security = user
os level = 255
string locking = yes
share modes = yes
map to guest = Bad User
Спасибо сказали:
ford1813
Сообщения: 383
ОС: Slackware

Re: Samba и доступ к ресурсу

Сообщение ford1813 »

Я бы попробовал использовать
guest ok = No

А в глобоа
security = user


[fletch]
comment = They are watching you!
#writeable = yes
path = /home/fletch
valid users = fletch
read only = No
create mask = 0660
allow hosts = 192.168.7.78
guest ok = No
Контакты для связи:

E-mail: ford1813@gmail.com

Telegram: @ford1813
Спасибо сказали:
Аватара пользователя
fletch
Сообщения: 24
ОС: Arch Linux

Re: Samba и доступ к ресурсу

Сообщение fletch »

ни один ни второй совет не помог. то же самое окно выбрасывает. Еще варианты есть? Где именно я не прав? Подозреваю, что в районе параметра map to guest, но задание ему значения never ничего не меняет.
Спасибо сказали:
ford1813
Сообщения: 383
ОС: Slackware

Re: Samba и доступ к ресурсу

Сообщение ford1813 »

fletch писал(а):
24.06.2008 19:36
ни один ни второй совет не помог. то же самое окно выбрасывает. Еще варианты есть? Где именно я не прав? Подозреваю, что в районе параметра map to guest, но задание ему значения never ничего не меняет.

Лучше глобал перепишите.
И лучше прочтите данную тему.
Как я настраивал Самбу
Там все очень толково расписано.
Контакты для связи:

E-mail: ford1813@gmail.com

Telegram: @ford1813
Спасибо сказали:
sim1
Сообщения: 155
ОС: GNU,BSD

Re: Samba и доступ к ресурсу

Сообщение sim1 »

Для начала, насколько я понимаю, здесь проблема в настройке винды.
Двойной щелчок - My Computer ( или открыть папку) - Tools - Folder Options - View - Убрать галочку с "Use Simple File Sharing"

Только После этого винда при подключении к сетевым ресурсам позволит вводить имя пользователя ...
Спасибо сказали:
Аватара пользователя
fletch
Сообщения: 24
ОС: Arch Linux

Re: Samba и доступ к ресурсу

Сообщение fletch »

может быть и косяк винды, но я пользуюсь тоталом. и вообще это не выход. потом чтоли надо будет бегать и на всех клиентах в сети так настраивать?

спасибо за ссылку на доку, почитаю.
Спасибо сказали:
sim1
Сообщения: 155
ОС: GNU,BSD

Re: Samba и доступ к ресурсу

Сообщение sim1 »

fletch писал(а):
24.06.2008 23:38
может быть и косяк винды ...

Проблема, приведенная в первоначальной постановке вопроса, возникает исключительно из-за "Простого общего доступа к файлам", используемого на машинах семейства Win, которая применяет модель доступа "Только гости".
В win Существуют две модели доступа:
«Классическая» — подлинность локальных пользователей при выходе в сеть проверяется по их учетным данным;
«Только гости» — локальные пользователи при выходе в сеть проверяются как гости.
По умолчанию: «Только гости» в Windows XP Professional. «Классическая» — в семействе Windows Server 2003 и компьютерах Windows XP Professional, присоединенных к домену.
Изменить модель доступа можно либо, как я привел выше, либо "Конфигурация компьютера\Конфигурация Windows\Параметры безопасности\Локальные политики\Параметры безопасности\".
fletch писал(а):
24.06.2008 23:38
... но я пользуюсь тоталом ...

Это вы, а ваши клиенты в сети ? Я не настолько хорошо знаком с тоталом, но думаю, что он при работе с сеткой он использует возможности ОС с вытекающими отсюда последствиями.
fletch писал(а):
24.06.2008 23:38
и вообще это не выход.

возможно, но тогда вам придется очень долго искать ошибку в настройке вашей самбы
fletch писал(а):
24.06.2008 23:38
потом чтоли надо будет бегать и на всех клиентах в сети так настраивать?

Эта проблема практически не возникает, если поднят домен и хосты включаются в него. В винде есть масса средств, позволяющих все сделать со своего рабочего места.
Спасибо сказали:
Аватара пользователя
fletch
Сообщения: 24
ОС: Arch Linux

Re: Samba и доступ к ресурсу

Сообщение fletch »

дело в том что есть в сети второй сервер на FreeBSD, с практически идентичным конфигом и на нем все работает без проблем, не отключая "простой общий доступ"
буду ковырять самбу дальше, всем спасибо за помощь

p.s. сеть без доменов.
Спасибо сказали:
GreenEyes
Сообщения: 2
ОС: SUSe

Re: Samba и доступ к ресурсу

Сообщение GreenEyes »

Сам долго мучался думаю тебе поможет. Раз тебе нужен доступ к файлам то вот как я ето реализовал ...
[global]
server string = Manager-1
netbios name = Manager-1
interfaces = eth0
bind interfaces only = Yes
security = share # если не требуется водить пароль и просто был доступ то должно быть Share .
log file = /var/log/samba/log.smbd
max log size = 500
printcap name = /etc/printcap
printing = cups
cups options = raw
dns proxy = yes
hosts allow = 192.168.0.0/255.255.0.0 127.0.0.1 # разрешенная подсетка , кому можно смотреть )
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
local master = no
preferred master = no
domain master = no
wins support = no
guest ok = yes
guest account = nobody
dos charset = cp1251
unix charset = utf8
display charset = cp1251
workgroup = company
usershare allow guests = No

[all]
path = /share/All
read only = No

[buhgalters]
path = /share/Buhgalters #расположение папки
read only = No
hosts allow = 192.168.4.1, 192.168.4.2 # IP адреса кому разрешен доступ

Надеюсь тебе поможет :drinks:
0_o
Спасибо сказали:
Аватара пользователя
fletch
Сообщения: 24
ОС: Arch Linux

Re: Samba и доступ к ресурсу

Сообщение fletch »

переписал конфиг с нуля

Код:

[global] workgroup = M-TECH server string = Arch Linux Server bind interfaces only = Yes interfaces = eth0, 192.168.7.0/255.255.255.0 hosts deny = ALL hosts allow = 192.168.7. 127.0.0.1 log file = /var/log/samba/%m.log max log size = 50 security = SHARE encrypt passwords = yes smb passwd file = /etc/samba/private/smbpasswd socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 local master = No preferred master = No domain master = No wins support = No dns proxy = No guest ok = yes guest account = nobody unix charset = utf8 dos charset = cp1251 display charset = cp1251 hide dot files = No [ftp] comment = Arch Linux FTP Root path = /home/ftp writeable = yes guest ok = Yes create mask = 0666 directory mask = 0777 read only = No hosts allow = 192.168.7. [fletch] comment = They are watching you! path = /home/fletch guest ok = no valid users = fletch create mask = 0664 directory mask = 0775 read only = No hosts allow = 192.168.7.78


также реагирует. тоже насильно подставляет гостя в окно логина.
Спасибо сказали:
GreenEyes
Сообщения: 2
ОС: SUSe

Re: Samba и доступ к ресурсу

Сообщение GreenEyes »

я что то понять не могу ты с помощью пасса хочешь входить? ... или просто что бы было расшарино и все?
0_o
Спасибо сказали:
Аватара пользователя
fletch
Сообщения: 24
ОС: Arch Linux

Re: Samba и доступ к ресурсу

Сообщение fletch »

хочу создать шару, с правами чтения-записи и чтоб доступ имели определенные люди со своими логинами-паролями.
Спасибо сказали:
sim1
Сообщения: 155
ОС: GNU,BSD

Re: Samba и доступ к ресурсу

Сообщение sim1 »

В вашей ситуации нужно лезть в логи и искать суть проблемы там.
В настройках выставите log level, 5-ого наверное будет достаточно.
Если клиент, предоставляет все данные, то где-то в логах должно быть так
[2000/01/16 11:19:04, 5] auth/auth_util.c:make_user_info_map(224)
make_user_info_map: Mapping user [NT]\[SERGEY] from workstation [sergey-host]

цифра после даты уровень log level на котором была сделана запись
nt - workgroup
SERGEY-HOST - host name
sergey - user

Далее за этой записью должны увидеть пертрубации самбы по поводу того, пускать пользователя или не пускать. И в конце решение самбы, как же пользователь будет допущен к ресурсам,например, так
[2000/01/16 11:19:04, 3] smbd/sesssetup.c:do_map_to_guest(41)
No such user SERGEY [NT] - using guest account
Спасибо сказали:
Аватара пользователя
fletch
Сообщения: 24
ОС: Arch Linux

Re: Samba и доступ к ресурсу

Сообщение fletch »

таак. при 5 уровне ведения логов пишет вот что:

Код:

[2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 5] auth/auth.c:check_ntlm_password(273) check_ntlm_password: sam authentication for user [fletch] FAILED with error NT_STATUS_WRONG_PASSWORD [2008/06/25 12:29:00, 2] auth/auth.c:check_ntlm_password(319) check_ntlm_password: Authentication for user [fletch] -> [fletch] FAILED with error NT_STATUS_WRONG_PASSWORD [2008/06/25 12:29:00, 5] auth/auth_util.c:free_user_info(2056) attempting to free (and zero) a user_info structure [2008/06/25 12:29:00, 5] auth/auth_util.c:make_user_info_map(161) make_user_info_map: Mapping user [SYSADMIN]\[fletch] from workstation [sysadmin] [2008/06/25 12:29:00, 5] auth/auth_util.c:make_user_info(75) attempting to make a user_info for fletch (fletch) [2008/06/25 12:29:00, 5] auth/auth_util.c:make_user_info(85) making strings for fletch's user_info struct [2008/06/25 12:29:00, 5] auth/auth_util.c:make_user_info(117) making blobs for fletch's user_info struct [2008/06/25 12:29:00, 3] auth/auth.c:check_ntlm_password(221) check_ntlm_password: Checking password for unmapped user [SYSADMIN]\[fletch]@[sysadmin] with the new password interface [2008/06/25 12:29:00, 3] auth/auth.c:check_ntlm_password(224) check_ntlm_password: mapped user is: [GETAWAY]\[fletch]@[sysadmin] [2008/06/25 12:29:00, 5] lib/util.c:dump_data(2264) [000] AB 62 E5 E1 CC 28 05 94 .b...(.. [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(534) getsmbfilepwent: returning passwd entry for user fletch, uid 1000 [2008/06/25 12:29:00, 5] lib/username.c:Get_Pwnam_alloc(131) Finding user fletch [2008/06/25 12:29:00, 5] lib/username.c:Get_Pwnam_internals(75) Trying _Get_Pwnam(), username as lowercase is fletch [2008/06/25 12:29:00, 5] lib/username.c:Get_Pwnam_internals(108) Get_Pwnam_internals did find user [fletch]! [2008/06/25 12:29:00, 4] lib/substitute.c:automount_server(407) Home server: getaway [2008/06/25 12:29:00, 4] lib/substitute.c:automount_server(407) Home server: getaway [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 4] lib/substitute.c:automount_server(407) Home server: getaway [2008/06/25 12:29:00, 4] lib/substitute.c:automount_server(407) Home server: getaway [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 4] libsmb/ntlm_check.c:ntlm_password_check(373) ntlm_password_check: Checking LM password [2008/06/25 12:29:00, 4] libsmb/ntlm_check.c:ntlm_password_check(399) ntlm_password_check: Checking LMv2 password with domain SYSADMIN [2008/06/25 12:29:00, 4] libsmb/ntlm_check.c:ntlm_password_check(409) ntlm_password_check: Checking LMv2 password with upper-cased version of domain SYSADMIN [2008/06/25 12:29:00, 4] libsmb/ntlm_check.c:ntlm_password_check(419) ntlm_password_check: Checking LMv2 password without a domain [2008/06/25 12:29:00, 4] libsmb/ntlm_check.c:ntlm_password_check(432) ntlm_password_check: Checking NT MD4 password in LM field [2008/06/25 12:29:00, 3] libsmb/ntlm_check.c:ntlm_password_check(455) ntlm_password_check: LM password, NT MD4 password in LM field and LMv2 failed for user fletch [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 5] auth/auth.c:check_ntlm_password(273) check_ntlm_password: sam authentication for user [fletch] FAILED with error NT_STATUS_WRONG_PASSWORD [2008/06/25 12:29:00, 2] auth/auth.c:check_ntlm_password(319) check_ntlm_password: Authentication for user [fletch] -> [fletch] FAILED with error NT_STATUS_WRONG_PASSWORD [2008/06/25 12:29:00, 5] auth/auth_util.c:free_user_info(2056) attempting to free (and zero) a user_info structure [2008/06/25 12:29:00, 5] auth/auth_util.c:make_user_info_map(161) make_user_info_map: Mapping user [M-TECH]\[fletch] from workstation [sysadmin] [2008/06/25 12:29:00, 5] auth/auth_util.c:make_user_info(75) attempting to make a user_info for fletch (fletch) [2008/06/25 12:29:00, 5] auth/auth_util.c:make_user_info(85) making strings for fletch's user_info struct [2008/06/25 12:29:00, 5] auth/auth_util.c:make_user_info(117) making blobs for fletch's user_info struct [2008/06/25 12:29:00, 3] auth/auth.c:check_ntlm_password(221) check_ntlm_password: Checking password for unmapped user [M-TECH]\[fletch]@[sysadmin] with the new password interface [2008/06/25 12:29:00, 3] auth/auth.c:check_ntlm_password(224) check_ntlm_password: mapped user is: [GETAWAY]\[fletch]@[sysadmin] [2008/06/25 12:29:00, 5] lib/util.c:dump_data(2264) [000] AB 62 E5 E1 CC 28 05 94 .b...(.. [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(534) getsmbfilepwent: returning passwd entry for user fletch, uid 1000 [2008/06/25 12:29:00, 5] lib/username.c:Get_Pwnam_alloc(131) Finding user fletch [2008/06/25 12:29:00, 5] lib/username.c:Get_Pwnam_internals(75) Trying _Get_Pwnam(), username as lowercase is fletch [2008/06/25 12:29:00, 5] lib/username.c:Get_Pwnam_internals(108) Get_Pwnam_internals did find user [fletch]! [2008/06/25 12:29:00, 4] lib/substitute.c:automount_server(407) Home server: getaway [2008/06/25 12:29:00, 4] lib/substitute.c:automount_server(407) Home server: getaway [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 4] lib/substitute.c:automount_server(407) Home server: getaway [2008/06/25 12:29:00, 4] lib/substitute.c:automount_server(407) Home server: getaway [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 4] libsmb/ntlm_check.c:ntlm_password_check(326) ntlm_password_check: Checking NT MD4 password [2008/06/25 12:29:00, 3] libsmb/ntlm_check.c:ntlm_password_check(344) ntlm_password_check: NT MD4 password check failed for user fletch [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 5] auth/auth.c:check_ntlm_password(273) check_ntlm_password: sam authentication for user [fletch] FAILED with error NT_STATUS_WRONG_PASSWORD [2008/06/25 12:29:00, 2] auth/auth.c:check_ntlm_password(319) check_ntlm_password: Authentication for user [fletch] -> [fletch] FAILED with error NT_STATUS_WRONG_PASSWORD [2008/06/25 12:29:00, 5] auth/auth_util.c:free_user_info(2056) attempting to free (and zero) a user_info structure [2008/06/25 12:29:00, 5] auth/auth_util.c:make_user_info_map(161) make_user_info_map: Mapping user [M-TECH]\[fletch] from workstation [sysadmin] [2008/06/25 12:29:00, 5] auth/auth_util.c:make_user_info(75) attempting to make a user_info for fletch (fletch) [2008/06/25 12:29:00, 5] auth/auth_util.c:make_user_info(85) making strings for fletch's user_info struct [2008/06/25 12:29:00, 5] auth/auth_util.c:make_user_info(117) making blobs for fletch's user_info struct [2008/06/25 12:29:00, 3] auth/auth.c:check_ntlm_password(221) check_ntlm_password: Checking password for unmapped user [M-TECH]\[fletch]@[sysadmin] with the new password interface [2008/06/25 12:29:00, 3] auth/auth.c:check_ntlm_password(224) check_ntlm_password: mapped user is: [GETAWAY]\[fletch]@[sysadmin] [2008/06/25 12:29:00, 5] lib/util.c:dump_data(2264) [000] AB 62 E5 E1 CC 28 05 94 .b...(.. [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(534) getsmbfilepwent: returning passwd entry for user fletch, uid 1000 [2008/06/25 12:29:00, 5] lib/username.c:Get_Pwnam_alloc(131) Finding user fletch [2008/06/25 12:29:00, 5] lib/username.c:Get_Pwnam_internals(75) Trying _Get_Pwnam(), username as lowercase is fletch [2008/06/25 12:29:00, 5] lib/username.c:Get_Pwnam_internals(108) Get_Pwnam_internals did find user [fletch]! [2008/06/25 12:29:00, 4] lib/substitute.c:automount_server(407) Home server: getaway [2008/06/25 12:29:00, 4] lib/substitute.c:automount_server(407) Home server: getaway [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 4] lib/substitute.c:automount_server(407) Home server: getaway [2008/06/25 12:29:00, 4] lib/substitute.c:automount_server(407) Home server: getaway [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 4] libsmb/ntlm_check.c:ntlm_password_check(373) ntlm_password_check: Checking LM password [2008/06/25 12:29:00, 4] libsmb/ntlm_check.c:ntlm_password_check(399) ntlm_password_check: Checking LMv2 password with domain M-TECH [2008/06/25 12:29:00, 4] libsmb/ntlm_check.c:ntlm_password_check(409) ntlm_password_check: Checking LMv2 password with upper-cased version of domain M-TECH [2008/06/25 12:29:00, 4] libsmb/ntlm_check.c:ntlm_password_check(419) ntlm_password_check: Checking LMv2 password without a domain [2008/06/25 12:29:00, 4] libsmb/ntlm_check.c:ntlm_password_check(432) ntlm_password_check: Checking NT MD4 password in LM field [2008/06/25 12:29:00, 3] libsmb/ntlm_check.c:ntlm_password_check(455) ntlm_password_check: LM password, NT MD4 password in LM field and LMv2 failed for user fletch [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 3] smbd/uid.c:push_conn_ctx(358) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:00, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:00, 3] smbd/sec_ctx.c:pop_sec_ctx(356) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:00, 5] auth/auth.c:check_ntlm_password(273) check_ntlm_password: sam authentication for user [fletch] FAILED with error NT_STATUS_WRONG_PASSWORD [2008/06/25 12:29:00, 2] auth/auth.c:check_ntlm_password(319) check_ntlm_password: Authentication for user [fletch] -> [fletch] FAILED with error NT_STATUS_WRONG_PASSWORD [2008/06/25 12:29:00, 5] auth/auth_util.c:free_user_info(2056) attempting to free (and zero) a user_info structure [2008/06/25 12:29:00, 2] smbd/service.c:make_connection_snum(638) Invalid username/password for [fletch] [2008/06/25 12:29:00, 3] smbd/error.c:error_packet_set(106) error packet at smbd/reply.c(514) cmd=117 (SMBtconX) NT_STATUS_WRONG_PASSWORD [2008/06/25 12:29:00, 5] lib/util.c:show_msg(484) [2008/06/25 12:29:00, 5] lib/util.c:show_msg(494) size=95 smb_com=0x73 smb_rcls=106 smb_reh=0 smb_err=49152 smb_flg=136 smb_flg2=49153 smb_tid=0 smb_pid=65279 smb_uid=0 smb_mid=20161 smt_wct=3 smb_vwv[ 0]= 117 (0x75) smb_vwv[ 1]= 92 (0x5C) smb_vwv[ 2]= 1 (0x1) smb_bcc=51 [2008/06/25 12:29:02, 3] smbd/process.c:process_smb(1069) Transaction 188 of length 39 [2008/06/25 12:29:02, 5] lib/util.c:show_msg(484) [2008/06/25 12:29:02, 5] lib/util.c:show_msg(494) size=35 smb_com=0x71 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=24 smb_flg2=51207 smb_tid=3 smb_pid=65279 smb_uid=0 smb_mid=20225 smt_wct=0 smb_bcc=0 [2008/06/25 12:29:02, 3] smbd/process.c:switch_message(927) switch message SMBtdis (pid 8608) conn 0x7ffa161a4740 [2008/06/25 12:29:02, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:02, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:02, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:02, 5] smbd/uid.c:change_to_root_user(288) change_to_root_user: now uid=(0,0) gid=(0,0) [2008/06/25 12:29:02, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:02, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:02, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:02, 5] smbd/uid.c:change_to_root_user(288) change_to_root_user: now uid=(0,0) gid=(0,0) [2008/06/25 12:29:02, 3] smbd/service.c:close_cnum(1230) sysadmin (192.168.7.78) closed connection to service IPC$ [2008/06/25 12:29:02, 3] smbd/connection.c:yield_connection(69) Yielding connection to IPC$ [2008/06/25 12:29:02, 4] smbd/vfs.c:vfs_ChDir(665) vfs_ChDir to / [2008/06/25 12:29:02, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/06/25 12:29:02, 5] auth/auth_util.c:debug_nt_user_token(448) NT user token: (NULL) [2008/06/25 12:29:02, 5] auth/auth_util.c:debug_unix_user_token(474) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2008/06/25 12:29:02, 5] smbd/uid.c:change_to_root_user(288) change_to_root_user: now uid=(0,0) gid=(0,0) [2008/06/25 12:29:02, 5] lib/util.c:show_msg(484) [2008/06/25 12:29:02, 5] lib/util.c:show_msg(494) size=35 smb_com=0x71 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=49153 smb_tid=3 smb_pid=65279 smb_uid=0 smb_mid=20225 smt_wct=0 smb_bcc=0
Спасибо сказали:
sim1
Сообщения: 155
ОС: GNU,BSD

Re: Samba и доступ к ресурсу

Сообщение sim1 »

Из вашего лога:
1. Успешно выполняется сопоставление пользователя SYSADMIN/fletch c пользователем GETAWAY/fletch.
2. Сравнение пароля пользователя SYSADMIN/fletch (вводится при входе в венду) и пароля GETAWAY/fletch (задается smbpasswd) завершилось ошибкой,т.е они не совпадают.

Если задать для пользователя GETAWAY/fletch такой же пароль (с помощью smbpasswd), как и у SYSADMIN/fletch то получите результат. Ессено для какой-то шары должно быть прописано valid user = fletch, что у вас сделано ..
Спасибо сказали:
HRonik
Сообщения: 140
ОС: Debian

Re: Samba и доступ к ресурсу

Сообщение HRonik »

fletch писал(а):
25.06.2008 11:36
переписал конфиг с нуля

Код:

[global] workgroup = M-TECH server string = Arch Linux Server bind interfaces only = Yes interfaces = eth0, 192.168.7.0/255.255.255.0 hosts deny = ALL hosts allow = 192.168.7. 127.0.0.1 log file = /var/log/samba/%m.log max log size = 50 security = SHARE encrypt passwords = yes smb passwd file = /etc/samba/private/smbpasswd socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 local master = No preferred master = No domain master = No wins support = No dns proxy = No guest ok = yes guest account = nobody unix charset = utf8 dos charset = cp1251 display charset = cp1251 hide dot files = No [ftp] comment = Arch Linux FTP Root path = /home/ftp writeable = yes guest ok = Yes create mask = 0666 directory mask = 0777 read only = No hosts allow = 192.168.7. [fletch] comment = They are watching you! path = /home/fletch guest ok = no valid users = fletch create mask = 0664 directory mask = 0775 read only = No hosts allow = 192.168.7.78


также реагирует. тоже насильно подставляет гостя в окно логина.


насколько я помню, уже обсуждалось на многих форумах, что при

Код: Выделить всё

security = SHARE

Винда автоматически подставляет гостя в поле пользователь...
Это проблема как то решалась, кажется...юзайте поиск)
Спасибо сказали:
Аватара пользователя
fletch
Сообщения: 24
ОС: Arch Linux

Re: Samba и доступ к ресурсу

Сообщение fletch »

в общем проблема решилась добавлением локально в винду еще одного пользователя с именем fletch.
вопрос теперь в другом - можно ли как-то заставить самбу авторизовать пользователей по своей базе логинов/паролей, не читая то, что винда шлет автоматически (имя текущего залогиненого пользователя). Т.е. допустим я сижу в винде под пользователем user1, а в самбе пользователи скажем smbuser1, smbuser2 и т.д. И в появившемся окне логина я должен ввести ту пару логин/пароль, которая в базе самбы.

зы. это все заработало при включении security = user. но уж очень не хочется менять виндового пользователя на нового. И еще может быть такая неприятная ситуация:
будет две шары на самбе. одна для user1, другая для user2. И может быть так, что виндовые имена пользователей у обоих людей будут одинаковые и они смогут иметь доступ к шарам друг друга, расположенным на самбе. уж очень этого хотелось бы избежать...

Какой выход может быть из этой ситуации? Авторизация в LDAP?
Спасибо сказали:
sim1
Сообщения: 155
ОС: GNU,BSD

Re: Samba и доступ к ресурсу

Сообщение sim1 »

Поэкспериментировал с режимом security = share. И вот что получилось

Код: Выделить всё

[global]
...
security = share
map to guest = Bad User
guest account = nobody
browseable = yes
guest ok = no
guest only = no

....

# полный, анонимный
[share1]
        path = /backup/s/share1
        writable = yes
        guest ok = yes
        guest only = yes

# только с авторизацией по базе пользователей Samba
[share2]
        path = /backup/s/share2
        writeable = yes

# только указанному пользователю:
[backup]
        path = /backup
        writable = yes
        public = no
        valid users = fletch
        write list = fletch

Для данной конфигурации самба (ключевой параметр map to guest) отдает список шаров любому пользователю, после того как пользователь пробует зайти в шару выполняется попытка безусловного сопоставления(самба ищет у себя в базе пользователя с таким же именем и паролем, как и у виндового), в зависимости от результата либо входит, либо появляется окно с предложением ввести другого пользователя (поле выбора пользователя активно).
Если параметр map to guest не задан или map to guest = never (дефолтное значение), то тогда возникает ситуация, которую описал fletch.
Спасибо сказали:
Аватара пользователя
fletch
Сообщения: 24
ОС: Arch Linux

Re: Samba и доступ к ресурсу

Сообщение fletch »

спасибо, sim1 !
Во вторник на работе попробую, отпишусь. Надеюсь на этом эксперименты с самбой закончатся :)
Спасибо сказали:
Flydog
Сообщения: 92

Re: Samba и доступ к ресурсу

Сообщение Flydog »

А можно полный файл конфигурации - а ото я что то намутил в нем и вообще ничего не получается :-)
Спасибо сказали:
Аватара пользователя
fletch
Сообщения: 24
ОС: Arch Linux

Re: Samba и доступ к ресурсу

Сообщение fletch »

Пожалуйста

Код:

# Samba config file by Fletch [global] log file = /var/log/samba/%m.log display charset = cp1251 guest account = nobody security = share map to guest = Bad User browseable = yes smb passwd file = /etc/samba/private/smbpasswd socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 guest ok = no guest only = no #username map = /etc/samba/user.map hide dot files = No domain master = No interfaces = eth0, 192.168.7.0/255.255.255.0 encrypt passwords = yes hosts allow = 192.168.7. 127.0.0.1 wins support = No dns proxy = No server string = Arch Linux Server dos charset = cp1251 local master = No workgroup = M-TECH hosts deny = ALL unix charset = utf8 preferred master = No bind interfaces only = Yes max log size = 50 log level = 5 [ftp] comment = Arch Linux FTP Root path = /home/ftp writeable = yes guest ok = Yes create mask = 0666 directory mask = 0777 read only = No hosts allow = 192.168.7. [fletch] comment = They are watching you! path = /home/fletch guest ok = no valid users = fletch create mask = 0664 directory mask = 0775 read only = No writeable = yes public = no hosts allow = 192.168.7.78 [exchange] path = /home/exchange guest ok = no valid users = fletch writable = yes public = no create mask = 0664 directory mask = 0775 read only = no
Спасибо сказали: