[global] netbios name = TROUBLE workgroup = LAB security = user encrypt passwords = yes [public] path = /tmp read only = no
$ 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
$ ping win-client ping: unknown host win-client
$ ping 192.168.7.135
$ /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 eth0 192.168.7.75 netmask 255.255.255.0 broadcast 192.168.7.255
$ 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 <... ...>
$ ps -ef | grep smbd root 28592 1 0 12:37 ? 00:00:00 /usr/local/samba/bin/smbd -D
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
error connecting to 192.168.7.75:139 (Connection refused) Connection to <server> failed
session request to <server> failed (Not listening for calling name)
$ 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: \>
session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
$ ps -ef | grep nmbd root 29054 1 0 15:53 ? 00:00:00 /usr/local/samba/bin/bin/nmbd -D
$ ./nmblookup -U 127.0.0.1 __Samba__ querying __Samba__ on 127.0.0.1 192.168.7.75 __Samba__<00>
name_query failed to find name __Samba__
$ nmblookup -U 127.0.0.1 TROUBLE querying TROUBLE on 127.0.0.1 192.168.7.75 TROUBLE<00>
$ nmblookup -B 192.168.1.255 TROUBLE querying TROUBLE on 192.168.1.255 192.168.1.98 TROUBLE<00>
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
Failed to access NBT driver 1
Name Type Status --------------------------------------------- LAB <00> GROUP Registered
$ 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>
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
$ 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>
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/173127/
All Articles