P. 1
Samba

Samba

|Views: 167|Likes:
Publicado porNurul Istiqomah

More info:

Published by: Nurul Istiqomah on Dec 14, 2010
Direitos Autorais:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/21/2014

pdf

text

original

smb.conf--------->testparm
| |
V V
net<----->network<------>nmbd<-->smbd<---------->unix
view.................../ | | filesystem
V V
log.nmb log.smb

The net viewcommand is a command-line browsing client on a Windows box. It “mea-
sures”(observes might be more accurate) naming,part of which is provided by nmbd.
That’s why the dotted line to nmbdis used in the preceding text diagram. Note that the net

viewcommand is also an injection test because it induces packet traffic and can even
induce a browser election. The following examines the browseable shares of the server:

L:\>net view \\mainserv
Shared resources at \\MAINSERV

Troubleshooting Samba

CHAPTER22

637

22

T

R
O
U
B
L
E
S
H
O
O
T
I
N
G

S

A
M
B
A

25 8628 CH22 3/17/00 1:14 PM Page 637

Sharename Type Comment
----------------------------------------------------
d Disk
homes Disk
lp Disk Home directory of lp
myuid Disk Home directory of myuid
printers Print
tmp Disk
username Disk Home directory of username
The command was completed successfully.

C:\>

The following command looks at the browseable shares of a fellow client:

C:\>net view \\desk2
Shared resources at \\DESK2

Sharename Type Comment
---------------------------------------
MYDOCS Disk
The command was completed successfully.

C:\>

The following command lists the computers in the workgroup:

C:\>net view /workgroup:mygroup
Servers available in workgroup MYGROUP.
Server name Remark
-----------------------------------------------------
\\DESK2 STEVE LITT
\\MAINSERV Samba 2.0.6
\\WINCLI WINCLI Steves Windows Computer
The command was completed successfully.

C:\>

The preceding command is also an injection test because it sometimes triggers a browser
election. It does not work on NT boxes. NT’s equivalent uses the following syntax:

C:\>net view /domain:mygroup

Once again,net viewis an excellent test when naming is suspected. In some cases,it
can be used to invoke browser elections. It’s very handy as an injection when viewing

log.nmb.

Creating a Turnkey Samba System

PARTII

638

25 8628 CH22 3/17/00 1:14 PM Page 638

You're Reading a Free Preview

Descarregar
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->