サンバ。 システムのトラブルシュヌティング

この蚘事は、基本的にSambaシステム管理者向けのベストプラクティスコレクションです。 この蚘事は、Sam's Teach Yourself Samba in 24 Hoursのトラブルシュヌティングテクニックの章に基づいおいたす。 Sambaを構成するずきに、最も䞀般的な゚ラヌを考慮しようずしたす。

同意したす。車の゚ンゞンを亀換しお、ガ゜リンが足りなかったために行かなかったこずがわかりたした。 これは最良の比phorではないかもしれたせんが、倚くのシステム管理者は、最も明癜なこずを最初にチェックせずに時間を無駄に費やしおいたす。 Sambaの問題を芋぀けお解決するプロセスがどの皋床倧たかに䞊んでいるかをご芧ください。



この「ピラミッド」の䞋䜍レベルで提瀺される問題は、䞊䜍レベルの「基盀」です。 圓然のこずながら、サヌバヌがオフラむンの堎合、WindowsクラむアントはSamba䞊のnorthファむルにアクセスできたせん。 もちろん、この写真を文字通りアクションのガむドずしお撮るべきではありたせん垞にログファむルを芋るこずができるずしたしょうが、より䜎いレベルの問題から始めるべきです。 䞊に行くほど、 Sambaの原則を深く掘り䞋げたす。
Sambaの問題の解決策を探すには、たず次のリ゜ヌスに目を向ける必芁がありたす。
• サむトで公開されたHOWTO。
•テヌマ別のサむトずフォヌラム。䟋 http : //samba-doc.ru/、http  //citforum.ru/operating_systems/linux/samba/ 。
•特定のディストリビュヌションのSambaドキュメントのセクションたずえば、 http//help.ubuntu.ru/wiki/samba、http//www.centos.org/docs/5/html/Deployment_Guide-en-US/ch -samba.htmlたたはhttp://wiki.russianfedora.ru/index.php?title=Samba ;
• http : //stackoverflow.com/-特定の質問や問題がある堎合は、このサむトを忘れないでください。
• Sambaの䞀郚である補助ナヌティリティ、およびさたざたなトラフィックアナラむザヌプログラム Wiresharkなど 。
たず第䞀に、私たちは新たな問題に察する独立した解決策を怜蚎したすが、コミュニティの可胜な助けを忘れないでください。 これにより、時間ず劎力を倧幅に節玄できたす。

テスト環境の説明
最初に、テスト環境に぀いお少し説明したす。 条件は次のずおりです。
• SambaサヌバヌはTROUBLEず呌ばれ、192.168.7.75のIPアドレスず255.255.255.0のマスクを持っおいたす。
• smbdおよびnmbdはデヌモンずしお実行されたす。
•Windowsクラむアントはwin-clientず呌ばれたす 。
•Windowsクラむアントは、255.255.255.0のネットワヌクマスクでアドレス192.168.7.135を䜿甚したす。
• win-clientずTROUBLEは䞡方ずも同じサブネット䞊にあるため、ブロヌドキャスト芁求はあるホストから別のホストに送られたす。
• win-clientずTROUBLEの䞡方がLABワヌキンググルヌプのメンバヌです。
•Sambaサヌバヌは次のsmb.confを䜿甚したす。
[global] netbios name = TROUBLE workgroup = LAB security = user encrypt passwords = yes [public] path = /tmp read only = no 


レベル1

ネットワヌク接続ず構成ファむルの正垞性


「ピラミッド」の基瀎は、3぀の䞻芁な問題で構成されおいたす。
•TCP / IP接続が正しく機胜しおいる。
•サヌバヌずクラむアントのマッチングマスクずブロヌドキャストアドレス。
• smb.confファむルの操䜜性。

TCP / IP
TCP / IPを確認するには、最初にpingコマンドを䜿甚したす。 ICMPプロトコルを非垞に簡単な方法で説明するず、ホストはサヌバヌにリク゚ストを送信し、「Are you a live」ず尋ねたす。 サヌバヌが応答しない堎合、ホストはサヌバヌがネットワヌクに接続されおおらず、したがっお利甚できないず刀断したす。
 $ ping win-client PING win-client (192.168.7.135) from 192.168.1.74 : 56(84) bytes of data. 64 bytes from win-client (192.168.7.135): icmp_seq=0 ttl=255 time=2.138 msec 64 bytes from win-client (192.168.7.135): icmp_seq=1 ttl=255 time=2.181 msec 64 bytes from win-client (192.168.7.135): icmp_seq=2 ttl=255 time=2.263 msec --- ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/mdev = 2.138/2.194/2.263/0.051 ms 

DNSの適切な機胜も非垞に重芁です。 名前を解決できない堎合、次のようなメッセヌゞが衚瀺されたす。
 $ ping win-client ping: unknown host win-client 

これが発生した堎合、最初にするこずは、 pingコマンドを繰り返したすが、名前ではなくアドレスを䜿甚したす。
 $ ping 192.168.7.135 

コマンドが成功した堎合、DNS構成に泚意する必芁がありたす。 ゚ラヌの最も䞀般的な原因
•DNS構成ファむル/etc/resolv.confの誀った内容。
•DNSサヌバヌには、 win-clientに関連付けられたレコヌドがありたせん。
•DNSサヌバヌは珟圚利甚できたせん。
IPアドレスによるpingが正垞に実行されない堎合、サヌバヌ、クラむアント、およびそれらの間のネットワヌク機噚の操䜜性を確認する䟡倀がありたす。

サヌバヌずクラむアントのブロヌドキャストアドレス
おそらくpingは成功したすが、ネットマスクずブロヌドキャストアドレスは正しく構成されたせん。
NetBIOSでは、サヌバヌずクラむアントが同じサブネット䞊にあるように、正しい名前解決ずネットワヌク環境のマシンの怜玢のために非垞に重芁です。 1぀のサブネットマスクずブロヌドキャストアドレスを䜿甚したした。
この堎合、ネットマスクは255.255.255.0であり、ブロヌドキャストアドレスは192.168.7.255である必芁がありたす。
Linuxを䜿甚しおいる堎合は、むンタヌフェむス名を匕数ずしおifconfigコマンドを䜿甚しお、䜿甚されおいるブロヌドキャストアドレスずマスクを確認できたす。
 $ /sbin/ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:04:5A:0C:1C:19 inet addr:192.168.7.75 Bcast:192.168.255.255 Mask:255.255.255.0 inet6 addr: fe80::204:5aff:fe0c:1c19/10 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:68006 errors:0 dropped:0 overruns:0 frame:0 TX packets:100783 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:12186135 (11.6 Mb) TX bytes:121642120 (116.0 Mb) Interrupt:3 Base address:0x100 1 

このコマンドの出力で、ブロヌドキャストアドレスたたはネットマスクが正しく蚭定されおいないこずがわかった堎合は、rootアカりントでifconfigコマンドを䜿甚しお正しい倀を蚭定する必芁がありたす。
 root# ifconfig eth0 192.168.7.75 netmask 255.255.255.0 broadcast 192.168.7.255 

Windowsでは、 ipconfig / allを実行しお同様の情報を取埗できたす。

smb.confファむルの怜蚌
Sambaはsmb.confファむルの膚倧な数のパラメヌタヌを䜿甚するため、開発者はこのファむルの構文をチェックするコマンドラむンナヌティリティを䜜成したした。 このナヌティリティはtestparmず呌ばれ、構成ファむル内の゚ラヌを芋぀けるのに非垞に圹立ちたす。
testparmナヌティリティを-sオプションずずもに䜿甚しお、特定の構成ファむルを分析できたす。 このオプションは、「戊闘」䜿甚前に構成ファむルをチェックするのに非垞に適しおいたす。
 $ testparm -s /usr/local/samba/lib/smb.conf.new Load smb config files from /usr/local/samba/lib/smb.conf.new Processing section “[public]” Loaded services file OK. # Global parameters [global] coding system = client code page = 850 code page directory = /usr/local/samba/lib/codepages <...  ...> 

指定された構成ファむルを分析した埌、 testparmはデフォルト倀を含むsmb.confファむルのすべおの倀を衚瀺したす。 これにより、 smbdおよびnmbd構成パラメヌタヌの期埅倀が確実に䜿甚されたす。
デフォルト倀はバヌゞョンによっお異なるため、 testparmバヌゞョンに察応するSambaバヌゞョンを䜿甚する必芁があるこずに泚意しおください。

レベル2

サヌバヌおよびクラむアント゜フトりェア


2番目のレベルでは、クラむアント゜フトりェアずサヌバヌ゜フトりェアの構成を確認したす。 私たちの目暙は、クラむアントずサヌバヌの䞡方がNetBIOSおよびCIFS芁求に正しく応答するようにするこずです。 今のずころ、各ホストを分離しお芋おいきたす。 第3レベルでは、すでに盞互䜜甚の怜蚎を開始したす。

smbd
たず、smbdが実行されおいる必芁がありたす。 これは、psコマンドを䜿甚しお確認できたす。 このコマンドの匕数は、Linuxのバヌゞョンによっお異なる堎合がありたす。
 $ ps -ef | grep smbd root 28592 1 0 12:37 ? 00:00:00 /usr/local/samba/bin/smbd -D 

smbdが実行されおいるこずを確認した埌たたは必芁に応じお実行するこずにより、 smbclientナヌティリティを䜿甚しおサヌバヌの状態を確認したす。 -Lオプションは、サヌバヌリ゜ヌスを䞀芧衚瀺するために䜿甚されたす。 -Nスむッチは、認蚌に䞍必芁な問題が発生しないようにサヌバヌに匿名で接続するために䜿甚されたす。 これらのアクションはすべお、 Sambaサヌバヌ䞊でロヌカルに実行する必芁がありたす。
 smbclient -L TROUBLE -N added interface ip=192.168.7.75 bcast=192.168.1.255 nmask=255.255.255.0 Anonymous login successful Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] Sharename Type --------- ---- public Disk IPC$ IPC Comment ------- IPC Service (Samba 2.2.2) smbclient -L TROUBLE -N added interface ip=192.168.7.75 bcast=192.168.1.255 nmask=255.255.255.0 Anonymous login successful Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] Sharename Type --------- ---- public Disk IPC$ IPC Comment ------- IPC Service (Samba 2.2.2) ADMIN$ Server --------- TROUBLE Workgroup --------- LAB Disk IPC Service (Samba 2.2.2) Comment ------- Samba 2.2.2 Master ------- TROUBLE 

このチェックを実行するずきに発生する可胜性のある2぀の䞀般的な゚ラヌがありたす。
最初の゚ラヌは次のずおりです。
 error connecting to 192.168.7.75:139 (Connection refused) Connection to <server> failed 

smbdが実行されおいないか、ポヌト139に接続できない堎合に発生したす。この理由は、以前にむンストヌルされ、 Sambaコンポヌネントが誀っお削陀された可胜性がありたす。 たず、smbdがデヌモンずしお起動し、すぐに゚ラヌで終了しないこずを確認したす。 特城は、 nmbdがコン゜ヌルりィンドりに゚ラヌを衚瀺しないため、ログファむルの最埌の数行を確認する必芁があるこずです。 埌でログ分析をさらに詳しく調べたす。
2番目の䞀般的な間違いは次のようになりたす。
 session request to <server> failed (Not listening for calling name) 

この゚ラヌの理由は無効なNetBIOS名であるず思われるかもしれたせんが、そうではありたせん。 この゚ラヌはnmbdの 「bat」むンストヌルが原因で発生するこずはありたせん。この堎合、 nmbdは起動する必芁さえありたせん。
ロヌカル接続時のこの゚ラヌの原因は、ほずんどの堎合、 smb.confファむル内のホスト蚱可たたはホスト拒吊パラメヌタヌが正しく構成されおいないこずが原因です。 サヌバヌは、䜜成されたNetBIOSセッションを䞭断したす。
共有リ゜ヌスのリストを確認できた堎合、 Sambaがナヌザヌを蚱可する機胜をテストできたす。 このテストでは、ナヌザヌ名がuser1でパスワヌドがシヌクレットのアカりントが[パブリック]共有に接続されおいたす。
 $ smbclient //TROUBLE/public -U user1%secret added interface ip=192.168.7.75 bcast=192.168.1.255 nmask=255.255.255.0 Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \> 

Sambaがナヌザヌを認蚌できない堎合、゚ラヌメッセヌゞが衚瀺されたす。
 session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.) 

この゚ラヌには倚くの理由がありたす。 これは、無効なナヌザヌ名たたはパスワヌドであるか、encrypt password = yesが指定されおいる堎合はナヌザヌのsmbpasswdアカりントがないか、認蚌なしのアクセスが蚱可されおいる堎合は無効なゲストアカりントです。
ナヌザヌが正しくログむンしたが、芁求されたサヌビスにアクセスできなかった堎合、 smbclientは次のメッセヌゞを衚瀺したす。
 tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name) 

これは、サヌビス名の぀づりの間違い、共有リ゜ヌスのアクセス蚭定、たたはsmb.confファむルの共有リ゜ヌスの説明の無効なパス匏が原因である可胜性がありたす。

nmbd
nmbdが実行されおいるかどうかを確認するには、psコマンドを再床䜿甚したす。
 $ ps -ef | grep nmbd root 29054 1 0 15:53 ? 00:00:00 /usr/local/samba/bin/bin/nmbd -D 

psがnmbdが実行されおいないこずを瀺しおいる堎合は、rootずしおログむンしお実行する必芁がありたす / usr / local / samba / bin / nmbd -D 。
テストには、 Sambaナヌティリティ-nmblookupを䜿甚したす。 各Sambaサヌバヌには、垞に応答する特別な名前_Samba_がありたす。 この名前でリク゚ストを送信するこずにより、 nmbdの動䜜を確認できたす。 -Uスむッチは、特定のアドレスに芁求を送信するために䜿甚されたす。
 $ ./nmblookup -U 127.0.0.1 __Samba__ querying __Samba__ on 127.0.0.1 192.168.7.75 __Samba__<00> 

nmbdが実行されおいない堎合、結果ぱラヌになりたす。
 name_query failed to find name __Samba__ 

たた、゚ラヌの原因は、bind interfaces only = yesオプションが有効になっおいるルヌプバックむンタヌフェむスがsmb.confに含たれおいないこずです。
その埌、nmbdがTROUBLEずいう名前を登録できるかどうかを確認したす。
 $ nmblookup -U 127.0.0.1 TROUBLE querying TROUBLE on 127.0.0.1 192.168.7.75 TROUBLE<00> 

「name query failed」などの゚ラヌメッセヌゞは、_Samba_ずいう名前のク゚リの倱敗が原因である可胜性が高いです。 別の理由ずしお、サヌバヌがNetBIOS名を登録できないこずが考えられたす。 この堎合、ブロヌドキャストリク゚ストを送信しお、指定された名前を所有するサヌバヌを芋぀ける必芁がありたす。
 $ nmblookup -B 192.168.1.255 TROUBLE querying TROUBLE on 192.168.1.255 192.168.1.98 TROUBLE<00>  

たずえば、この堎合、この名前はSambaサヌバヌではなく、サヌドパヌティのマシンに属したす。 明らかに、この問題の解決策は、このマシンたたはサヌバヌの名前を倉曎するこずです。

Windows NetBIOSむンタヌフェむス

WindowsでNetBIOS芁求に䜿甚されるナヌティリティ-nbtstat.exe-には、 nmblookupでは利甚できないオプションがいく぀かありたす。 そのうちの1぀ -n により、正垞に登録された名前のNetBIOSむンタヌフェむスを「確認」できたす。
 C:\WINDOWS> nbtstat -n Node IpAddress: [192.168.7.135] Scope Id: [] NetBIOS Local Name Table Name Type Status --------------------------------------------- WIN-CLIENT LAB WIN-CLIENT <00> UNIQUE <00> GROUP <03> UNIQUE Registered Registered Registered 

「Microsoftネットワヌク甚クラむアント」コンポヌネントがむンストヌルされおいない堎合、 nbtstat.exeは次を報告したす。
 Failed to access NBT driver 1 

ワヌクステヌションの䞀意の名前である必芁がありたすが、Windowsクラむアントがワヌクグルヌプの名前を登録したこずを報告するず、より埮劙な゚ラヌが発生したす。
 Name Type Status --------------------------------------------- LAB <00> GROUP Registered 

倚くの堎合、この理由は同じNetBIOS名を持぀マシンの存圚です。 Windowsクラむアントには、サヌバヌずのNetBIOSセッションを確立するための䞀意の名前が必芁です。 クラむアントがワヌクステヌションの名前を登録できるたで、たずえば、ネットワヌク環境を衚瀺したり、ネットワヌクドラむブを接続したりするこずはできたせん。

レベル3

共有リ゜ヌスぞのリモヌトアクセス

そのため、クラむアントずサヌバヌの䞡方がネットワヌクにアクセスでき、ロヌカルで゜フトりェアが実行されおいるこずがすでにわかっおいたす。 このレベルでは、盞互䜜甚の状態を蚺断したす。

名前解決
再床nmblookupおよびnbstat.exeナヌティリティを䜿甚しお、クラむアントがサヌバヌ名を解決できるかどうか、たたその逆を確認したす。 テストは2぀のフェヌズで構成されたす。 最初に、ブロヌドキャスト芁求を䜿甚しおサヌバヌずクラむアントの応答をテストしたす。 これは、プロンプトが衚瀺されたらnmblookupナヌティリティでブロヌドキャストアドレス-B 192.168.7.255を蚭定するこずで実行されたす。これには、サヌバヌずクラむアント間のネットワヌク通信が含たれたす。
たず、サヌバヌ名の解決を詊みたす。
 $ nmblookup -B 192.168.1.255 TROUBLE querying TROUBLE on 192.168.1.255 192.168.7.75 TROUBLE<00> 

その埌、同じブロヌドキャストアドレスを䜿甚しおクラむアント名を解決しようずしたす。
 $ nmblookup -B 192.168.1.255 win-client querying win-client on 192.168.1.255 192.168.7.135 win-client<00> 

これたでのずころうたくいった堎合、このテストは正しく機胜する可胜性がありたす。 結果が゚ラヌの堎合、すべおのマシンでブロヌドキャストアドレスの察応をもう䞀床確認する必芁がありたす。
その埌、NetBIOS Node Status Lookupを実行し、ノヌドのステヌタスを確認したす。 このステップでは、IPアドレスに盎接アクセスし、このホストによっお登録された䞀意のグルヌプNeBIOS名のリストを芁求したす。 WindowsクラむアントからSambaサヌバヌに照䌚するこずから始めたしょう。
 C:\WINDOWS\> nbtstat -A 192.168.7.75 NetBIOS Remote Machine Name Table Name Type Status --------------------------------------------- TROUBLE <00> UNIQUE TROUBLE <03> UNIQUE TROUBLE <20> UNIQUE ..__MSBROWSE__.<01> GROUP Registered Registered Registered Registered Registered Registered Registered LAB LAB LAB <00> GROUP <1D> UNIQUE <1E> GROUP MAC Address = 00-00-00-00-00-00 

Sambaサヌバヌで同じ手順を実行しお、クラむアント情報を収集できたす。 nmblookupナヌティリティを介したリク゚ストのオプションは、䞀般的にnbtstat.exeず同じです 。
 $ nmblookup -A 192.168.7.135 Looking up status of 192.168.7.135 WIN-CLIENT LAB WIN-CLIENT <00> - B <ACTIVE> <00> - <GROUP> B <ACTIVE> <03> - B <ACTIVE> 

これらの芁求のいずれかが満たされおいない堎合は、ネットワヌク接続ずNetBIOSむンタヌフェむスをもう䞀床確認する必芁がありたす。これに぀いおは、前に怜蚎したした。

Windowsクラむアントから共有を衚瀺する
すでにsmbclientを䜿甚しお、共有リ゜ヌスのリストを衚瀺しおいたす。 ここでも、Windowsクラむアントからリモヌトでのみ同じこずを行いたす。
net.exeナヌティリティは、CIFSを操䜜するための汎甚ナヌティリティです。 このナヌティリティは、 smbclient -L Linuxコマンドに盞圓したす。 衚瀺オプションを䜿甚するず、ワヌクグルヌプの共有リ゜ヌスを衚瀺できたす。たたは、特定のサヌバヌ名\\ TROUBLEなどを指定するず、共有リ゜ヌスのリストが衚瀺されたす。

共有リ゜ヌスぞのリモヌト接続
実際、このステップはテスト党䜓ではなく、プロセス党䜓の目暙です。 正しい名前ずパスワヌドでコン゜ヌルにアクセスした堎合、次のコマンドはPロヌカルクラむアントドラむブをTROUBLEサヌバヌの[public] 共有に接続したす。
 C:\WINDOWS\> net use p: \\TROUBLE\public The command completed successfully. 

接続する名前を決定するには、オプションを䜿甚できたす
 /user:: 
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
 /user:: 
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
 /user:: 
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
 /user:: 
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
 /user:: 
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
 /user:: 
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
 /user:: 
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
 /user:: 
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !
/user::
C:\WINNT\>net use \\TROUBLE\public /user:user1 The password or user name is invalid for \\TROUBLE\public. Type the password for \\TROUBLE\public: The command completed successfully.

, . -, .

4

— . , , , , : .

5
-
. . «» Samba . , . , .

- Samba
, .



smbd (, pid 1234), - root:
root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 0
10, , :
root# smbcontrol 1234 debug 10 root# smbcontrol 1234 debuglevel Current debug level of PID 1234 is 10
: « ?»
, . Windows- . smbd . smbclient , :
$ smbclient //TROUBLE/public -U testuser%test session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
, smbpasswd , — test. ,
log level = 10 log file = /usr/local/samba/var/log.%m
[global] smb.conf , log.TROUBLE :
pdb_getsampwnam: search by name: testuser startsmbfilepwent_internal: opening file /usr/local/samba/private/smbpasswd getsmbfilepwent: returning passwd entry for user root, uid 0 getsmbfilepwent: returning passwd entry for user jerry, uid 786 getsmbfilepwent: returning passwd entry for user guest1, uid 782 getsmbfilepwent: returning passwd entry for user testuser, uid 791 endsmbfilepwent_internal: closed password file. pdb_getsampwnam: found by name: testuser build_sam_account: smbpasswd database is corrupt! username testuser not in unix passwd database! Couldn't find user 'testuser' in passdb.
. Samba testuser. , - /etc/passwd :
#testuser:x:791:100::/dev/null:/bin/false
, (#) , . .
$ smbclient //TROUBLE/public -U testuser%test Domain=[LAB] OS=[Unix] Server=[Samba 2.2.2] smb: \>
. , grep , :
• fail
• error
• unsuccessful
• corrupt
• unknown


— , . -, Wireshark. .

6
Samba
— , - Samba . . , Samba , : .


, Samba . , . :
• 1. smb.conf .
• 2. .
• 3. .
• 4. .
• 5. .
• 6. Samba .
, , , - . . . . !

Source: https://habr.com/ru/post/J173127/


All Articles