ãã®èšäºã¯ãåºæ¬çã«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 / IPTCP / 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
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.
æå®ãããæ§æãã¡ã€ã«ãåæããåŸã
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ãã¡ã€ã«ã®å
±æãªãœãŒã¹ã®èª¬æã®ç¡å¹ãªãã¹åŒãåå ã§ããå¯èœæ§ããããŸãã
nmbdnmbdãå®è¡ãããŠãããã©ããã確èªããã«ã¯ã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 .
, , , - . . . . !