Re: About NETBIOS i





*****************
AIM: To use network shares available over HCLT's intranet from Linux
*****************

samba, nbtscan, nmblookup, smbclient, LINUX.

(1) Install samba
rpm -ivh samba.rpm (for redhat)
or
apt-get install samba (for debian)

(2) open "xterm" & do this
nbtscan aa.bb.cc.0/24
aa.bb.cc.0 is ur IP address with 0 in last octet (assuming ur subnet
mask is 255.255.255.0, for others, u just have to put ur network ID
there & follow it up by a corresponding /xx value, for me, it was /24 )

(3) select the IP's in previous o/p, where u see a corresponding
<server>, they might be possible targets. Let the IP be aa.bb.cc.dd
now do this
nmblookup -A aa.bb.cc.dd

(4) If you see a
some_name <20> - B <ACTIVE>
then this host is sharing things. GOOD! (the number 20 is important)

(5) now do this
smbclient -L some_name -I aa.bb.cc.dd -N

A positive result can be something like this,
---------------
[root:/>$ smbclient -L gahlawat -I aa.bb.cc.dd -U Administrator
Password:
Domain=[GAHLAWAT] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
D$ Disk Default share
G$ Disk Default share
ADMIN$ Disk Remote Admin
H$ Disk Default share
C$ Disk Default share
Domain=[GAHLAWAT] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
---------------

(use -U <username> if u know the target machine's passwd, -N says no
authentication.)

(6) Mount the available shares onto a directory
mkdir /share
mount -t smbfs -o username=Administrator,password=foobar //gahlawat/c$
/share

(7) now u have /share, just as a part of ur filesystem, play around
with it.

(8) do this when u are done
cd; umount /share

*****************
If you are using nautilus, try "smb:///" in the location bar :-)
*****************

.



Relevant Pages

  • Re: Panasonic HD Recorders - What disk format?
    ... The earlier part of this is more about what may be Linux partitioning, ... might be possible to present the recorder with a larger disk already ... Most DOS/Windows utilities such as FDisk, Ghost, and Partition Magic Pro ... prompts to format it. ...
    (alt.os.linux)
  • Re: defrag in linux?
    ... heads of your HD advance sequentially through the hard disk. ... fragmentation is a concern when one ... On the other hand, if you are Linux, you reorder the ... 'file fragmented' Linux file system and a 'file unfragmented' Linux ...
    (alt.os.linux.suse)
  • [ANNOUNCE]: RIP Linux rescue system!
    ... This is a bootable CD Linux boot/rescue system! ... The bootable CD image `RIP-12.7.iso.bin' can be written to a CD disk, ... It also includes the CD/DVD UDF filesystem packet writing tools (cdrwtool, ... a Linux reiserfs and reiser4 filesystem. ...
    (comp.os.linux.announce)
  • Re: Gparted help
    ... underestimated the amount of disk space I would need for the Linux ... boot your Mac OS system CD ... The firewire drives can also have a USB 2.0 interface as well so they ...
    (comp.os.linux.powerpc)
  • Re: dos defragmentation utility
    ... | I have been using linux for school since a last spring and have since ... heads of your HD advance sequentially through the hard disk. ... fragmentation is a concern when one ... 'file fragmented' Linux file system and a 'file unfragmented' Linux ...
    (comp.os.linux.questions)