[mdk-re] samba authorization - HELP plz ;-(
Peter V. Saveliev
=?iso-8859-1?q?peet_=CE=C1_infosite=2Eru?=
Сб Сен 22 11:44:00 MSD 2001
"Peter V. Saveliev" wrote:
> > >> ЗЫ. И еще, акаунт самбовый под него выделен?
> >
> > Peter> Что за зверь?
>
> <skip> Понятно. Это все знакомо.
>
> > host:~#/usr/local/samba/bin/smbpasswd -e user_name
>
> ^^^^^^^^^^^^^^^^^^^^^
>
> > Added interface ip=x.x.x.x broadcast=x.x.x.255 netmask=255.255.255.0
> > User user_name enabled
> > host:~#
>
> <skip> Ага...
>
> > Ну вот собсно и всё :)
<skip>
# smbd -D
# nmbd -D
# smbpasswd -a peet
New SMB password: pswd01
Retype new SMB password: pswd01
Added user peet.
# smbpasswd -e peet
Enabled user peet
# passwd peet
New UNIX password: pswd02
Retype new UNIX password: pswd02
Update password database... done.
# smbclient -L hamster -U peet // hamster == localhost
password: pswd01
Bad password/name pair
# smbclient -L hamster - U peet
password: pswd02
// куча зашаренных ресурсов - пустили =;-|
# vmware
// входим в винды, просим hamster'a открыться по pswd01, затем по pswd02, и...
# less /var/log/samba/log.billy // billy == virtual machine
[2001/09/22 10:10:17, 3] smbd/process.c:process_smb(837)
Transaction 1 of length 158
[2001/09/22 10:10:17, 3] smbd/process.c:switch_message(650)
switch message SMBnegprot (pid 1523)
[2001/09/22 10:10:17, 3] smbd/sec_ctx.c:set_sec_ctx(317)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/09/22 10:10:17, 3] smbd/negprot.c:reply_negprot(349)
Requested protocol [PC NETWORK PROGRAM 1.0]
[2001/09/22 10:10:17, 3] smbd/negprot.c:reply_negprot(349)
Requested protocol [MICROSOFT NETWORKS 3.0]
[2001/09/22 10:10:17, 3] smbd/negprot.c:reply_negprot(349)
Requested protocol [DOS LM1.2X002]
[2001/09/22 10:10:17, 3] smbd/negprot.c:reply_negprot(349)
Requested protocol [DOS LANMAN2.1]
[2001/09/22 10:10:17, 3] smbd/negprot.c:reply_negprot(349)
Requested protocol [Windows for Workgroups 3.1a]
[2001/09/22 10:10:17, 3] smbd/negprot.c:reply_negprot(349)
Requested protocol [NT LM 0.12]
[2001/09/22 10:10:17, 3] smbd/negprot.c:reply_negprot(433)
Selected protocol NT LM 0.12
[2001/09/22 10:10:17, 3] smbd/process.c:process_smb(837)
Transaction 2 of length 133
[2001/09/22 10:10:17, 3] smbd/process.c:switch_message(650)
switch message SMBsesssetupX (pid 1523)
[2001/09/22 10:10:17, 3] smbd/sec_ctx.c:set_sec_ctx(317)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/09/22 10:10:17, 3] smbd/reply.c:reply_sesssetup_and_X(866)
Domain=[WILLY] NativeOS=[Windows 4.0] NativeLanMan=[Windows 4.0]
[2001/09/22 10:10:17, 3] smbd/reply.c:reply_sesssetup_and_X(876)
sesssetupX:name=[PEET]
[2001/09/22 10:10:17, 2] smbd/reply.c:reply_sesssetup_and_X(990)
Defaulting to Lanman password for peet
[2001/09/22 10:10:17, 1] smbd/reply.c:reply_sesssetup_and_X(1005)
Rejecting user 'peet': authentication failed
[2001/09/22 10:10:17, 3] smbd/error.c:error_packet(123)
error string = No such file or directory
[2001/09/22 10:10:17, 3] smbd/error.c:error_packet(141)
error packet at line 700 cmd=115 (SMBsesssetupX) eclass=2 ecode=2
[2001/09/22 10:10:17, 3] smbd/process.c:process_smb(837)
Transaction 3 of length 133
[2001/09/22 10:10:17, 3] smbd/process.c:switch_message(650)
switch message SMBsesssetupX (pid 1523)
[2001/09/22 10:10:17, 3] smbd/sec_ctx.c:set_sec_ctx(317)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/09/22 10:10:17, 3] smbd/reply.c:reply_sesssetup_and_X(866)
Domain=[WILLY] NativeOS=[Windows 4.0] NativeLanMan=[Windows 4.0]
[2001/09/22 10:10:17, 3] smbd/reply.c:reply_sesssetup_and_X(876)
sesssetupX:name=[PEET]
[2001/09/22 10:10:17, 2] smbd/reply.c:reply_sesssetup_and_X(990)
Defaulting to Lanman password for peet
[2001/09/22 10:10:17, 1] smbd/reply.c:reply_sesssetup_and_X(1005)
Rejecting user 'peet': authentication failed
[2001/09/22 10:10:17, 3] smbd/error.c:error_packet(123)
error string = No such file or directory
[2001/09/22 10:10:17, 3] smbd/error.c:error_packet(141)
error packet at line 700 cmd=115 (SMBsesssetupX) eclass=2 ecode=2
[2001/09/22 10:10:17, 3] smbd/process.c:timeout_processing(1062)
end of file from client
[2001/09/22 10:10:17, 3] smbd/sec_ctx.c:set_sec_ctx(317)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/09/22 10:10:17, 2] smbd/server.c:exit_server(448)
Closing connections
[2001/09/22 10:10:17, 3] smbd/connection.c:yield_connection(50)
Yielding connection to
[2001/09/22 10:10:17, 3] smbd/server.c:exit_server(483)
Server exit (normal exit)
Ну в чем я пред небесами провинился ?!!
И ведь одновременно удалось заживить в реальной сети PDC и файл-сервер на самбе. И никаких
траблов (почти) не было ;(
--
Петр.
Подробная информация о списке рассылки community