from the WIN7 machine, KLSTRFK,
Code:
c:\User\Kevin > hostname
KLSTRFK
c:\User\Kevin > net view \\kevcoder00
System error 53 has occurred
The network path was not found
from linux machine, kevcoder00
smbtree -d3
Code:
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface eth0 ip=fe80::d227:88ff:fe19:ce11%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.2.2 bcast=192.168.2.255 netmask=255.255.255.0
Enter dev's password:
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
resolve_lmhosts: Attempting lmhosts lookup for name METALWAVE<0x1d>
name_resolve_bcast: Attempting broadcast lookup for name METALWAVE<0x1d>
Got a positive name query response from 192.168.2.2 ( 192.168.2.2 )
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
Connecting to host=192.168.2.2
Connecting to 192.168.2.2 at port 445
Doing spnego session setup (blob length=58)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1>
Got a positive name query response from 192.168.2.2 ( 192.168.2.2 )
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
resolve_lmhosts: Attempting lmhosts lookup for name METALWAVE<0x1d>
name_resolve_bcast: Attempting broadcast lookup for name METALWAVE<0x1d>
Got a positive name query response from 192.168.2.2 ( 192.168.2.2 )
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
Connecting to host=192.168.2.2
Connecting to 192.168.2.2 at port 445
Doing spnego session setup (blob length=58)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
METALWAVE
resolve_lmhosts: Attempting lmhosts lookup for name METALWAVE<0x1d>
name_resolve_bcast: Attempting broadcast lookup for name METALWAVE<0x1d>
Got a positive name query response from 192.168.2.2 ( 192.168.2.2 )
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
Connecting to host=192.168.2.2
Connecting to 192.168.2.2 at port 445
Doing spnego session setup (blob length=58)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
\\KEVCODER00 Samba 3.5.8
Connecting to host=KEVCODER00
resolve_lmhosts: Attempting lmhosts lookup for name KEVCODER00<0x20>
resolve_wins: Attempting wins lookup for name KEVCODER00<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name KEVCODER00<0x20>
Connecting to 127.0.1.1 at port 445
Doing spnego session setup (blob length=58)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
\\KEVCODER00\IPC$ IPC Service (Samba 3.5.8)
\\KEVCODER00\Share kevcoder00 file share
Code:
dev@kevcoder00:/var/log/samba$ tail log.smbd
[2011/06/14 23:25:08.191111, 1] smbd/service.c:1070(make_connection_snum)
kevcoder00 (127.0.0.1) connect to service Share initially as user nobody (uid=65534, gid=65534) (pid 2823)
[2011/06/14 23:28:17.631288, 1] smbd/service.c:1070(make_connection_snum)
kevcoder00 (127.0.0.1) connect to service Share initially as user dev (uid=1000, gid=1000) (pid 2844)
[2011/06/14 23:28:22.644107, 1] smbd/service.c:1251(close_cnum)
kevcoder00 (127.0.0.1) closed connection to service Share
[2011/06/15 08:20:28.787993, 1] smbd/server.c:267(remove_child_pid)
Scheduled cleanup of brl and lock database after unclean shutdown
[2011/06/15 08:20:48.796354, 1] smbd/server.c:240(cleanup_timeout_fn)
Cleaning up brl and lock database after unclean shutdown
and finally I can use smbclient with ip address
Code:
dev@kevcoder00:/var/log/samba$ smbclient //192.168.2.3/metalwave_public
Enter dev's password:
Domain=[KLSTRFK] OS=[Windows 7 Ultimate N 7601 Service Pack 1] Server=[Windows 7 Ultimate N 6.1]
smb: \> ls
. DR 0 Tue Mar 29 21:56:05 2011
.. DR 0 Tue Mar 29 21:56:05 2011
Desktop DHR 0 Sat May 7 18:26:38 2011
desktop.ini AHS 174 Tue Jul 14 00:08:58 2009
Documents DR 0 Sun May 15 12:14:08 2011
Downloads DR 0 Tue Jun 7 22:26:40 2011
Favorites DHR 0 Mon Jul 13 22:04:25 2009
Libraries DHR 0 Tue Jul 14 00:08:58 2009
Music DR 0 Mon Jan 17 19:49:46 2011
Pictures DR 0 Sun Apr 3 00:44:46 2011
scheduled_tasks D 0 Tue Dec 21 02:05:04 2010
Torrents D 0 Tue Apr 19 00:50:10 2011
Videos DR 0 Wed Jun 8 22:58:12 2011
37781 blocks of size 4194304. 13159 blocks available
smb: \>
Bookmarks